From: ellson Date: Thu, 24 Sep 2009 13:31:08 +0000 (+0000) Subject: need renderdata for use in gv_tcl: eval [gv::renderdata $G tk] X-Git-Tag: LAST_LIBGRAPH~32^2~1698 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cfe9f387c6e29246904133a165f414967c414a6;p=graphviz need renderdata for use in gv_tcl: eval [gv::renderdata $G tk] --- diff --git a/tclpkg/gv/gv.i b/tclpkg/gv/gv.i index ec2f749cb..aa5e9420b 100644 --- a/tclpkg/gv/gv.i +++ b/tclpkg/gv/gv.i @@ -214,11 +214,10 @@ extern bool render(Agraph_t *g, const char *format, const char *filename); extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname); /*** Render to a string result */ extern void renderresult(Agraph_t *g, const char *format, char *outdata); -#if 0 /*** Render a layout to a malloc'ed string, to be free'd by the caller */ /*** (deprecated - too easy to leak memory) */ +/*** (still needed for "eval [gv::renderdata $G tk]" ) */ extern char* renderdata(Agraph_t *g, const char *format); -#endif /*** Writing graph back to file */ @@ -395,11 +394,10 @@ extern bool render(Agraph_t *g, const char *format, const char *filename); extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname); /*** Render to a string result */ extern void renderresult(Agraph_t *g, const char *format, char *outdata); -#if 0 /*** Render a layout to a malloc'ed string, to be free'd by the caller */ /*** (deprecated - too easy to leak memory) */ +/*** (still needed for "eval [gv::renderdata $G tk]" ) */ extern char* renderdata(Agraph_t *g, const char *format); -#endif /*** Writing graph back to file */