From 7825c089c647ffbde59d0201f1e1bf0a9b17373b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 30 Mar 2021 19:08:49 -0700 Subject: [PATCH] remove internal definitions of NULL ISO C guarantees this to exist via stddef.h or stdlib.h. --- lib/common/logic.h | 4 ---- lib/sfio/sfio.h | 3 --- tclpkg/tclhandle/tclhandle.h | 4 ---- 3 files changed, 11 deletions(-) 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)) /* -- 2.40.0