comparison gen/tocsym.cpp @ 913:29c0d1194033

Fix #198 and #199 by making CTFE on static struct initializers work. Renamed SymbolDeclaration to StaticStructInitDeclaration to make its usage clearer.
author Christian Kamm <kamm incasoftware de>
date Sun, 01 Feb 2009 20:20:56 +0100
parents f04dde6e882c
children
comparison
equal deleted inserted replaced
912:16264a3973bf 913:29c0d1194033
20 #include "aggregate.h" 20 #include "aggregate.h"
21 #include "init.h" 21 #include "init.h"
22 #include "attrib.h" 22 #include "attrib.h"
23 #include "lexer.h" 23 #include "lexer.h"
24 24
25 /********************************* SymbolDeclaration ****************************/ 25
26 26 Symbol *StaticStructInitDeclaration::toSymbol()
27 SymbolDeclaration::SymbolDeclaration(Loc loc, Symbol *s, StructDeclaration *dsym) 27 {
28 : Declaration(new Identifier("", TOKidentifier)) 28 return 0;
29 {
30 }
31
32 Symbol *SymbolDeclaration::toSymbol()
33 {
34 return sym;
35 } 29 }
36 30
37 /************************************* 31 /*************************************
38 * Helper 32 * Helper
39 */ 33 */