engine/source/scriptlib/StackedSymbolTable.c
/******************************************************************************
*  Initialize -- This method intializes the stacked symbol table with its name
*  and creates a new stack for the symbol tables.
******************************************************************************/
- This method intializes the stacked symbol table with its name
and creates a new stack for the symbol tables.
- This method intializes the stacked symbol table with its name and creates a new stack for the symbol tables .
void StackedSymbolTable_Init(StackedSymbolTable *sstable, LPCSTR theName )
{
    if (theName)
    {
        strcpy(sstable->name, theName);
    }
    else
    {
        sstable->name[0] = 0;
    }
    List_Init(&(sstable->SymbolTableStack));
    StackedSymbolTable_PushScope(sstable, "Global" );
}
void StackedSymbolTable_Init ( StackedSymbolTable * sstable , LPCSTR theName ) { if ( theName ) { strcpy ( sstable -> name , theName ) ; } else { sstable -> name [ 0 ] = 0 ; } List_Init ( & ( sstable -> SymbolTableStack ) ) ; StackedSymbolTable_PushScope ( sstable , " " ) ; }
Initialize -- This method intializes the stacked symbol table with its name
and creates a new stack for the symbol tables.
Initialize -- This method intializes the stacked symbol table with its name and creates a new stack for the symbol tables .