diff dmd/codegen/Util.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/codegen/Util.d	Sat Oct 24 17:25:59 2009 +0400
+++ b/dmd/codegen/Util.d	Sun Oct 25 03:20:59 2009 +0300
@@ -55,6 +55,8 @@
 import std.string;
 import core.stdc.string;
 
+import dmd.Memory;
+
 /************************************
  * Call a function.
  */
@@ -997,7 +999,7 @@
 					es.Eoper = OPER.OPstring;
 
 					// Match MEM_PH_FREE for OPstring in ztc\el.c
-					es.EV.ss.Vstring = cast(char*)malloc(len);	///
+					es.EV.ss.Vstring = cast(char*)GC.malloc(len);	///
 					memcpy(es.EV.ss.Vstring, &e.EV, len);
 
 					es.EV.ss.Vstrlen = len;