aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-09 01:19:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-09 01:19:43 +0100
commiteba7f0e2713a55b2516df97999a3995476a7c166 (patch)
tree0a798f752b57be021006ae405412453ac26a0512 /main.c
parentFix main loop. (diff)
downloadcalp-eba7f0e2713a55b2516df97999a3995476a7c166.tar.gz
calp-eba7f0e2713a55b2516df97999a3995476a7c166.tar.xz
Add support for full tree printing.
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index 47d69e4d..6b312ec1 100644
--- a/main.c
+++ b/main.c
@@ -56,6 +56,7 @@ int main (int argc, char* argv[argc]) {
}
}
} else if (strcmp(args.argv[0], "-g") == 0) {
+ /* TODO this might be broken */
if (arg_shift(&args) == 0) {
for (size_t i = 0; i < root.components.length; i++) {
vcomponent* cal = GET(VECT(vcomponent))(&root.components, i);
@@ -68,10 +69,13 @@ int main (int argc, char* argv[argc]) {
strcat(target, "/tmp/dot/");
strcat(target, ev->filename);
strcat(target, ".dot");
- create_graph(ev, target);
+ // create_graph(ev, target);
}
} else {
- create_graph(FCHILD(FCHILD(&root)), args.argv[0]);
+ // create_graph(FCHILD(FCHILD(&root)), args.argv[0]);
+ puts("Creating graph for single file");
+ printf("output = %s\n", args.argv[0]);
+ create_graph_vcomponent(&root, args.argv[0]);
}
}