getdoubles2ptf(g, "size", &GD_drawing(g)->size) ? TRUE : FALSE;
getdoubles2ptf(g, "page", &(GD_drawing(g)->page));
- GD_drawing(g)->centered = mapbool(agget(g, "center"));
+ GD_drawing(g)->centered = mapbool(agget(g, "center")) ? TRUE : FALSE;
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);
+ GD_drawing(g)->landscape = mapbool(p) ? TRUE : FALSE;
p = agget(g, "clusterrank");
CL_type = maptoken(p, rankname, rankcode);
p = agget(g, "concentrate");
- Concentrate = mapbool(p);
+ Concentrate = mapbool(p) ? TRUE : FALSE;
State = GVBEGIN;
EdgeLabelsDone = 0;
orientation = ND_shape(n)->polygon->orientation;
skew = ND_shape(n)->polygon->skew;
distortion = ND_shape(n)->polygon->distortion;
- regular |= mapbool(agget(n, "regular"));
+ regular |= mapbool(agget(n, "regular")) ? TRUE : FALSE;
/* all calculations in floating point POINTS */
sz.x = MAX(info->size.x, sz.x);
sz.y = MAX(info->size.y, sz.y);
}
- resize_reclbl(info, sz, mapbool(late_string(n, N_nojustify, "false")));
+ resize_reclbl(info, sz,
+ mapbool(late_string(n, N_nojustify, "false")) ? TRUE : FALSE);
ul = pointfof(-sz.x / 2., sz.y / 2.); /* FIXME - is this still true: suspected to introduce ronding error - see Kluge below */
pos_reclbl(info, ul, sides);
ND_width(n) = PS2INCH(info->size.x);
if (attr == NULL)
return def;
- return mapbool(agxget(obj, attr)) != FALSE;
+ return mapbool(agxget(obj, attr));
}
/* union-find */
return dflt;
}
-boolean mapbool(char *p)
+bool mapbool(char *p)
{
- return mapBool(p, false) ? TRUE : FALSE;
+ return mapBool(p, false);
}
pointf dotneato_closest(splines * spl, pointf pt)
fi.fontsize, fi.fontname, fi.fontcolor);
GD_has_labels(sg) |= EDGE_LABEL;
ED_label_ontop(e) =
- mapbool(late_string(e, E_label_float, "false"));
+ mapbool(late_string(e, E_label_float, "false")) ? TRUE : FALSE;
}
if (E_xlabel && (str = agxget(e, E_xlabel)) && (str[0])) {
UTILS_API const char *safefile(const char *filename);
UTILS_API bool mapBool(const char*, bool);
-UTILS_API boolean mapbool(char *);
+UTILS_API bool mapbool(char *);
UTILS_API int maptoken(char *, char **, int *);
UTILS_API bool findStopColor(char *colorlist, char *clrs[2], float *frac);
char *constr;
if (E_constr && (constr = agxget(e, E_constr))) {
- if (constr[0] && mapbool(constr) == FALSE)
+ if (constr[0] && !mapbool(constr))
return TRUE;
}
return FALSE;
char *constr;
if (E_constr && (constr = agxget(e, E_constr))) {
- if (constr[0] && mapbool(constr) == FALSE)
+ if (constr[0] && !mapbool(constr))
return TRUE;
}
return FALSE;
extern int emit_once(char *str);
extern shape_desc *find_user_shape(char *name);
-extern boolean mapbool(char *s);
+extern bool mapbool(char *s);
int gvrender_select(GVJ_t * job, const char *str)
{
FORMAT_XBM,
} format_type;
-extern boolean mapbool(char *);
+extern bool mapbool(char *);
extern pointf Bezier(pointf * V, int degree, double t, pointf * Left, pointf * Right);
#define BEZIERSUBDIVISION 10
bgcolor_str = agget(job->gvc->g, "bgcolor");
if (truecolor_str && truecolor_str[0])
- truecolor_p = mapbool(truecolor_str) != FALSE;
+ truecolor_p = mapbool(truecolor_str);
if (bgcolor_str && strcmp(bgcolor_str, "transparent") == 0) {
if (job->render.features->flags & GVDEVICE_DOES_TRUECOLOR)