From 01ae5893887270f0010be956ad1ffb56519850c2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Dec 2021 19:01:35 -0800 Subject: [PATCH] isPolygon: [nfc] use a C99 bool return type instead of boolean --- lib/common/render.h | 2 +- lib/common/shapes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/render.h b/lib/common/render.h index f537c580b..1beab295c 100644 --- a/lib/common/render.h +++ b/lib/common/render.h @@ -113,7 +113,7 @@ extern "C" { RENDER_API void gv_cleanup_node(Agnode_t * n); RENDER_API void* init_xdot (Agraph_t* g); RENDER_API int initMapData (GVJ_t*, char*, char*, char*, char*, char*, void*); - RENDER_API boolean isPolygon(node_t *); + RENDER_API bool isPolygon(node_t *); RENDER_API void makeSelfEdge(edge_t * edges[], int ind, int cnt, double sizex, double sizey, splineInfo * sinfo); RENDER_API textlabel_t *make_label(void *obj, char *str, int kind, double fontsize, char *fontname, char *fontcolor); diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 1af04af3b..05b5683bd 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -1830,7 +1830,7 @@ shape_kind shapeOf(node_t * n) return SH_UNSET; } -boolean isPolygon(node_t * n) +bool isPolygon(node_t * n) { return (ND_shape(n) && (ND_shape(n)->fns->initfn == poly_init)); } -- 2.40.0