Mercurial > projects > ddmd
comparison dmd/AliasDeclaration.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | af1bebfd96a4 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
173:d237b38b5858 | 174:af724d3510d7 |
---|---|
250 return s; | 250 return s; |
251 } | 251 } |
252 | 252 |
253 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 253 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
254 { | 254 { |
255 assert(false); | 255 buf.writestring("alias "); |
256 /// static if (false) { // && _DH | |
257 /// if (hgs.hdrgen) | |
258 /// { | |
259 /// if (haliassym) | |
260 /// { | |
261 /// haliassym.toCBuffer(buf, hgs); | |
262 /// buf.writeByte(' '); | |
263 /// buf.writestring(ident.toChars()); | |
264 /// } | |
265 /// else | |
266 /// htype.toCBuffer(buf, ident, hgs); | |
267 /// } | |
268 /// else | |
269 /// } | |
270 { | |
271 if (aliassym) | |
272 { | |
273 aliassym.toCBuffer(buf, hgs); | |
274 buf.writeByte(' '); | |
275 buf.writestring(ident.toChars()); | |
276 } | |
277 else | |
278 type.toCBuffer(buf, ident, hgs); | |
279 } | |
280 buf.writeByte(';'); | |
281 buf.writenl(); | |
256 } | 282 } |
257 | 283 |
258 version (_DH) { | 284 version (_DH) { |
259 Type htype; | 285 Type htype; |
260 Dsymbol haliassym; | 286 Dsymbol haliassym; |