projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New method result set method rs_hits that returns the number of
[idzebra-moved-to-github.git]
/
dfa
/
imalloc.c
diff --git
a/dfa/imalloc.c
b/dfa/imalloc.c
index
952eb7a
..
3076d26
100644
(file)
--- a/
dfa/imalloc.c
+++ b/
dfa/imalloc.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (C) 1994-1996, Index Data I/S
+ * Copyright (C) 1994-1997, Index Data I/S
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: imalloc.c,v $
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: imalloc.c,v $
- * Revision 1.5 1996-05-14 11:33:41 adam
+ * Revision 1.7 1997-10-27 14:27:13 adam
+ * Minor changes.
+ *
+ * Revision 1.6 1996/10/29 13:57:25 adam
+ * Include of zebrautl.h instead of alexutil.h.
+ *
+ * Revision 1.5 1996/05/14 11:33:41 adam
* MEMDEBUG turned off by default.
*
* Revision 1.4 1995/09/04 12:33:26 adam
* MEMDEBUG turned off by default.
*
* Revision 1.4 1995/09/04 12:33:26 adam
@@
-25,7
+31,7
@@
#include <assert.h>
#include <stdlib.h>
#include <assert.h>
#include <stdlib.h>
-#include <alexutil.h>
+#include <zebrautl.h>
#include "imalloc.h"
#if MEMDEBUG
#include "imalloc.h"
#if MEMDEBUG
@@
-89,9
+95,9
@@
void *icalloc (size_t size)
#endif
}
#endif
}
-#if MEMDEBUG
-void i_free (void *p)
+void ifree (void *p)
{
{
+#if MEMDEBUG
size_t size;
if( !p )
return;
size_t size;
if( !p )
return;
@@
-107,8
+113,10
@@
void i_free (void *p)
if( alloc < 0L )
logf (LOG_FATAL,"Internal: ifree(%u) negative alloc.", size );
xfree( (unsigned *) p-2 );
if( alloc < 0L )
logf (LOG_FATAL,"Internal: ifree(%u) negative alloc.", size );
xfree( (unsigned *) p-2 );
-}
+#else
+ xfree (p);
#endif
#endif
+}
#if MEMDEBUG
void imemstat (void)
#if MEMDEBUG
void imemstat (void)