Ignore:
Timestamp:
Apr 17, 2011, 11:56:59 PM (10 years ago)
Author:
Sam Hocevar
Message:

lisp: implement LSymbol::EvalFunction? and ensure all local pointers are
protected against collection.

File:
1 edited

Legend:

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

    r494 r497  
    335335/*    if( DEFINEDP( symbol_function( l_get_local_input ) ) )
    336336    {
    337         void *ret = eval_function((LSymbol *)l_get_local_input, NULL );
     337        void *ret = ((LSymbol *)l_get_local_input->EvalFunction(NULL);
    338338        sug_x = lnumber_value( CAR( ret ) );
    339339        ret = CDR( ret );
     
    462462      void *list=NULL;
    463463      push_onto_list(LString::Create(chat_buf),list);
    464       eval_function((LSymbol *)l_chat_input,list);
     464      ((LSymbol *)l_chat_input)->EvalFunction(list);
    465465      restore_heap(m,TMP_SPACE);
    466466
Note: See TracChangeset for help on using the changeset viewer.