`bool` instead of a Graphviz-specific `boolean`.
- **Breaking**: The `candidate` and `valid` fields of the `rank_t` struct are
now C99 `bool`s instead of Graphviz-specific `boolean`s.
+- **Breaking**: The `filled`, `landscape`, and `centered` fields of the
+ `layout_t` struct are now C99 `bool`s instead of Graphviz-specific `boolean`s.
- **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A
drop-in replacement is `SHRT_MAX` in the C standard library’s limits.h.
- **Breaking**: Graphviz headers no lnger define `NIL` macros. A drop-in
GD_fontnames(g) = maptoken(p, fontnamenames, fontnamecodes);
setRatio(g);
- GD_drawing(g)->filled =
- getdoubles2ptf(g, "size", &GD_drawing(g)->size) ? TRUE : FALSE;
+ GD_drawing(g)->filled = getdoubles2ptf(g, "size", &GD_drawing(g)->size);
getdoubles2ptf(g, "page", &(GD_drawing(g)->page));
- GD_drawing(g)->centered = mapbool(agget(g, "center")) ? TRUE : FALSE;
+ GD_drawing(g)->centered = mapbool(agget(g, "center"));
if ((p = agget(g, "rotate")))
GD_drawing(g)->landscape = atoi(p) == 90;
else if ((p = agget(g, "orientation")))
GD_drawing(g)->landscape = p[0] == 'l' || p[0] == 'L';
else if ((p = agget(g, "landscape")))
- GD_drawing(g)->landscape = mapbool(p) ? TRUE : FALSE;
+ GD_drawing(g)->landscape = mapbool(p);
p = agget(g, "clusterrank");
CL_type = maptoken(p, rankname, rankcode);