diff dmd/EnumDeclaration.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
line wrap: on
line diff
--- a/dmd/EnumDeclaration.d	Sun Oct 17 07:42:00 2010 +0400
+++ b/dmd/EnumDeclaration.d	Sun Oct 17 20:56:07 2010 +0400
@@ -118,6 +118,8 @@
 			scx = scope_;            // save so we don't make redundant copies
 			scope_ = null;
 		}
+		
+	    uint dprogress_save = global.dprogress;
 
 		if (sc.stc & STC.STCdeprecated)
 			isdeprecated = true;
@@ -145,7 +147,8 @@
 					scope_ = scx ? scx : sc.clone();
 					scope_.setNoFree();
 					scope_.module_.addDeferredSemantic(this);
-					writef("\tdeferring %s\n", toChars());
+					global.dprogress = dprogress_save;
+					//writef("\tdeferring %s\n", toChars());
 					return;
 				}
 			}
@@ -160,6 +163,7 @@
 		}
 
 		isdone = true;
+	    global.dprogress++;
 
 		type = type.semantic(loc, sc);
 		if (isAnonymous())