Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Data Structures | |
struct | agxbuf |
Macros | |
#define | NEW(t) (t*)calloc(1, sizeof(t)) |
#define | N_NEW(n, t) (t*)calloc((n), sizeof(t)) |
#define | agxbputc(X, C) |
#define | agxbuse(X) (agxbputc(X,'\0'),(char*)((X)->ptr = (X)->buf)) |
#define | CHK(s) if(!s){*error=1;return 0;} |
#define | XDBSIZE 100 |
#define | CHK1(s) if(!s){free(stops);return NULL;} |
Typedefs | |
typedef void(* | pf )(char *, void *) |
typedef void(* | print_op )(xdot_op *op, pf print, void *info, int more) |
Functions | |
xdot * | parseXDotFOn (char *s, drawfunc_t fns[], int sz, xdot *x) |
xdot * | parseXDotF (char *s, drawfunc_t fns[], int sz) |
xdot * | parseXDot (char *s) |
char * | sprintXDot (xdot *x) |
void | fprintXDot (FILE *fp, xdot *x) |
void | jsonXDot (FILE *fp, xdot *x) |
void | freeXDot (xdot *x) |
int | statXDot (xdot *x, xdot_stats *sp) |
xdot_grad_type | colorType (char *cp) |
char * | parseXDotColor (char *cp, xdot_color *clr) |
void | freeXDotColor (xdot_color *cp) |
#define agxbputc | ( | X, | |
C | |||
) |
#define agxbuse | ( | X | ) | (agxbputc(X,'\0'),(char*)((X)->ptr = (X)->buf)) |
Definition at line 30 of file xdot.c.
Referenced by sprintXDot().
#define NEW | ( | t | ) | (t*)calloc(1, sizeof(t)) |
Definition at line 18 of file xdot.c.
Referenced by parseXDotFOn().
#define XDBSIZE 100 |
Definition at line 427 of file xdot.c.
Referenced by parseXDotFOn().
xdot_grad_type colorType | ( | char * | cp | ) |
void freeXDot | ( | xdot * | x | ) |
Definition at line 945 of file xdot.c.
References xdot::cnt, xdot::freefunc, xdot::ops, and xdot::sz.
Referenced by graph_cleanup().
void freeXDotColor | ( | xdot_color * | cp | ) |
Definition at line 1158 of file xdot.c.
References xdot_color_stop::color, xdot_color::ling, xdot_linear_grad::n_stops, xdot_radial_grad::n_stops, xdot_color::ring, xdot_linear_grad::stops, xdot_radial_grad::stops, xdot_color::type, xdot_color::u, xd_linear, and xd_radial.
xdot* parseXDot | ( | char * | s | ) |
Definition at line 496 of file xdot.c.
References parseXDotF().
char* parseXDotColor | ( | char * | cp, |
xdot_color * | clr | ||
) |
Definition at line 1130 of file xdot.c.
References xdot_color::clr, NULL, xdot_color::type, xdot_color::u, and xd_none.
xdot* parseXDotF | ( | char * | s, |
drawfunc_t | fns[], | ||
int | sz | ||
) |
Definition at line 491 of file xdot.c.
References NULL, and parseXDotFOn().
Referenced by init_xdot(), and parseXDot().
xdot* parseXDotFOn | ( | char * | s, |
drawfunc_t | fns[], | ||
int | sz, | ||
xdot * | x | ||
) |
Definition at line 433 of file xdot.c.
References xdot::cnt, xdot::flags, NEW, NULL, xdot::ops, xdot::sz, XDBSIZE, and XDOT_PARSE_ERROR.
Referenced by parseXDotF().
char* sprintXDot | ( | xdot * | x | ) |
Definition at line 881 of file xdot.c.
References agxbfree(), agxbinit(), agxbput(), and agxbuse.
int statXDot | ( | xdot * | x, |
xdot_stats * | sp | ||
) |
Definition at line 963 of file xdot.c.
References _xdot_op::bezier, xdot_polyline::cnt, xdot::cnt, xdot_stats::cnt, _xdot_op::kind, xdot_stats::n_bezier, xdot_stats::n_bezier_pts, xdot_stats::n_color, xdot_stats::n_ellipse, xdot_stats::n_font, xdot_stats::n_fontchar, xdot_stats::n_gradcolor, xdot_stats::n_image, xdot_stats::n_polygon, xdot_stats::n_polygon_pts, xdot_stats::n_polyline, xdot_stats::n_polyline_pts, xdot_stats::n_style, xdot_stats::n_text, xdot::ops, _xdot_op::polygon, _xdot_op::polyline, xdot::sz, _xdot_op::u, xd_fill_color, xd_filled_bezier, xd_filled_ellipse, xd_filled_polygon, xd_font, xd_fontchar, xd_grad_fill_color, xd_grad_pen_color, xd_image, xd_pen_color, xd_polyline, xd_style, xd_text, xd_unfilled_bezier, xd_unfilled_ellipse, and xd_unfilled_polygon.
Referenced by init_xdot().