1 /*
2  *     Copyright (c) 2000-2006 Alberto Reggiori <areggiori@webweaving.org>
3  *                        Dirk-Willem van Gulik <dirkx@webweaving.org>
4  *
5  * NOTICE
6  *
7  * This product is distributed under a BSD/ASF like license as described in the 'LICENSE'
8  * file you should have received together with this source code. If you did not get a
9  * a copy of such a license agreement you can pick up one at:
10  *
11  *     http://rdfstore.sourceforge.net/LICENSE
12  *
13  *
14  * $Id: mymalloc.h,v 1.6 2006/06/19 10:10:22 areggiori Exp $
15  */
16 char * memdup( void * data, size_t size );
17 
18 #ifdef RDFSTORE_DBMS_DEBUG_MALLOC
19 void * debug_malloc( size_t len, char * file, int line);
20 void debug_free( void * addr, char * file, int line );
21 void debug_malloc_dump(FILE * file);
22 
23 #define mymalloc(x) debug_malloc(x,__FILE__,__LINE__)
24 #define myfree(x) debug_free(x,__FILE__,__LINE__)
25 #else
26 #define mymalloc(x) malloc(x)
27 #define myfree(x) free(x)
28 #endif
29