Mercurial > projects > ldc
diff dmd2/declaration.c @ 921:75c53f8f67a4
Apply StaticStructInit changes from [913] to dmd2/
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Feb 2009 18:00:17 +0100 |
parents | 340acf1535d0 |
children | 0749c0757a43 |
line wrap: on
line diff
--- a/dmd2/declaration.c Tue Feb 03 08:54:57 2009 +0100 +++ b/dmd2/declaration.c Tue Feb 03 18:00:17 2009 +0100 @@ -1647,4 +1647,13 @@ return NULL; } - + +/********************** StaticStructInitDeclaration ***************************/ + +StaticStructInitDeclaration::StaticStructInitDeclaration(Loc loc, StructDeclaration *dsym) + : Declaration(new Identifier("", TOKidentifier)) +{ + this->loc = loc; + this->dsym = dsym; + storage_class |= STCconst; +}