X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=mymemory.h;h=4c44f5be514c4e8fdd9344f2cee7fb939ca8a3ad;hb=016ea07f77770187d2a2238cfb9ad372bef7f818;hp=56e690436d1e573da00bf287e6aff2388f476c0c;hpb=ca8ff397344fe054228da40ca7009ba5756e7d1a;p=c11tester.git diff --git a/mymemory.h b/mymemory.h index 56e69043..4c44f5be 100644 --- a/mymemory.h +++ b/mymemory.h @@ -9,7 +9,6 @@ /** MEMALLOC declares the allocators for a class to allocate * memory in the non-snapshotting heap. */ - #define MEMALLOC \ void * operator new(size_t size) { \ return MYMALLOC(size);\ @@ -26,10 +25,10 @@ /** SNAPSHOTALLOC declares the allocators for a class to allocate * memory in the snapshotting heap. */ - #define SNAPSHOTALLOC void *MYMALLOC(size_t size); +void *MYCALLOC(size_t count, size_t size); void MYFREE(void *ptr); void system_free( void * ptr ); @@ -45,7 +44,6 @@ void *system_malloc( size_t size ); * This software is provided "as is" without express or implied * warranty, and with no claim as to its suitability for any purpose. */ - template class MyAlloc { public: