diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-21 18:23:36 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-21 18:23:36 -0800 |
commit | 4ab58f26d388c82ffe46ef1c7dd1cee6259eec8a (patch) | |
tree | d3e5b8e62b330573f1ccca9f1cedd350602733f7 | |
parent | 7bb2a5050a2f6049c92b301fae1cf89532b70060 (diff) |
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 <alan.coopersmith@oracle.com>
-rw-r--r-- | src/globals.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/globals.c b/src/globals.c index f60e2975..089a6536 100644 --- a/src/globals.c +++ b/src/globals.c @@ -37,35 +37,21 @@ from The Open Group. #endif #include <X11/Xlibint.h> - -/* - * 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 (XErrorHandler, _XErrorFunction, NULL); -ZEROINIT (XIOErrorHandler, _XIOErrorFunction, NULL); -ZEROINIT (_XQEvent *, _qfree, NULL); +XErrorHandler _XErrorFunction; +XIOErrorHandler _XIOErrorFunction; +_XQEvent * _qfree; /* * Debugging information and display list; used to be in XOpenDis.c */ #ifndef WIN32 -ZEROINIT (int, _Xdebug, 0); +int _Xdebug; #endif -ZEROINIT (Display *, _XHeadOfDisplayList, NULL); +Display *_XHeadOfDisplayList; #ifdef XTEST1 |