aginit (g, AGNODE, "Agnodeinfo_t", sizeof(Agnodeinfo_t), TRUE);
aginit (g, AGEDGE, "Agedgeinfo_t", sizeof(Agedgeinfo_t), TRUE);
GD_gvc(g) = gvc;
- graph_init(g, FALSE);
+ graph_init(g, false);
d = late_int(g, agfindgraphattr(g, "dim"), 2, 2);
if (d != 2) {
fprintf(stderr, "Error: graph %s has dim = %d (!= 2)\n", agnameof(g),
#include <xdot/xdot.h>
#include <cgraph/agxbuf.h>
#include <cgraph/strcasecmp.h>
+#include <stdbool.h>
#include <stddef.h>
#include <string.h>
cgraph requires
*/
-void graph_init(graph_t * g, boolean use_rankdir)
+void graph_init(graph_t * g, bool use_rankdir)
{
char *p;
double xf;
RENDER_API char* charsetToStr (int c);
RENDER_API pointf coord(node_t * n);
RENDER_API void do_graph_label(graph_t * sg);
- RENDER_API void graph_init(graph_t * g, boolean use_rankdir);
+ RENDER_API void graph_init(graph_t * g, bool use_rankdir);
RENDER_API void graph_cleanup(graph_t * g);
RENDER_API int dotneato_args_initialize(GVC_t * gvc, int, char **);
RENDER_API int dotneato_usage(int);
#include <cgraph/cgraph.h>
#include <gvc/gvcproc.h>
#include <gvc/gvc.h>
+#include <stdbool.h>
-extern void graph_init(Agraph_t *g, boolean use_rankdir);
+extern void graph_init(Agraph_t *g, bool use_rankdir);
extern void graph_cleanup(Agraph_t *g);
extern void gv_fixLocale (int set);
extern void gv_initShapes (void);
return -1;
gv_fixLocale (1);
- graph_init(g, gvc->layout.features->flags & LAYOUT_USES_RANKDIR);
+ graph_init(g, !!(gvc->layout.features->flags & LAYOUT_USES_RANKDIR));
GD_drawing(agroot(g)) = GD_drawing(g);
gv_initShapes ();
if (gvle && gvle->layout) {