(line, "%%%%BoundingBox: %d %d %d %d", &lx, &ly, &ux, &uy) == 4) {
saw_bb = true;
}
- if ((line[0] != '%') && strstr(line,"read")) must_inline = true;
+ if (line[0] != '%' && strstr(line,"read")) must_inline = true;
if (saw_bb && must_inline) break;
}
ND_height(n) = PS2INCH(dy);
ND_shape_info(n) = desc = NEW(epsf_t);
desc->macro_id = us->macro_id;
- desc->offset.x = -us->x - (dx) / 2;
- desc->offset.y = -us->y - (dy) / 2;
+ desc->offset.x = -us->x - dx / 2;
+ desc->offset.y = -us->y - dy / 2;
} else
agerr(AGWARN, "shapefile not set or not found for epsf node %s\n", agnameof(n));
}
/* check for empty string to turn off stdlib */
if (arglib) {
- for (i = 0; use_stdlib && ((p = arglib[i])); i++) {
+ for (i = 0; use_stdlib && (p = arglib[i]); i++) {
if (*p == '\0')
use_stdlib = false;
}
agxbputc (&xb, LPAREN);
s = base;
while (*s) {
- if ((*s == LPAREN) || (*s == RPAREN) || (*s == '\\'))
+ if (*s == LPAREN || *s == RPAREN || *s == '\\')
agxbputc (&xb, '\\');
agxbputc (&xb, *s++);
}