mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Tried to make it possible to have debug versions of the memory
management code in the default link library along with the normal versions. Let's see how well this works out in the GCC version. SAS/C does not seem to like it... git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14785 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_calloc.c,v 1.1.1.1 2004-07-26 16:31:52 obarthel Exp $
|
||||
* $Id: stdlib_calloc.c,v 1.2 2004-12-24 18:31:38 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -47,7 +47,7 @@
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
void *
|
||||
__static void *
|
||||
__calloc(size_t num_elements,size_t element_size,const char * file,int line)
|
||||
{
|
||||
void * result = NULL;
|
||||
@ -82,6 +82,10 @@ __calloc(size_t num_elements,size_t element_size,const char * file,int line)
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#if NOT defined(__MEM_DEBUG)
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
void *
|
||||
calloc(size_t num_elements,size_t element_size)
|
||||
{
|
||||
@ -91,3 +95,7 @@ calloc(size_t num_elements,size_t element_size)
|
||||
|
||||
return(result);
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#endif /* __MEM_DEBUG */
|
||||
|
||||
Reference in New Issue
Block a user