From e8ae1e98a446ba6c27d4919aba748e2f5577ecd8 Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 18 Feb 2009 18:36:47 +0000 Subject: [PATCH] Revert to gvContext(void) to avoid breaking API. --- lib/gvc/gvc.c | 4 ++-- lib/gvc/gvc.h | 5 ++--- tclpkg/gv/gv.cpp | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c index e81e24d07..a2ade1a41 100644 --- a/lib/gvc/gvc.c +++ b/lib/gvc/gvc.c @@ -25,7 +25,7 @@ #include "gvcproc.h" #include "gvconfig.h" -GVC_t *gvContext(const lt_symlist_t *builtins) +GVC_t *gvContext(void) { GVC_t *gvc; @@ -35,7 +35,7 @@ GVC_t *gvContext(const lt_symlist_t *builtins) #else agattr(NULL, AGNODE, "label", NODENAME_ESC); #endif - gvc = gvNEWcontext(builtins); + gvc = gvNEWcontext(NULL); gvconfig(gvc, FALSE); /* configure for available plugins and codegens */ return gvc; } diff --git a/lib/gvc/gvc.h b/lib/gvc/gvc.h index 44a91f15f..0a8f2f7b0 100644 --- a/lib/gvc/gvc.h +++ b/lib/gvc/gvc.h @@ -45,9 +45,8 @@ extern void gvToggle(int); /* set up a graphviz context */ extern GVC_t *gvNEWcontext(const lt_symlist_t *builtins); -/* set up a graphviz context - alternative */ -/* (wraps the above two functions using info built into libgvc) */ -extern GVC_t *gvContext(const lt_symlist_t *builtins); +/* set up a graphviz context - retaining old API */ +extern GVC_t *gvContext(void); /* get information associated with a graphviz context */ extern char **gvcInfo(GVC_t*); diff --git a/tclpkg/gv/gv.cpp b/tclpkg/gv/gv.cpp index 6abc35c8e..bf41ea7dc 100644 --- a/tclpkg/gv/gv.cpp +++ b/tclpkg/gv/gv.cpp @@ -28,7 +28,7 @@ static char emptystring[] = {'\0'}; static GVC_t *gvc; static void gv_init(void) { - gvc = gvContext(lt_preloaded_symbols); + gvc = gvNEWContext(lt_preloaded_symbols); } Agraph_t *graph(char *name) -- 2.40.0