mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
SVN r396 (trunk)
This commit is contained in:
parent
0ba809234e
commit
a537d1a115
4 changed files with 32 additions and 30 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue