comparison dmd/ScopeDsymbol.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
comparison
equal deleted inserted replaced
1:5a2059196104 2:7427ded8caf7
14 import dmd.Util; 14 import dmd.Util;
15 import dmd.Id; 15 import dmd.Id;
16 import dmd.expression.Util; 16 import dmd.expression.Util;
17 17
18 import core.stdc.stdlib; 18 import core.stdc.stdlib;
19 import dmd.Memory;
19 20
20 class ScopeDsymbol : Dsymbol 21 class ScopeDsymbol : Dsymbol
21 { 22 {
22 Array members; // all Dsymbol's in this scope 23 Array members; // all Dsymbol's in this scope
23 DsymbolTable symtab; // members[] sorted into table 24 DsymbolTable symtab; // members[] sorted into table
170 return; 171 return;
171 } 172 }
172 } 173 }
173 } 174 }
174 imports.push(cast(void*)s); 175 imports.push(cast(void*)s);
175 prots = cast(PROT*)realloc(prots, imports.dim * prots[0].sizeof); 176 prots = cast(PROT*)GC.realloc(prots, imports.dim * prots[0].sizeof);
176 prots[imports.dim - 1] = protection; 177 prots[imports.dim - 1] = protection;
177 } 178 }
178 } 179 }
179 180
180 int isforwardRef() 181 int isforwardRef()