Mercurial > projects > ddmd
diff dmd/SharedStaticDtorDeclaration.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | |
children | b0d41ff5e0df |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/SharedStaticDtorDeclaration.d Sun Oct 17 20:56:07 2010 +0400 @@ -0,0 +1,34 @@ +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; } +} \ No newline at end of file