diff dmd/Module.d @ 178:e3afd1303184

Many small bugs fixed Made all classes derive from TObject to detect memory leaks (functionality is disabled for now) Began work on overriding backend memory allocations (to avoid memory leaks)
author korDen
date Sun, 17 Oct 2010 07:42:00 +0400
parents fa9a71a9f5a8
children cd48cb899aee
line wrap: on
line diff
--- a/dmd/Module.d	Sun Oct 10 10:38:55 2010 +0400
+++ b/dmd/Module.d	Sun Oct 17 07:42:00 2010 +0400
@@ -211,8 +211,8 @@
     Vector!string debugidsNot;		// forward referenced debug identifiers
 
     uint versionlevel;	// version level
-    Array versionids;		// version identifiers
-    Array versionidsNot;	// forward referenced version identifiers
+    Vector!(string) versionids;		// version identifiers
+    Vector!(string) versionidsNot;	// forward referenced version identifiers
 
     Macro macrotable;		// document comment macros
     Escape escapetable;	// document comment escapes
@@ -220,7 +220,13 @@
 
     this(string filename, Identifier ident, int doDocComment, int doHdrGen)
 	{
+		register();
+
 		super(ident);
+
+		versionids = new Vector!string;
+		versionidsNot = new Vector!string;
+
 		FileName objfilename;
 
 		aimports = new Array();
@@ -354,13 +360,12 @@
 		}
 
 		if (result) {
-			writeln("loading ", result);
 			m.srcfile = new File(result);
 		}
 
 		if (global.params.verbose)
 		{
-			writef("import    ");
+			write("import    ");
 			if (packages)
 			{
 				foreach (pid; packages)