diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 17:05:02 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 17:05:02 +0100 |
commit | 3c68635799f99f598f9deeadfc3e0ac04462f4d3 (patch) | |
tree | 66b43a45f829d4d1682257a448fbd41eb54781a6 | |
parent | Add parameters to graph output. (diff) | |
download | calp-3c68635799f99f598f9deeadfc3e0ac04462f4d3.tar.gz calp-3c68635799f99f598f9deeadfc3e0ac04462f4d3.tar.xz |
Minor cleanup.
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | parse.c | 2 | ||||
-rw-r--r-- | trie.inc.h | 2 |
3 files changed, 3 insertions, 7 deletions
@@ -4,9 +4,7 @@ CC := gcc OBJDIR = obj -# CPPFLAGS = -CFLAGS = $(CPPFLAGS) \ - -std=gnu11 -Wall -Wextra \ +CFLAGS = -std=gnu11 -Wall -Wextra \ -ggdb -fPIC \ $(shell guile-config compile) LDFLAGS = -fPIC $(shell guile-config link) @@ -29,7 +27,7 @@ parse: $(O_FILES) $(O_FILES): | $(OBJDIR) $(OBJDIR)/%.o : %.c $(H_FILES) $(X_FILES) - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) -c $(CFLAGS) -o $@ $< $(OBJDIR): mkdir -p $(OBJDIR) @@ -138,8 +138,6 @@ int parse_file(char* filename, FILE* f, vcomponent* root) { } - INFO("Parsed file, cleaning up."); - FREE(content_line)(&cline); assert(POP(LLIST(vcomponent))(&ctx.comp_stack) == root); @@ -146,7 +146,7 @@ int TRIE_DOT_HELP(TYPE) ( TRIE_NODE(TYPE)* root, FILE* f ) { if (! EMPTY(LLIST(key_val))(&root->value->params)) { fprintf(f, "subgraph \"cluster_param_%p\"{\n color=blue;\n", root); FOR(LLIST(key_val), link, &root->value->params) { - fprintf(f, "\"%p\" [label=\"%s := %s\"];", link, + fprintf(f, "\"%p\" [shape=rectangle, label=\"%s := %s\"];", link, link->value->key.mem, link->value->val.mem); } |