FORMAT_PS_PS, FORMAT__PS,
} format_type;
-static void core_loadimage_svg(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void core_loadimage_svg(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
assert(job);
assert(us);
core_fputs(job, "/>\n");
}
-static void core_loadimage_fig(GVJ_t * job, usershape_t *us, boxf bf, bool filled)
+static void core_loadimage_fig(GVJ_t * job, usershape_t *us, boxf bf, boolean filled)
{
int object_code = 2; /* always 2 for polyline */
int sub_type = 5; /* always 5 for image */
b.LL.x, b.LL.y);
}
-static void core_loadimage_vrml(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void core_loadimage_vrml(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
FILE *out;
obj_state_t *obj;
}
/* usershape described by a postscript file */
-static void core_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void core_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
FILE *out;
us->data = malloc(statbuf.st_size);
read(fd, us->data, statbuf.st_size);
#endif
- us->must_inline = true;
+ us->must_inline = TRUE;
break;
default:
break;
}
/* usershape described by a member of a postscript library */
-static void core_loadimage_pslib(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void core_loadimage_pslib(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
int i;
pointf AF[4];
extern void attach_attrs(graph_t * g);
extern void attach_attrs_and_arrows(graph_t*, int*, int*);
extern char *xml_string(char *str);
-extern void write_plain(GVJ_t * job, graph_t * g, FILE * f, bool extend);
+extern void write_plain(GVJ_t * job, graph_t * g, FILE * f, boolean extend);
extern void output_point(agxbuf *xbuf, pointf p);
#define GNEW(t) (t*)malloc(sizeof(t))
switch (job->render.id) {
case FORMAT_PLAIN:
- write_plain(job, g, job->output_file, false);
+ write_plain(job, g, job->output_file, FALSE);
break;
case FORMAT_PLAIN_EXT:
- write_plain(job, g, job->output_file, true);
+ write_plain(job, g, job->output_file, TRUE);
break;
case FORMAT_DOT:
case FORMAT_CANON:
return (gdImagePtr)(us->data);
}
-static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
gdImagePtr im3, im2 = NULL, im = (gdImagePtr) job->surface;
}
}
-static void gd_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void gd_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
gdImagePtr im = NULL;
FILE *out = job->output_file;
typedef enum { FORMAT_GD, FORMAT_GD2, FORMAT_GIF, FORMAT_JPEG, FORMAT_PNG,
FORMAT_WBMP, FORMAT_XBM, } format_type;
-extern bool mapbool(char *);
+extern boolean mapbool(char *);
extern char *safefile(char *shapefilename);
extern pointf Bezier(pointf * V, int degree, double t, pointf * Left, pointf * Right);
static void gdgen_begin_page(GVJ_t * job)
{
char *bgcolor_str = NULL, *truecolor_str = NULL;
- bool truecolor_p = FALSE; /* try to use cheaper paletted mode */
- bool bg_transparent_p = FALSE;
+ boolean truecolor_p = FALSE; /* try to use cheaper paletted mode */
+ boolean bg_transparent_p = FALSE;
int bgcolor = 0;
gdImagePtr im = NULL;
scr = DefaultScreen(dpy);
firstjob->device_dpi.x = DisplayWidth(dpy, scr) * 25.4 / DisplayWidthMM(dpy, scr);
firstjob->device_dpi.y = DisplayHeight(dpy, scr) * 25.4 / DisplayHeightMM(dpy, scr);
- firstjob->device_sets_dpi = true;
+ firstjob->device_sets_dpi = TRUE;
}
static void finalize_gtk(GVJ_t *firstjob)
return surface;
}
-static void pango_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void pango_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
cairo_t *cr = (cairo_t *) job->surface; /* target context */
cairo_surface_t *surface = NULL; /* source surface */
}
}
-static void pango_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, bool filled)
+static void pango_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
cairo_surface_t *surface = NULL; /* source surface */
FILE *out = job->output_file;
exit(0);
}
-static bool handle_keypress(GVJ_t *job, XKeyEvent *kev)
+static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev)
{
int i;
firstjob->device_dpi.x = DisplayWidth(dpy, scr) * 25.4 / DisplayWidthMM(dpy, scr);
firstjob->device_dpi.y = DisplayHeight(dpy, scr) * 25.4 / DisplayHeightMM(dpy, scr);
- firstjob->device_sets_dpi = true;
+ firstjob->device_sets_dpi = TRUE;
}
static void finalize_xlib(GVJ_t *firstjob)
struct timeval timeout;
#ifdef HAVE_SYS_INOTIFY_H
int wd=0;
- bool watching_p = FALSE;
+ boolean watching_p = FALSE;
static char *dir;
char *p, *cwd = NULL;