Mercurial > projects > ddmd
view dmd/SharedStaticDtorDeclaration.d @ 184:9f4e5ac4f0a3
One step closer to building on posix.
There are two missing symbols so it actually doesn't build
but previously it didn't build correctly anyway.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 02 Nov 2010 08:46:11 +0100 |
parents | cd48cb899aee |
children | b0d41ff5e0df |
line wrap: on
line source
module dmd.SharedStaticDtorDeclaration; import dmd.StaticDtorDeclaration; import dmd.Loc; import dmd.Dsymbol; import dmd.OutBuffer; import dmd.HdrGenState; import dmd.FuncDeclaration; class SharedStaticDtorDeclaration : StaticDtorDeclaration { this(Loc loc, Loc endloc) { super(loc, endloc, "_sharedStaticDtor"); } Dsymbol syntaxCopy(Dsymbol s) { assert(!s); SharedStaticDtorDeclaration sdd = new SharedStaticDtorDeclaration(loc, endloc); return FuncDeclaration.syntaxCopy(sdd); } void toCBuffer(OutBuffer buf, HdrGenState* hgs) { if (!hgs.hdrgen) { buf.writestring("shared "); StaticDtorDeclaration.toCBuffer(buf, hgs); } } SharedStaticDtorDeclaration isSharedStaticDtorDeclaration() { return this; } }