Mercurial > projects > ddmd
diff 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 |
line wrap: on
line diff
--- a/dmd/AliasDeclaration.d Sun Oct 10 01:55:35 2010 +0400 +++ b/dmd/AliasDeclaration.d Sun Oct 10 03:47:23 2010 +0400 @@ -252,7 +252,33 @@ override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { - assert(false); + buf.writestring("alias "); +/// static if (false) { // && _DH +/// if (hgs.hdrgen) +/// { +/// if (haliassym) +/// { +/// haliassym.toCBuffer(buf, hgs); +/// buf.writeByte(' '); +/// buf.writestring(ident.toChars()); +/// } +/// else +/// htype.toCBuffer(buf, ident, hgs); +/// } +/// else +/// } + { + if (aliassym) + { + aliassym.toCBuffer(buf, hgs); + buf.writeByte(' '); + buf.writestring(ident.toChars()); + } + else + type.toCBuffer(buf, ident, hgs); + } + buf.writeByte(';'); + buf.writenl(); } version (_DH) {