diff dmd/Global.d @ 170:96c0fff6897d

more global state cleanup
author korDen
date Thu, 30 Sep 2010 14:09:50 +0400
parents e7769d53e750
children d237b38b5858
line wrap: on
line diff
--- a/dmd/Global.d	Thu Sep 30 13:29:54 2010 +0400
+++ b/dmd/Global.d	Thu Sep 30 14:09:50 2010 +0400
@@ -8,7 +8,12 @@
 import dmd.StringTable;
 import dmd.OutBuffer;
 import dmd.Token;
+import dmd.Scope;
 import dmd.Module;
+import dmd.Id;
+
+import dmd.codegen.Util;
+import dmd.backend.Classsym;
 
 import core.stdc.time;
 import core.stdc.stdio;
@@ -81,8 +86,18 @@
     Array amodules;		// array of all modules
     Array deferred;	// deferred Dsymbol's needing semantic() run on them
     uint dprogress;	// progress resolving the deferred list
+	int nested;
+	Classsym* scc;
+	ClassDeclaration moduleinfo;
 	
-	ClassDeclaration moduleinfo;
+	// Used in PowExp
+	bool importMathChecked = false;
+	
+	// Used in Scope
+	Scope scope_freelist;
+	
+	// Used in TemplateMixin
+	int nest;
 	
 	this()
 	{
@@ -98,6 +113,11 @@
 		init_time();
 	}
 	
+	void initClasssym()
+	{
+		scc = fake_classsym(Id.ClassInfo);
+	}
+	
 	void init_time()
 	{
 		time_t tm;