diff 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
line wrap: on
line diff
--- a/gen/tocsym.cpp	Fri Jan 30 07:51:50 2009 +0100
+++ b/gen/tocsym.cpp	Sun Feb 01 20:20:56 2009 +0100
@@ -22,16 +22,10 @@
 #include "attrib.h"
 #include "lexer.h"
 
-/********************************* SymbolDeclaration ****************************/
 
-SymbolDeclaration::SymbolDeclaration(Loc loc, Symbol *s, StructDeclaration *dsym)
-    : Declaration(new Identifier("", TOKidentifier))
+Symbol *StaticStructInitDeclaration::toSymbol()
 {
-}
-
-Symbol *SymbolDeclaration::toSymbol()
-{
-    return sym;
+    return 0;
 }
 
 /*************************************