C99 `bool` instead of a Graphviz-specific `boolean`.
- **Breaking**: The `must_inline` and `nocache` fields of the `usershape_t`
struct are now C99 `bool`s instead of Graphviz-specific `boolean`s.
+- **Breaking**: The `device_sets_dpi` field of the `GVJ_t` struct is now a C99
+ `bool` instead of a Graphviz-specific `boolean`.
- **Breaking**: 1-bit fields of the `obj_state_s` struct are now unsigned
instead of signed.
- **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A
#include "gvcommon.h"
#include "color.h"
+#include <stdbool.h>
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(A[0]))
gvplugin_active_loadimage_t loadimage;
gvdevice_callbacks_t *callbacks;
pointf device_dpi;
- boolean device_sets_dpi;
+ bool device_sets_dpi;
void *display;
int screen;
#include "config.h"
+#include <stdbool.h>
#include <stdint.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
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 gtk_finalize(GVJ_t *firstjob)
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 glitz_finalize(GVJ_t *firstjob)
#include "config.h"
+#include <stdbool.h>
#include <stdint.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
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 gtk_finalize(GVJ_t *firstjob)
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;
initialized = true;
}