]> granicus.if.org Git - graphviz/commitdiff
remove bool shims in diffimg
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 18 Feb 2021 04:35:36 +0000 (20:35 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Feb 2021 15:48:10 +0000 (07:48 -0800)
Now that we build with C99, the existence of this support is guaranteed to be
supplied in stdbool.h.

contrib/diffimg/diffimg.c

index 510b53c4991770e2f33a9a7d2ab9b72576cf1881..5b4d6acdce1f38ef893cf5a1a116fdd532196f01 100644 (file)
 #define EX_DATAERR             65
 #define EX_NOINPUT             66
 #define EX_UNAVAILABLE 69
-#define bool int
-#define false 0
 #else
 #include <sysexits.h>
 #endif
 #include <gd.h>
 #include <stdbool.h>
 
-#define NOT(v) (!(v))
-#ifndef false
-#define false 0
-#define true NOT(false)
-#endif
-
 static char *pstopng="gs -dNOPAUSE -sDEVICE=pngalpha -sOutputFile=- -q -";
 
 static gdImagePtr imageLoad (char *filename)