Mercurial > projects > ddmd
comparison dmd/TypeDArray.d @ 96:acd69f84627e
further work
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 02:12:15 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
95:ae5b11064a9a | 96:acd69f84627e |
---|---|
117 Type.toDecoBuffer(buf, flag); | 117 Type.toDecoBuffer(buf, flag); |
118 if (next) | 118 if (next) |
119 next.toDecoBuffer(buf, (flag & 0x100) ? 0 : mod); | 119 next.toDecoBuffer(buf, (flag & 0x100) ? 0 : mod); |
120 } | 120 } |
121 | 121 |
122 override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) | 122 override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) |
123 { | 123 { |
124 if (mod != this.mod) | 124 if (mod != this.mod) |
125 { | 125 { |
126 toCBuffer3(buf, hgs, mod); | 126 toCBuffer3(buf, hgs, mod); |
127 return; | 127 return; |
128 } | 128 } |
129 next.toCBuffer2(buf, hgs, this.mod); | 129 if (equals(tstring)) |
130 buf.writestring("[]"); | 130 buf.writestring("string"); |
131 else | |
132 { | |
133 next.toCBuffer2(buf, hgs, this.mod); | |
134 buf.writestring("[]"); | |
135 } | |
131 } | 136 } |
132 | 137 |
133 override Expression dotExp(Scope sc, Expression e, Identifier ident) | 138 override Expression dotExp(Scope sc, Expression e, Identifier ident) |
134 { | 139 { |
135 version (LOGDOTEXP) { | 140 version (LOGDOTEXP) { |