summaryrefslogtreecommitdiff
path: root/source3/ubiqx/ubi_SplayTree.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-05-21 17:14:20 +0000
committerChristopher R. Hertel <crh@samba.org>1998-05-21 17:14:20 +0000
commitcbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d (patch)
treeb0845888c5c5ef14f8bd9b101a768d03634cfb6c /source3/ubiqx/ubi_SplayTree.c
parentcf76b415a34534f574664e1fc1f8f1f8e6511c95 (diff)
downloadsamba-cbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d.tar.gz
samba-cbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d.tar.bz2
samba-cbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d.zip
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 -)----- (This used to be commit 05fcc678729999f249b97460a579bdc218028a47)
Diffstat (limited to 'source3/ubiqx/ubi_SplayTree.c')
-rw-r--r--source3/ubiqx/ubi_SplayTree.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/ubiqx/ubi_SplayTree.c b/source3/ubiqx/ubi_SplayTree.c
index 7bc1070bc7..a0d638ecc7 100644
--- a/source3/ubiqx/ubi_SplayTree.c
+++ b/source3/ubiqx/ubi_SplayTree.c
@@ -36,7 +36,10 @@
*
* -------------------------------------------------------------------------- **
*
- * Log: ubi_SplayTree.c,v
+ * Log: ubi_SplayTree.c,v
+ * Revision 4.1 1998/05/20 04:37:54 crh
+ * The C file now includes ubi_null.h. See ubi_null.h for more info.
+ *
* Revision 4.0 1998/03/10 03:41:33 crh
* Minor comment changes. The revision number is now 4.0 to match the
* BinTree and AVLtree modules.
@@ -123,17 +126,17 @@
* ========================================================================== **
*/
-#include "../includes.h"
-#include "ubi_SplayTree.h" /* Header for THIS module. */
+#include "ubi_null.h" /* ubiqx NULL source. */
+#include "ubi_SplayTree.h" /* Header for THIS module. */
/* ========================================================================== **
* Static data.
*/
static char ModuleID[] = "ubi_SplayTree\n\
-\tRevision: 4.0\n\
-\tDate: 1998/03/10 03:41:33\n\
-\tAuthor: crh\n";
+\tRevision: 4.1 \n\
+\tDate: 1998/05/20 04:37:54 \n\
+\tAuthor: crh \n";
/* ========================================================================== **