aboutsummaryrefslogtreecommitdiff
path: root/graphs.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 18:48:24 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 20:03:45 +0100
commitc528ed79f0a359ddfeb3905be07018e668b418a8 (patch)
treebfbf806a2e203e24c1c0b288049eb77ba05325cb /graphs.c
parentImprove FOR macro. (diff)
downloadcalp-c528ed79f0a359ddfeb3905be07018e668b418a8.tar.gz
calp-c528ed79f0a359ddfeb3905be07018e668b418a8.tar.xz
Remove repeat information in invocation of FOR macro.
Diffstat (limited to 'graphs.c')
-rw-r--r--graphs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphs.c b/graphs.c
index ff23be00..2ed7009e 100644
--- a/graphs.c
+++ b/graphs.c
@@ -107,7 +107,7 @@ int trie_to_dot_helper ( TRIE_NODE(T)* root, FILE* f ) {
#if 1 /* Toggle values */
if (L(root) != NULL) {
- FOR(LLIST(content_set), content_set, v, &L(root)->val) {
+ FOR(LLIST, content_set, v, &L(root)->val) {
char buf[0x100];
FMT(strbuf)(&v->key, buf);
fprintf(f, "\"%p\" [label=\"%s\" shape=rectangle color=darkgreen];\n",
@@ -115,14 +115,14 @@ int trie_to_dot_helper ( TRIE_NODE(T)* root, FILE* f ) {
fprintf(f, "\"%p\" -> \"%p\";\n", root, v);
/* Parameters */
- FOR(LLIST(param_set), param_set, p, &v->val) {
+ FOR(LLIST, param_set, p, &v->val) {
strbuf* param_key = &p->key;
fprintf(f, "\"%p\" [label=\"%s\" color=blue];\n",
param_key, param_key->mem);
fprintf(f, "\"%p\" -> \"%p\";", p, param_key);
- FOR(LLIST(strbuf), strbuf, str, &p->val) {
+ FOR(LLIST, strbuf, str, &p->val) {
fprintf(f, "\"%p\" [label=\"%s\" color=orange];",
str, str->mem);
fprintf(f, "\"%p\" -> \"%p\";", param_key, str);