Ignore:
Timestamp:
May 11, 2011, 1:26:15 AM (11 years ago)
Author:
Sam Hocevar
Message:

lisp: merge the Lisp and LispGC classes and improve coding style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/lisp/lisp_opt.cpp

    r555 r636  
    9393}
    9494
    95 void l_comp_init()
     95void Lisp::InitConstants()
    9696{
    9797    // This needs to be defined first
    98     l_undefined = LSymbol::FindOrCreate(":UNDEFINED");
    99 
     98    LSymbol *tmp = LSymbol::FindOrCreate(":UNDEFINED");
     99    l_undefined = tmp;
    100100    // Collection problems result if we don't do this
    101     ((LSymbol *)l_undefined)->function = NULL;
    102     ((LSymbol *)l_undefined)->value = NULL;
     101    tmp->m_function = NULL;
     102    tmp->m_value = NULL;
    103103
    104104    true_symbol = LSymbol::FindOrCreate("T");
Note: See TracChangeset for help on using the changeset viewer.