From eaf9f0c3ac2ce1c34a0e08de9073d8fca66a3680 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Thu, 31 Aug 2017 10:58:49 +0200 Subject: the C runtime now supports the same customizations for GraphViz as the Haskell runtime --- src/runtime/c/pgf/graphviz.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/pgf/graphviz.h') diff --git a/src/runtime/c/pgf/graphviz.h b/src/runtime/c/pgf/graphviz.h index f2fdf11d8..d230fdcd8 100644 --- a/src/runtime/c/pgf/graphviz.h +++ b/src/runtime/c/pgf/graphviz.h @@ -1,10 +1,25 @@ #ifndef PGF_GRAPHVIZ_H_ #define PGF_GRAPHVIZ_H_ +typedef struct { + int noLeaves; + int noFun; + int noCat; + int noDep; + GuString nodeFont; + GuString leafFont; + GuString nodeColor; + GuString leafColor; + GuString nodeEdgeStyle; + GuString leafEdgeStyle; +} PgfGraphvizOptions; + +extern PgfGraphvizOptions pgf_default_graphviz_options[1]; + PGF_API_DECL void -pgf_graphviz_abstract_tree(PgfPGF* pgf, PgfExpr expr, GuOut* out, GuExn* err); +pgf_graphviz_abstract_tree(PgfPGF* pgf, PgfExpr expr, PgfGraphvizOptions* opts, GuOut* out, GuExn* err); PGF_API_DECL void -pgf_graphviz_parse_tree(PgfConcr* concr, PgfExpr expr, GuOut* out, GuExn* err); +pgf_graphviz_parse_tree(PgfConcr* concr, PgfExpr expr, PgfGraphvizOptions* opts, GuOut* out, GuExn* err); #endif -- cgit v1.2.3