diff dmd/Scope.d @ 170:96c0fff6897d

more global state cleanup
author korDen
date Thu, 30 Sep 2010 14:09:50 +0400
parents af1bebfd96a4
children e3afd1303184
line wrap: on
line diff
--- a/dmd/Scope.d	Thu Sep 30 13:29:54 2010 +0400
+++ b/dmd/Scope.d	Thu Sep 30 14:09:50 2010 +0400
@@ -88,7 +88,6 @@
     uint lastoffset;	// offset in docbuf of where to insert next dec
     OutBuffer docbuf;		// buffer for documentation output
 
-    static Scope freelist;
 ///    static void *operator new(size_t sz);
     static Scope createGlobal(Module module_)
 	{
@@ -201,8 +200,8 @@
 
 		if (!nofree)
 		{
-			enclosing = freelist;
-			freelist = this;
+			enclosing = global.scope_freelist;
+			global.scope_freelist = this;
 			flags |= SCOPE.SCOPEfree;
 		}