engine/source/scriptlib/SymbolTable.c
/******************************************************************************
*  FindSymbol -- Using the name of the symbol, this method searches the symbol
*  table.
*  Parameters: symbolName -- LPCOLESTR which contains the name of the desired
*                            symbol.
*              pp_theSymbol -- CSymbol** which receives the address of the
*                              CSymbol, or NULL if no symbol is found.
*  Returns: true if the symbol is found.
*           false otherwise.
******************************************************************************/
- Using the name of the symbol, this method searches the symbol
table.
Parameters: symbolName -- LPCOLESTR which contains the name of the desired
symbol.
pp_theSymbol -- CSymbol** which receives the address of the
CSymbol, or NULL if no symbol is found.
Returns: true if the symbol is found.
false otherwise.
- Using the name of the symbol this method searches the symbol table . Parameters : symbolName -- LPCOLESTR which contains the name of the desired symbol . pp_theSymbol -- CSymbol ** which receives the address of the CSymbol or NULL if no symbol is found . Returns : true if the symbol is found . false otherwise .
BOOL SymbolTable_FindSymbol(SymbolTable *stable, LPCSTR symbolName, Symbol **pp_theSymbol )
{
    if (symbolName && List_FindByName(&(stable->SymbolList), (char *) symbolName ))
    {
        *pp_theSymbol = (Symbol *)List_Retrieve(&(stable->SymbolList));
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}
BOOL SymbolTable_FindSymbol ( SymbolTable * stable , LPCSTR symbolName , Symbol * * pp_theSymbol ) { if ( symbolName && List_FindByName ( & ( stable -> SymbolList ) , ( char * ) symbolName ) ) { * pp_theSymbol = ( Symbol * ) List_Retrieve ( & ( stable -> SymbolList ) ) ; return TRUE ; } else { return FALSE ; } }
FindSymbol -- Using the name of the symbol, this method searches the symbol
table.
FindSymbol -- Using the name of the symbol this method searches the symbol table .