1
0
forked from GitHub/gf-core

added graphvizParseTree in the C and Python runtimes

This commit is contained in:
kr.angelov
2013-08-15 15:10:28 +00:00
parent 5337b4bef7
commit fc7e77bf50
4 changed files with 267 additions and 31 deletions

View File

@@ -56,7 +56,7 @@ url_escape(char *str)
}
static int
render(PgfExpr expr, GuPool* pool)
render(PgfPGF* pgf, PgfExpr expr, GuPool* pool)
{
int pid;
int pc[2]; /* Parent to child pipe */
@@ -94,7 +94,7 @@ render(PgfExpr expr, GuPool* pool)
GuWriter* wtr = gu_new_utf8_writer(out, pool);
GuExn* err = gu_new_exn(NULL, gu_kind(type), pool);
pgf_graphviz_abstract_tree(expr, wtr, err);
pgf_graphviz_abstract_tree(pgf, expr, wtr, err);
fclose(fstream);
close(cp[1]);
@@ -275,7 +275,7 @@ int main ()
FCGI_printf("Status: 200 OK\r\n");
if (to_concr == NULL) {
FCGI_printf("Content-type: image/svg+xml\r\n\r\n");
render(ep->expr, ppool);
render(pgf, ep->expr, ppool);
} else {
FCGI_printf("Content-type: text/plain; charset=utf-8\r\n\r\n");
linearize(to_concr, ep->expr, ppool);