From: Matthew Fernandez Date: Mon, 20 Dec 2021 03:58:56 +0000 (-0800) Subject: gvtextlayout: [nfc] return a C99 bool instead of a boolean X-Git-Tag: 3.0.0~112^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6a55e508a0abc87e1c80dc29b55f2e02568eee8;p=graphviz gvtextlayout: [nfc] return a C99 bool instead of a boolean --- diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h index 47122941a..5a4a86255 100644 --- a/lib/gvc/gvcproc.h +++ b/lib/gvc/gvcproc.h @@ -50,7 +50,7 @@ /* textlayout */ int gvtextlayout_select(GVC_t * gvc); - boolean gvtextlayout(GVC_t *gvc, textspan_t *span, char **fontpath); + bool gvtextlayout(GVC_t *gvc, textspan_t *span, char **fontpath); /* loadimage */ void gvloadimage(GVJ_t *job, usershape_t *us, boxf b, boolean filled, const char *target); diff --git a/lib/gvc/gvtextlayout.c b/lib/gvc/gvtextlayout.c index 035888010..584dd1a45 100644 --- a/lib/gvc/gvtextlayout.c +++ b/lib/gvc/gvtextlayout.c @@ -18,6 +18,7 @@ #include #include #include +#include int gvtextlayout_select(GVC_t * gvc) { @@ -33,11 +34,11 @@ int gvtextlayout_select(GVC_t * gvc) return NO_SUPPORT; } -boolean gvtextlayout(GVC_t *gvc, textspan_t *span, char **fontpath) +bool gvtextlayout(GVC_t *gvc, textspan_t *span, char **fontpath) { gvtextlayout_engine_t *gvte = gvc->textlayout.engine; if (gvte && gvte->textlayout) - return gvte->textlayout(span, fontpath); - return FALSE; + return gvte->textlayout(span, fontpath) != FALSE; + return false; }