SVN r396 (trunk)

This commit is contained in:
Christoph Oelckers 2006-11-29 11:14:40 +00:00
parent 0ba809234e
commit a537d1a115
4 changed files with 32 additions and 30 deletions

View file

@ -1,3 +1,7 @@
November 29, 2006 (Changes by Graf Zahl)
- Made the constructor of PSymbolTable inline. Having this a real function
adds 100kb to the EXE, mostly needless exception handling code.
November 28, 2006 (Changes by Graf Zahl)
- Fixed: The StrifePlayer couldn't obtain his default inventory because
APlayerPawn::GiveDefaultInventory gave him some HexenArmor even though

View file

@ -305,11 +305,6 @@ void PClass::FreeStateList ()
// Symbol tables ------------------------------------------------------------
PSymbolTable::PSymbolTable ()
: ParentSymbolTable(NULL)
{
}
PSymbolTable::~PSymbolTable ()
{
for (unsigned int i = 0; i < Symbols.Size(); ++i)
@ -385,4 +380,4 @@ PSymbol *PSymbolTable::AddSymbol (PSymbol *sym)
// Good. The symbol is not in the table yet.
Symbols.Insert (MAX(min, max), sym);
return sym;
}
}

View file

@ -56,7 +56,10 @@ struct PSymbolActionFunction : public PSymbol
class PSymbolTable
{
public:
PSymbolTable();
PSymbolTable() : ParentSymbolTable(NULL)
{
}
~PSymbolTable();
// Sets the table to use for searches if this one doesn't contain the

View file

@ -178,29 +178,29 @@ std2:
"==" { RET(TK_Eq); }
"!=" { RET(TK_Neq); }
";" { RET(';'); }
"{" { RET('{'); }
"}" { RET('}'); }
"," { RET(','); }
":" { RET(':'); }
"=" { RET('='); }
"(" { RET('('); }
")" { RET(')'); }
"[" { RET('['); }
"]" { RET(']'); }
"." { RET('.'); }
"&" { RET('&'); }
"!" { RET('!'); }
"~" { RET('~'); }
"-" { RET('-'); }
"+" { RET('+'); }
"*" { RET('*'); }
"/" { RET('/'); }
"%" { RET('%'); }
"<" { RET('<'); }
">" { RET('>'); }
"^" { RET('^'); }
"|" { RET('|'); }
"?" { RET('?'); }
"{" { RET('{'); }
"}" { RET('}'); }
"," { RET(','); }
":" { RET(':'); }
"=" { RET('='); }
"(" { RET('('); }
")" { RET(')'); }
"[" { RET('['); }
"]" { RET(']'); }
"." { RET('.'); }
"&" { RET('&'); }
"!" { RET('!'); }
"~" { RET('~'); }
"-" { RET('-'); }
"+" { RET('+'); }
"*" { RET('*'); }
"/" { RET('/'); }
"%" { RET('%'); }
"<" { RET('<'); }
">" { RET('>'); }
"^" { RET('^'); }
"|" { RET('|'); }
"?" { RET('?'); }
[ \t\v\f\r]+ { goto std1; }
"\n" { goto newline; }