From 9328da18fb6beaeae9be314c55ac6d88407a2ef1 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 25 Nov 2002 15:13:03 +0000 Subject: [PATCH] Fixed symtab code git-svn-id: svn://svn.cc65.org/cc65/trunk@1642 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/symtab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index 850725be9..dac4344b7 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -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); -- 2.39.5