diff dmd/identifier.c @ 19:788401029ecf trunk

[svn r23] * Updated to DMD 1.021
author lindquist
date Thu, 04 Oct 2007 03:42:56 +0200
parents c53b6e3fe49a
children 6aee82889553
line wrap: on
line diff
--- a/dmd/identifier.c	Thu Oct 04 01:47:53 2007 +0200
+++ b/dmd/identifier.c	Thu Oct 04 03:42:56 2007 +0200
@@ -53,14 +53,20 @@
     else if (this == Id::dtor) p = "~this";
     else if (this == Id::classInvariant) p = "invariant";
     else if (this == Id::unitTest) p = "unittest";
-    else if (this == Id::staticCtor) p = "static this";
-    else if (this == Id::staticDtor) p = "static ~this";
     else if (this == Id::dollar) p = "$";
     else if (this == Id::withSym) p = "with";
     else if (this == Id::result) p = "result";
     else if (this == Id::returnLabel) p = "return";
     else
-	p = toChars();
+    {	p = toChars();
+	if (*p == '_')
+	{
+	    if (memcmp(p, "_staticCtor", 11) == 0)
+		p = "static this";
+	    else if (memcmp(p, "_staticDtor", 11) == 0)
+		p = "static ~this";
+	}
+    }
 
     return p;
 }