Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
18:c05ef76f1c20 | 19:788401029ecf |
---|---|
51 | 51 |
52 if (this == Id::ctor) p = "this"; | 52 if (this == Id::ctor) p = "this"; |
53 else if (this == Id::dtor) p = "~this"; | 53 else if (this == Id::dtor) p = "~this"; |
54 else if (this == Id::classInvariant) p = "invariant"; | 54 else if (this == Id::classInvariant) p = "invariant"; |
55 else if (this == Id::unitTest) p = "unittest"; | 55 else if (this == Id::unitTest) p = "unittest"; |
56 else if (this == Id::staticCtor) p = "static this"; | |
57 else if (this == Id::staticDtor) p = "static ~this"; | |
58 else if (this == Id::dollar) p = "$"; | 56 else if (this == Id::dollar) p = "$"; |
59 else if (this == Id::withSym) p = "with"; | 57 else if (this == Id::withSym) p = "with"; |
60 else if (this == Id::result) p = "result"; | 58 else if (this == Id::result) p = "result"; |
61 else if (this == Id::returnLabel) p = "return"; | 59 else if (this == Id::returnLabel) p = "return"; |
62 else | 60 else |
63 p = toChars(); | 61 { p = toChars(); |
62 if (*p == '_') | |
63 { | |
64 if (memcmp(p, "_staticCtor", 11) == 0) | |
65 p = "static this"; | |
66 else if (memcmp(p, "_staticDtor", 11) == 0) | |
67 p = "static ~this"; | |
68 } | |
69 } | |
64 | 70 |
65 return p; | 71 return p; |
66 } | 72 } |
67 | 73 |
68 void Identifier::print() | 74 void Identifier::print() |