Mercurial > projects > ddmd
view dmd/Memory.d @ 2:7427ded8caf7
Removed unreferenced modules
First step at fixing GC issues - now calling GC.malloc instead of malloc (ditto calloc and realloc), get rid of free
author | korDen |
---|---|
date | Sun, 25 Oct 2009 03:20:59 +0300 |
parents | |
children |
line wrap: on
line source
version (GC_ENABLE) { extern (C) void* gc_malloc( size_t sz, uint ba = 0 ); extern (C) void* gc_calloc( size_t sz, uint ba = 0 ); extern (C) void* gc_realloc( void* p, size_t sz, uint ba = 0 ); struct GC { alias gc_malloc malloc; alias gc_calloc calloc; alias gc_realloc realloc; alias gc_disable disable; } } else { import core.stdc.stdlib; struct GC { alias core.stdc.stdlib.malloc malloc; alias core.stdc.stdlib.calloc calloc; alias core.stdc.stdlib.realloc realloc; } }