From 0dff6c5d179aeb9e1ba3fc5f4dd679987e342036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 8 Mar 2019 10:05:35 +0100 Subject: Remove C vector library. --- graphs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'graphs.c') diff --git a/graphs.c b/graphs.c index 4f1692ee..51a26117 100644 --- a/graphs.c +++ b/graphs.c @@ -49,10 +49,7 @@ int helper_vcomponent (vcomponent* root, FILE* f) { fputs("}", f); } - vcomponent* child; - for (size_t i = 0; i < root->components.length; i++) { - child = GET(VECT(vcomponent))(&root->components, i); - if (child == NULL) continue; + FOR(LLIST, vcomponent, child, &root->components) { fprintf(f, "\"%p\" -> \"%p\"\n", root, child); helper_vcomponent(child, f); } -- cgit v1.2.3