mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-30 12:31:07 +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)
|
November 28, 2006 (Changes by Graf Zahl)
|
||||||
- Fixed: The StrifePlayer couldn't obtain his default inventory because
|
- Fixed: The StrifePlayer couldn't obtain his default inventory because
|
||||||
APlayerPawn::GiveDefaultInventory gave him some HexenArmor even though
|
APlayerPawn::GiveDefaultInventory gave him some HexenArmor even though
|
||||||
|
|
|
@ -305,11 +305,6 @@ void PClass::FreeStateList ()
|
||||||
|
|
||||||
// Symbol tables ------------------------------------------------------------
|
// Symbol tables ------------------------------------------------------------
|
||||||
|
|
||||||
PSymbolTable::PSymbolTable ()
|
|
||||||
: ParentSymbolTable(NULL)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
PSymbolTable::~PSymbolTable ()
|
PSymbolTable::~PSymbolTable ()
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < Symbols.Size(); ++i)
|
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.
|
// Good. The symbol is not in the table yet.
|
||||||
Symbols.Insert (MAX(min, max), sym);
|
Symbols.Insert (MAX(min, max), sym);
|
||||||
return sym;
|
return sym;
|
||||||
}
|
}
|
|
@ -56,7 +56,10 @@ struct PSymbolActionFunction : public PSymbol
|
||||||
class PSymbolTable
|
class PSymbolTable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PSymbolTable();
|
PSymbolTable() : ParentSymbolTable(NULL)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
~PSymbolTable();
|
~PSymbolTable();
|
||||||
|
|
||||||
// Sets the table to use for searches if this one doesn't contain the
|
// Sets the table to use for searches if this one doesn't contain the
|
||||||
|
|
|
@ -178,29 +178,29 @@ std2:
|
||||||
"==" { RET(TK_Eq); }
|
"==" { RET(TK_Eq); }
|
||||||
"!=" { RET(TK_Neq); }
|
"!=" { 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('?'); }
|
"?" { RET('?'); }
|
||||||
|
|
||||||
[ \t\v\f\r]+ { goto std1; }
|
[ \t\v\f\r]+ { goto std1; }
|
||||||
"\n" { goto newline; }
|
"\n" { goto newline; }
|
||||||
|
|
Loading…
Reference in a new issue