Mercurial > projects > ddmd
comparison dmd/PragmaDeclaration.d @ 136:9d194c848e3a
fixed a few null reference bugs, thx sagitario
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:27:38 +0200 |
parents | 60bb0fe4563e |
children | 438eaa11eed4 |
comparison
equal
deleted
inserted
replaced
132:c494af1dba80 | 136:9d194c848e3a |
---|---|
59 e = e.semantic(sc); | 59 e = e.semantic(sc); |
60 e = e.optimize(WANTvalue | WANTinterpret); | 60 e = e.optimize(WANTvalue | WANTinterpret); |
61 if (e.op == TOKstring) | 61 if (e.op == TOKstring) |
62 { | 62 { |
63 auto se = cast(StringExp)e; | 63 auto se = cast(StringExp)e; |
64 writef("%s", se.toChars()[1..$-2] /*se.len, cast(char*)se.string_*/); | 64 writef("%s", se.toChars()[1..$-2]); // strip the '"'s, TODO: change to original?: /*se.len, cast(char*)se.string_*/ |
65 } | 65 } |
66 else | 66 else |
67 writef(e.toChars()); | 67 writef(e.toChars()); |
68 } | 68 } |
69 writef("\n"); | 69 writef("\n"); |