Ignore:
Timestamp:
Apr 17, 2011, 10:28:20 AM (11 years ago)
Author:
Sam Hocevar
Message:

lisp: populate LispSymbol? with symbol-related methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/configuration.cpp

    r481 r484  
    3636    char tmp[40];
    3737    sprintf( tmp, "player%d", player );
    38     Cell *f = find_symbol( tmp );
    39     if( !NILP( f ) && DEFINEDP( symbol_value( f ) ) )
    40     {
    41         void *what = symbol_value( f );
    42         if( what == make_find_symbol( "keyboard" ) )
     38    LispSymbol *f = LispSymbol::Find(tmp);
     39    if( !NILP(f) && DEFINEDP(f->GetValue()))
     40    {
     41        void *what = f->GetValue();
     42        if(what == LispSymbol::FindOrCreate("keyboard"))
    4343            return 1;
    44         else if( what == make_find_symbol( "joystick" ) )
     44        else if(what == LispSymbol::FindOrCreate("joystick"))
    4545            return 2;
    4646    }
Note: See TracChangeset for help on using the changeset viewer.