00001 /* 00002 FALCON - The Falcon Programming Language. 00003 FILE: flc_memory.h 00004 00005 User overridable basic memory allocation 00006 ------------------------------------------------------------------- 00007 Author: Giancarlo Niccolai 00008 Begin: mar ago 3 2004 00009 00010 ------------------------------------------------------------------- 00011 (C) Copyright 2004: the FALCON developers (see list in AUTHORS file) 00012 00013 See LICENSE file for licensing details. 00014 */ 00015 00016 #ifndef flc_MEMORY_H 00017 #define flc_MEMORY_H 00018 00019 #include <falcon/setup.h> 00020 #include <falcon/globals.h> 00021 #include <stdlib.h> 00022 00047 namespace Falcon { 00048 00059 FALCON_DYN_SYM void gcMemAccount( size_t memSize ); 00060 FALCON_DYN_SYM void gcMemUnaccount( size_t memSize ); 00061 00063 FALCON_DYN_SYM void gcMemShutdown(); 00064 00066 FALCON_DYN_SYM size_t gcMemAllocated(); 00067 00068 FALCON_DYN_SYM void * DflMemAlloc( size_t amount ); 00069 FALCON_DYN_SYM void DflMemFree( void *mem ); 00070 FALCON_DYN_SYM void * DflMemRealloc( void *mem, size_t amount ); 00071 00072 FALCON_DYN_SYM void * DflAccountMemAlloc( size_t amount ); 00073 FALCON_DYN_SYM void DflAccountMemFree( void *mem ); 00074 FALCON_DYN_SYM void * DflAccountMemRealloc( void *mem, size_t amount ); 00075 00076 } 00077 00078 #endif 00079 00080 /* end of flc_memory.h */