Along the lines that Andrew suggested, I added a header called ubi_null.h.
authorChristopher R. Hertel <crh@samba.org>
Thu, 21 May 1998 17:14:20 +0000 (17:14 +0000)
committerChristopher R. Hertel <crh@samba.org>
Thu, 21 May 1998 17:14:20 +0000 (17:14 +0000)
commit05fcc678729999f249b97460a579bdc218028a47
tree0ce33d4ce790c539f04e6d4e5316612c38f1837c
parented0afe1e186ce53046e70d8a92103d4f59a2eed2
Along the lines that Andrew suggested, I added a header called ubi_null.h.
This header tries four different locations for a definition of NULL.  If
NULL still hasn't been found, it defaults to ((void *)0).  All of the
includes can be, essentially, overridden by defining NULL on the command
line, as in -DNULL=((void *)0).  I have faith that this will avoid the
problem of NULL being in different places on different systems.  If there
is a system out there that doesn't define NULL in any of the headers I've
included, then let me know *where* it's defined and I'll add another
header.  Chris -)-----
13 files changed:
source/ubiqx/ubi_AVLtree.c
source/ubiqx/ubi_AVLtree.h
source/ubiqx/ubi_BinTree.c
source/ubiqx/ubi_BinTree.h
source/ubiqx/ubi_Cache.c
source/ubiqx/ubi_Cache.h
source/ubiqx/ubi_SplayTree.c
source/ubiqx/ubi_SplayTree.h
source/ubiqx/ubi_dLinkList.c
source/ubiqx/ubi_dLinkList.h
source/ubiqx/ubi_null.h [new file with mode: 0644]
source/ubiqx/ubi_sLinkList.c
source/ubiqx/ubi_sLinkList.h