1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

Fixed symtab code

git-svn-id: svn://svn.cc65.org/cc65/trunk@1642 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-11-25 15:13:03 +00:00
parent 70755921a9
commit 9328da18fb

View File

@ -246,7 +246,7 @@ void EnterFunctionLevel (void)
SymTable* S;
/* New lexical level */
PRECONDITION (++LexicalLevel == LEX_LEVEL_FUNCTION);
++LexicalLevel;
/* Get a new symbol table and make it current */
S = NewSymTable (SYMTAB_SIZE_FUNCTION);
@ -268,7 +268,7 @@ void RememberFunctionLevel (struct FuncDesc* F)
/* Remember the symbol tables for the level and leave the level without checks */
{
/* Leave the lexical level */
PRECONDITION (LexicalLevel-- == LEX_LEVEL_FUNCTION);
--LexicalLevel;
/* Remember the tables */
F->SymTab = SymTab;
@ -285,7 +285,7 @@ void ReenterFunctionLevel (struct FuncDesc* F)
/* Reenter the function lexical level using the existing tables from F */
{
/* New lexical level */
PRECONDITION (++LexicalLevel == LEX_LEVEL_FUNCTION);
++LexicalLevel;
/* Make the tables current again */
F->SymTab->PrevTab = SymTab;
@ -304,7 +304,7 @@ void LeaveFunctionLevel (void)
/* Leave function lexical level */
{
/* Leave the lexical level */
PRECONDITION (LexicalLevel-- == LEX_LEVEL_FUNCTION);
--LexicalLevel;
/* Check the tables */
CheckSymTable (SymTab);