}
if (!root && state->N_root) {
for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
- if (late_bool(ORIGN(n), state->N_root, 0)) {
+ if (late_bool(ORIGN(n), state->N_root, false)) {
root = n;
break;
}
force = agfindgraphattr(gp, "forcelabels");
- params.force = late_bool(gp, force, TRUE);
+ params.force = late_bool(gp, force, true);
params.bb = bb;
placeLabels(objs, n_objs, lbls, n_lbls, ¶ms);
if (Verbose)
return rv;
}
-boolean late_bool(void *obj, attrsym_t * attr, int def)
+bool late_bool(void *obj, attrsym_t * attr, bool def)
{
if (attr == NULL)
return def;
- return mapbool(agxget(obj, attr));
+ return mapbool(agxget(obj, attr)) != FALSE;
}
/* union-find */
UTILS_API double late_double(void *, Agsym_t *, double, double);
UTILS_API char *late_nnstring(void *, Agsym_t *, char *);
UTILS_API char *late_string(void *, Agsym_t *, char *);
-UTILS_API boolean late_bool(void *, Agsym_t *, int);
+UTILS_API bool late_bool(void *, Agsym_t *, bool);
UTILS_API double get_inputscale(graph_t *g);
UTILS_API Agnode_t *UF_find(Agnode_t *);