From: Matthew Fernandez Date: Sun, 9 Jan 2022 16:50:52 +0000 (-0800) Subject: gvmap plot_dot_map: use a C99 bool for local 'plot_polyQ' X-Git-Tag: 3.0.0~79^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=840c7987ae5e20bf792e6d6b080bae9b8c326216;p=graphviz gvmap plot_dot_map: use a C99 bool for local 'plot_polyQ' --- diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index a51276374..69c279643 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -314,12 +315,12 @@ void plot_dot_map(Agraph_t* gr, int n, int dim, double *x, SparseMatrix polys, char **labels, float *fsz, float *r, float *g, float *b, const char* opacity, SparseMatrix A, FILE* f) { /* if graph object exist, we just modify some attributes, otherwise we dump the whole graph */ - int plot_polyQ = TRUE; + bool plot_polyQ = true; agxbuf sbuff; agxbinit(&sbuff, 0, NULL); - if (!r || !g || !b) plot_polyQ = FALSE; + if (!r || !g || !b) plot_polyQ = false; if (!gr) { fprintf(f, "graph map {\n node [margin = 0 width=0.0001 height=0.00001 shape=plaintext];\n graph [outputorder=edgesfirst, bgcolor=\"#dae2ff\"]\n edge [color=\"#55555515\",fontname=\"Helvetica-Bold\"]\n");