mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +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:
@@ -246,7 +246,7 @@ void EnterFunctionLevel (void)
|
|||||||
SymTable* S;
|
SymTable* S;
|
||||||
|
|
||||||
/* New lexical level */
|
/* New lexical level */
|
||||||
PRECONDITION (++LexicalLevel == LEX_LEVEL_FUNCTION);
|
++LexicalLevel;
|
||||||
|
|
||||||
/* Get a new symbol table and make it current */
|
/* Get a new symbol table and make it current */
|
||||||
S = NewSymTable (SYMTAB_SIZE_FUNCTION);
|
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 */
|
/* Remember the symbol tables for the level and leave the level without checks */
|
||||||
{
|
{
|
||||||
/* Leave the lexical level */
|
/* Leave the lexical level */
|
||||||
PRECONDITION (LexicalLevel-- == LEX_LEVEL_FUNCTION);
|
--LexicalLevel;
|
||||||
|
|
||||||
/* Remember the tables */
|
/* Remember the tables */
|
||||||
F->SymTab = SymTab;
|
F->SymTab = SymTab;
|
||||||
@@ -285,7 +285,7 @@ void ReenterFunctionLevel (struct FuncDesc* F)
|
|||||||
/* Reenter the function lexical level using the existing tables from F */
|
/* Reenter the function lexical level using the existing tables from F */
|
||||||
{
|
{
|
||||||
/* New lexical level */
|
/* New lexical level */
|
||||||
PRECONDITION (++LexicalLevel == LEX_LEVEL_FUNCTION);
|
++LexicalLevel;
|
||||||
|
|
||||||
/* Make the tables current again */
|
/* Make the tables current again */
|
||||||
F->SymTab->PrevTab = SymTab;
|
F->SymTab->PrevTab = SymTab;
|
||||||
@@ -304,7 +304,7 @@ void LeaveFunctionLevel (void)
|
|||||||
/* Leave function lexical level */
|
/* Leave function lexical level */
|
||||||
{
|
{
|
||||||
/* Leave the lexical level */
|
/* Leave the lexical level */
|
||||||
PRECONDITION (LexicalLevel-- == LEX_LEVEL_FUNCTION);
|
--LexicalLevel;
|
||||||
|
|
||||||
/* Check the tables */
|
/* Check the tables */
|
||||||
CheckSymTable (SymTab);
|
CheckSymTable (SymTab);
|
||||||
|
Reference in New Issue
Block a user