From 3c0459742097fa807b2927e4ae69e2ae4b5fbecd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 27 Oct 1997 14:27:13 +0000 Subject: [PATCH] Minor changes. --- dfa/imalloc.c | 15 ++++++++++----- dfa/imalloc.h | 14 ++++++-------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/dfa/imalloc.c b/dfa/imalloc.c index 43a6657..3076d26 100644 --- a/dfa/imalloc.c +++ b/dfa/imalloc.c @@ -1,10 +1,13 @@ /* - * 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 $ - * Revision 1.6 1996-10-29 13:57:25 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 @@ -92,9 +95,9 @@ void *icalloc (size_t size) #endif } -#if MEMDEBUG -void i_free (void *p) +void ifree (void *p) { +#if MEMDEBUG size_t size; if( !p ) return; @@ -110,8 +113,10 @@ void i_free (void *p) if( alloc < 0L ) logf (LOG_FATAL,"Internal: ifree(%u) negative alloc.", size ); xfree( (unsigned *) p-2 ); -} +#else + xfree (p); #endif +} #if MEMDEBUG void imemstat (void) diff --git a/dfa/imalloc.h b/dfa/imalloc.h index 26deaf7..6acb0a9 100644 --- a/dfa/imalloc.h +++ b/dfa/imalloc.h @@ -1,10 +1,13 @@ /* - * 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.h,v $ - * Revision 1.2 1996-05-14 11:33:41 adam + * Revision 1.3 1997-10-27 14:27:13 adam + * Minor changes. + * + * Revision 1.2 1996/05/14 11:33:41 adam * MEMDEBUG turned off by default. * * Revision 1.1 1994/09/26 10:16:54 adam @@ -15,20 +18,15 @@ void *imalloc (size_t); void *icalloc (size_t); +void ifree (void *); #if MEMDEBUG -void i_free (void *); void imemstat (void); extern long alloc; extern long max_alloc; extern int alloc_calls; extern int free_calls; -#define ifree i_free - -#else - -#define ifree free #endif -- 1.7.10.4