]> granicus.if.org Git - graphviz/commitdiff
Cleanup and extend the API in gvc.h
authorellson <devnull@localhost>
Wed, 27 Jul 2005 19:55:28 +0000 (19:55 +0000)
committerellson <devnull@localhost>
Wed, 27 Jul 2005 19:55:28 +0000 (19:55 +0000)
Add #defines to give compile warnings for old API entry points

Update: dot, tcldot, script bindings, and dot.demo/  to use the modified API

dot.demo/simple.c

index 47434536d5dbe008f5cd5610b90d1bef5944c5d1..93e91dc1021bb2ddb95aff450d076d75248bcb33 100644 (file)
@@ -34,9 +34,9 @@ int main(int argc, char **argv)
 
     gvRender(gvc, g, "plain", stdout);
 
-    gvCleanup(gvc);
+    gvFreeLayout(gvc, g);
 
     agclose(g);
-    
-    return 0;
+
+    return (gvFreeContext(gvc));
 }