From: Matthew Fernandez Date: Tue, 27 Sep 2022 15:22:28 +0000 (-0700) Subject: core plugin: abbreviate 'IS_CLUSTER' macro X-Git-Tag: 6.0.2~23^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=727c27f1e46308e9b717cff521e4867f41299eba;p=graphviz core plugin: abbreviate 'IS_CLUSTER' macro --- diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index dfb7b2587..7b75a4f2b 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -57,7 +58,7 @@ typedef struct { #define ED_gid(n) (((gvid_t*)aggetrec(n, ID, FALSE))->id) #define GD_gid(n) (((gvid_t*)aggetrec(n, ID, FALSE))->id) -#define IS_CLUSTER(s) (!strncmp(agnameof(s), "cluster", 7)) +#define IS_CLUSTER(s) startswith(agnameof(s), "cluster") static void json_begin_graph(GVJ_t *job) {