From: Matthew Fernandez Date: Wed, 31 Mar 2021 02:08:49 +0000 (-0700) Subject: remove internal definitions of NULL X-Git-Tag: 2.47.1~12^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7825c089c647ffbde59d0201f1e1bf0a9b17373b;p=graphviz remove internal definitions of NULL ISO C guarantees this to exist via stddef.h or stdlib.h. --- diff --git a/lib/common/logic.h b/lib/common/logic.h index 209382504..17f48f77f 100644 --- a/lib/common/logic.h +++ b/lib/common/logic.h @@ -32,10 +32,6 @@ extern "C" { #define NOTUSED(var) (void) var #endif -#ifndef NULL -#define NULL (void *)0 -#endif - #ifndef NIL #define NIL(type) ((type)0) #endif diff --git a/lib/sfio/sfio.h b/lib/sfio/sfio.h index 75238495e..116a7ceac 100644 --- a/lib/sfio/sfio.h +++ b/lib/sfio/sfio.h @@ -184,9 +184,6 @@ extern "C" { #define SFFMT_SET 07777770 /* flags settable on calling extf */ /* various constants */ -#ifndef NULL -#define NULL 0 -#endif #ifndef EOF #define EOF (-1) #endif diff --git a/tclpkg/tclhandle/tclhandle.h b/tclpkg/tclhandle/tclhandle.h index 1e26bee80..d425108e5 100644 --- a/tclpkg/tclhandle/tclhandle.h +++ b/tclpkg/tclhandle/tclhandle.h @@ -20,10 +20,6 @@ extern "C" { #define TCL_OK (0) #endif -#ifndef NULL -#define NULL (0) -#endif - #define ISSPACE(c) (isspace ((unsigned char) c)) /*