From 424b67ad03fafdb0d6caf2e9bf5a103e9717e71f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 19 Feb 2024 12:03:52 -0800 Subject: unifdef NULL_NOT_ZERO I can't find any evidence this was ever defined, should only have been needed for odd-ball pre-C89 compilers. Signed-off-by: Alan Coopersmith --- src/globals.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/globals.c b/src/globals.c index be252f5..ed3df9a 100644 --- a/src/globals.c +++ b/src/globals.c @@ -34,26 +34,11 @@ from The Open Group. #endif #include #include -#include /* for definition of NULL */ - -/* - * If possible, it is useful to have the global data default to a null value. - * Some shared library implementations are *much* happier if there isn't any - * global initialized data. - */ -#ifdef NULL_NOT_ZERO /* then need to initialize */ -#define SetZero(t,var,z) t var = z -#else -#define SetZero(t,var,z) t var -#endif - -#define ZEROINIT(t,var,val) SetZero (t, var, val) - /* * Error handlers; used to be in XlibInt.c */ -ZEROINIT (XextErrorHandler, _XExtensionErrorFunction, NULL); +XextErrorHandler _XExtensionErrorFunction; /* * NOTE: any additional external definition NEED -- cgit v1.2.3