Mercurial > projects > ldc
comparison dmd/identifier.c @ 1195:e961851fb8be
Merged DMD 1.042.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 03 Apr 2009 17:59:34 +0200 |
parents | b30fe7e1dbb9 |
children |
comparison
equal
deleted
inserted
replaced
1194:1853dcd9b944 | 1195:e961851fb8be |
---|---|
43 char *Identifier::toChars() | 43 char *Identifier::toChars() |
44 { | 44 { |
45 return (char *)string; | 45 return (char *)string; |
46 } | 46 } |
47 | 47 |
48 char *Identifier::toHChars2() | 48 const char *Identifier::toHChars2() |
49 { | 49 { |
50 char *p = NULL; | 50 const char *p = NULL; |
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"; |