engine/source/scriptlib/StackedSymbolTable.c
/******************************************************************************
*  PopScope -- This method pops the topmost symbol table off the stack,
*  destroying it in the process.  Any symbols in this table have gone out of
*  scope and should not be found in a symbol search.
******************************************************************************/
- This method pops the topmost symbol table off the stack,
destroying it in the process.  Any symbols in this table have gone out of
scope and should not be found in a symbol search.
- This method pops the topmost symbol table off the stack destroying it in the process . Any symbols in this table have gone out of scope and should not be found in a symbol search .
void StackedSymbolTable_PopScope(StackedSymbolTable *sstable)
{
    SymbolTable *pSymbolTable = NULL;
    pSymbolTable = (SymbolTable *)Stack_Top(&(sstable->SymbolTableStack));
    Stack_Pop(&(sstable->SymbolTableStack));
    if(pSymbolTable)
    {
        SymbolTable_Clear(pSymbolTable);
        free((void *)pSymbolTable);
    }
}
void StackedSymbolTable_PopScope ( StackedSymbolTable * sstable ) { SymbolTable * pSymbolTable = NULL ; pSymbolTable = ( SymbolTable * ) Stack_Top ( & ( sstable -> SymbolTableStack ) ) ; Stack_Pop ( & ( sstable -> SymbolTableStack ) ) ; if ( pSymbolTable ) { SymbolTable_Clear ( pSymbolTable ) ; free ( ( void * ) pSymbolTable ) ; } }
PopScope -- This method pops the topmost symbol table off the stack,
destroying it in the process.
PopScope -- This method pops the topmost symbol table off the stack destroying it in the process .