mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 23:21:46 +00:00
Add a constructor to PSymbolTable that takes a parent table as input
This commit is contained in:
parent
e696fff0be
commit
fe21ceec56
3 changed files with 7 additions and 1 deletions
|
@ -2507,6 +2507,11 @@ PSymbolTable::PSymbolTable()
|
|||
{
|
||||
}
|
||||
|
||||
PSymbolTable::PSymbolTable(PSymbolTable *parent)
|
||||
: ParentSymbolTable(parent)
|
||||
{
|
||||
}
|
||||
|
||||
PSymbolTable::~PSymbolTable ()
|
||||
{
|
||||
ReleaseSymbols();
|
||||
|
|
|
@ -73,6 +73,7 @@ public:
|
|||
struct PSymbolTable
|
||||
{
|
||||
PSymbolTable();
|
||||
PSymbolTable(PSymbolTable *parent);
|
||||
~PSymbolTable();
|
||||
|
||||
size_t MarkSymbols();
|
||||
|
|
|
@ -255,7 +255,7 @@ static void DoParse(const char *filename)
|
|||
ZCCParse(parser, 0, value, &state);
|
||||
ZCCParseFree(parser, free);
|
||||
|
||||
PSymbolTable symbols;
|
||||
PSymbolTable symbols(&GlobalSymbols);
|
||||
ZCCCompiler cc(state, NULL, symbols);
|
||||
cc.Compile();
|
||||
#ifdef _DEBUG
|
||||
|
|
Loading…
Reference in a new issue