return NO_SUPPORT;
}
-void gvloadimage(GVJ_t * job, usershape_t *us, boxf b, bool filled, char *target)
+void gvloadimage(GVJ_t * job, usershape_t *us, boxf b, boolean filled, char *target)
{
gvloadimage_engine_t *gvli;
char type[SMALLBUF];
#include "gvcint.h"
#include "gvcproc.h"
-extern const bool Demand_Loading;
+extern const int Demand_Loading;
/*
* Define an apis array of name strings using an enumerated api_t as index.
/* install a plugin description into the list of available plugins */
/* list is alpha sorted by type, then quality sorted within the type,
then, if qualities are the same, last install wins */
-bool gvplugin_install(GVC_t * gvc, api_t api,
+boolean gvplugin_install(GVC_t * gvc, api_t api,
char *typestr, int quality, char *packagename, char *path,
gvplugin_installed_t * typeptr)
{
/* string buffer management
- FIXME - must have 20 solutions for this same thing */
-static const char *append_buf(char sep, char *str, bool new)
+static const char *append_buf(char sep, char *str, boolean new)
{
static char *buf;
static int bufsz, pos;
gvplugin_available_t **pnext, **plugin, **pprev;
const char *buf = NULL;
char *s, *p, *typestr_last;
- bool new = TRUE;
+ boolean new = TRUE;
/* check for valid apis[] index */
if (api < 0)
#endif
struct gvloadimage_engine_s {
- void (*loadimage) (GVJ_t *job, usershape_t *us, boxf b, bool filled);
+ void (*loadimage) (GVJ_t *job, usershape_t *us, boxf b, boolean filled);
};
#ifdef __cplusplus
#include "memory.h"
#include "const.h"
#include "macros.h"
+#include "colorprocs.h"
#include "gvplugin_render.h"
#include "graph.h"
#include "gvcint.h"
-#include "colorprocs.h"
#include "geom.h"
#include "geomprocs.h"
#include "gvcproc.h"
#endif
}
-void gvrender_ellipse(GVJ_t * job, pointf pf, double rx, double ry, bool filled)
+void gvrender_ellipse(GVJ_t * job, pointf pf, double rx, double ry, boolean filled)
{
gvrender_engine_t *gvre = job->render.engine;
#endif
}
-void gvrender_polygon(GVJ_t * job, pointf * af, int n, bool filled)
+void gvrender_polygon(GVJ_t * job, pointf * af, int n, boolean filled)
{
gvrender_engine_t *gvre = job->render.engine;
#endif
}
-void gvrender_box(GVJ_t * job, boxf B, bool filled)
+void gvrender_box(GVJ_t * job, boxf B, boolean filled)
{
pointf A[4];
}
void gvrender_beziercurve(GVJ_t * job, pointf * af, int n,
- int arrow_at_start, int arrow_at_end, bool filled)
+ int arrow_at_start, int arrow_at_end, boolean filled)
{
gvrender_engine_t *gvre = job->render.engine;
#endif
}
-void gvrender_usershape(GVJ_t * job, char *name, pointf * a, int n, bool filled)
+void gvrender_usershape(GVJ_t * job, char *name, pointf * a, int n, boolean filled)
{
gvrender_engine_t *gvre = job->render.engine;
usershape_t *us;
return NO_SUPPORT;
}
-bool gvtextlayout(GVC_t *gvc, textpara_t *para, char **fontpath)
+boolean gvtextlayout(GVC_t *gvc, textpara_t *para, char **fontpath)
{
gvtextlayout_engine_t *gvte = gvc->textlayout.engine;
return FT_NULL;
}
-static bool get_int_lsb_first (FILE *f, unsigned int sz, unsigned int *val)
+static boolean get_int_lsb_first (FILE *f, unsigned int sz, unsigned int *val)
{
int ch, i;
for (i = 0; i < sz; i++) {
ch = fgetc(f);
if (feof(f))
- return false;
+ return FALSE;
*val |= (ch << 8*i);
}
- return true;
+ return TRUE;
}
-static bool get_int_msb_first (FILE *f, unsigned int sz, unsigned int *val)
+static boolean get_int_msb_first (FILE *f, unsigned int sz, unsigned int *val)
{
int ch, i;
for (i = 0; i < sz; i++) {
ch = fgetc(f);
if (feof(f))
- return false;
+ return FALSE;
*val <<= 8;
*val |= ch;
}
- return true;
+ return TRUE;
}
static void png_size (usershape_t *us)
};
us->dpi = DEFAULT_DPI;
- while (true) {
+ while (TRUE) {
/* Now we must be at a 0xff or at a series of 0xff's.
* If that is not the case, or if we're at EOF, then there's
* a parsing error.
static void ps_size (usershape_t *us)
{
char line[BUFSIZ];
- bool saw_bb;
+ boolean saw_bb;
int lx, ly, ux, uy;
us->dpi = POINTS_PER_INCH;
fseek(us->f, 0, SEEK_SET);
- saw_bb = false;
+ saw_bb = FALSE;
while (fgets(line, sizeof(line), us->f)) {
if (sscanf (line, "%%%%BoundingBox: %d %d %d %d", &lx, &ly, &ux, &uy) == 4) {
- saw_bb = true;
+ saw_bb = TRUE;
break;
}
}