1 /* GDC -- D front-end for GCC
2 Copyright (C) 2004 David Friedman
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
36 Stree
= 0; // %% make it NULL-TREE, include d-gcc-include
44 otherNestedFuncs
= NULL
;
45 outputStage
= NotStarted
;
50 symbol_calloc(const char * string
)
52 // Need to dup the string because sometimes the string is alloca()'d
54 Symbol
* s
= new Symbol
;
55 s
->Sident
= mem
.strdup(string
);
60 symbol_name(const char * id
, int /*sclass*/, TYPE
* /*t*/)
62 // %% Nothing special, just do the same as symbol_calloc
63 // we don't even bother using sclass and t
65 return symbol_calloc(id
);
75 symbol_generate(SymbolStorageClass
/*sc*/, TYPE
* /*type*/)
87 symbol_func(Symbol
* /*sym*/)
96 Symbol
* s
= new Symbol
;