Mercurial > projects > ddmd
diff dmd/Module.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 | 10317f0c89a5 |
children | d706d958e4e8 |
line wrap: on
line diff
--- a/dmd/Module.d Sat Oct 24 17:25:59 2009 +0400 +++ b/dmd/Module.d Sun Oct 25 03:20:59 2009 +0300 @@ -56,6 +56,8 @@ import core.stdc.string; import core.stdc.stdlib; +import dmd.Memory; + uint readwordLE(ushort* p) { version (__I86__) { @@ -927,7 +929,7 @@ outdata(cov); slist_add(cov); - covb = cast(uint*)calloc((numlines + 32) / 32, (*covb).sizeof); + covb = cast(uint*)GC.calloc((numlines + 32) / 32, (*covb).sizeof); } for (int i = 0; i < members.dim; i++) @@ -952,7 +954,7 @@ dtnbytes(&bcov.Sdt, (numlines + 32) / 32 * (*covb).sizeof, cast(char*)covb); outdata(bcov); - free(covb); + ///free(covb); covb = null; /* Generate: