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**: The `device_sets_dpi` and `external_context` fields of the
+ `GVJ_t` struct are now C99 `bool`s instead of Graphviz-specific `boolean`s.
- **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
}
job->context = context;
- job->external_context = TRUE;
+ job->external_context = true;
rc = gvRenderJobs(gvc, g);
gvrender_end_job(job);
int screen;
void *context; /* gd or cairo surface */
- boolean external_context; /* context belongs to caller */
+ bool external_context; /* context belongs to caller */
char *imagedata; /* location of imagedata */
int flags; /* emit_graph flags */
#include "config.h"
#include <gtk/gtk.h>
+#include <stdbool.h>
#include "gvplugin_device.h"
(job->callbacks->motion)(job, job->pointer);
job->context = (void *)cr;
- job->external_context = TRUE;
+ job->external_context = true;
job->width = widget->allocation.width;
job->height = widget->allocation.height;
if (job->has_been_rendered) {
(job->callbacks->motion)(job, job->pointer);
job->context = (void *)cr;
- job->external_context = TRUE;
+ job->external_context = true;
job->width = widget->allocation.width;
job->height = widget->allocation.height;
window->pix, window->visual,
job->width, job->height);
job->context = (void *)cairo_create(surface);
- job->external_context = TRUE;
+ job->external_context = true;
(job->callbacks->refresh)(job);
cairo_surface_destroy(surface);
XCopyArea(dpy, window->pix, window->win, window->gc,
#include "config.h"
#include <gtk/gtk.h>
+#include <stdbool.h>
#include <gvc/gvplugin_device.h>
(job->callbacks->motion)(job, job->pointer);
job->context = cr;
- job->external_context = TRUE;
+ job->external_context = true;
job->width = widget->allocation.width;
job->height = widget->allocation.height;
if (job->has_been_rendered) {
(job->callbacks->motion)(job, job->pointer);
job->context = cr;
- job->external_context = TRUE;
+ job->external_context = true;
job->width = widget->allocation.width;
job->height = widget->allocation.height;
window->pix, window->visual,
job->width, job->height);
job->context = (void *)cairo_create(surface);
- job->external_context = TRUE;
+ job->external_context = true;
(job->callbacks->refresh)(job);
cairo_surface_destroy(surface);
XCopyArea(dpy, window->pix, window->win, window->gc,
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#include <stdbool.h>
#include "tcldot.h"
int graphcmd(ClientData clientData, Tcl_Interp * interp,
job = gvc->job;
job->imagedata = canvas;
job->context = interp;
- job->external_context = TRUE;
+ job->external_context = true;
job->output_file = stdout;
/* make sure that layout is done */