module rt.gc.cdgc.iface;
-import rt.gc.cdgc.gc;
-import rt.gc.cdgc.stats;
-import rt.gc.cdgc.libc;
+import rt.gc.cdgc.gc: GC, BlkInfo;
+import rt.gc.cdgc.stats: GCStats;
+
+import cstdlib = tango.stdc.stdlib;
version=GCCLASS;
extern (C) void gc_init()
{
version (GCCLASS)
- { void* p;
+ {
ClassInfo ci = GC.classinfo;
-
- p = malloc(ci.init.length);
+ void* p = cstdlib.malloc(ci.init.length);
(cast(byte*)p)[0 .. ci.init.length] = ci.init[];
_gc = cast(GC)p;
}
else
{
- _gc = cast(GC*) calloc(1, GC.sizeof);
+ _gc = cast(GC*) cstdlib.calloc(1, GC.sizeof);
}
_gc.initialize();
version (DigitalMars) version(OSX) {
{
return _gc.weakpointerGet(wp);
}
+
+
+// vim: set et sw=4 sts=4 :