X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/f79a30ddeee392a4f3d6aaf6ade2151a192097cc..ed2b4ee35ae9c3c6fb0f9c0a808c2945a843701a:/rt/gc/cdgc/iface.d?ds=sidebyside diff --git a/rt/gc/cdgc/iface.d b/rt/gc/cdgc/iface.d index 4a6cbec..3002284 100644 --- a/rt/gc/cdgc/iface.d +++ b/rt/gc/cdgc/iface.d @@ -102,10 +102,9 @@ extern (C) void gc_term() // _gc.fullCollectNoStack(); // not really a 'collect all' -- still scans // static data area, roots, and ranges. - _gc.Dtor(); } else { // default (safe) clenup - _gc.fullCollect(); + _gc.fullCollect(); } } @@ -145,19 +144,22 @@ extern (C) uint gc_clrAttr( void* p, uint a ) return _gc.clrAttr( p, a ); } -extern (C) void* gc_malloc( size_t sz, uint ba = 0 ) +extern (C) void* gc_malloc(size_t sz, uint attrs = 0, + PointerMap ptrmap = PointerMap.init) { - return _gc.malloc( sz, ba ); + return _gc.malloc(sz, attrs, ptrmap); } -extern (C) void* gc_calloc( size_t sz, uint ba = 0 ) +extern (C) void* gc_calloc(size_t sz, uint attrs = 0, + PointerMap ptrmap = PointerMap.init) { - return _gc.calloc( sz, ba ); + return _gc.calloc(sz, attrs, ptrmap); } -extern (C) void* gc_realloc( void* p, size_t sz, uint ba = 0 ) +extern (C) void* gc_realloc(void* p, size_t sz, uint attrs = 0, + PointerMap ptrmap = PointerMap.init) { - return _gc.realloc( p, sz, ba ); + return _gc.realloc(p, sz, attrs, ptrmap); } extern (C) size_t gc_extend( void* p, size_t mx, size_t sz ) @@ -233,3 +235,6 @@ extern (C) Object gc_weakpointerGet( void* wp ) { return _gc.weakpointerGet(wp); } + + +// vim: set et sw=4 sts=4 :