Changeset 144 for trunk/orca/qt

Show
Ignore:
Timestamp:
05/11/06 14:23:03 (3 years ago)
Author:
krobillard
Message:

Native arguments are now kept on the stack until after the call and the
result is now always put into a1.

Location:
trunk/orca/qt
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/qt/main.cpp

    r108 r144  
    4848    { 
    4949        OIndex strN; 
     50        OValue* tos; 
    5051 
     52        tos = orTOS; 
    5153        strN = orMakeCString( argv[1], -1 ); 
    52         orResultFILE( strN ); 
     54        orSetTF(tos, OT_FILE ); 
     55        orSetSeries(tos, strN, 0 ); 
    5356 
    54         orDoNative( orRESULT ); 
     57        orDoNative( tos ); 
    5558        if( orErrorThrown ) 
    5659        { 
     
    112115                { 
    113116                    OValue* val; 
    114                     val = orRESULT; 
     117                    val = orTOS; 
    115118                    if( (val->type != OT_UNSET) && 
    116119                        (val->type != OT_OBJECT) && 
  • trunk/orca/qt/qorca.cpp

    r138 r144  
    689689        if( orErrorThrown->error.msg == qEnv.atom_exec_exit ) 
    690690        { 
    691             orResultCopy( *(orErrorThrown + 1) ); 
     691            orCopyV( orTOS, *(orErrorThrown + 1) ); 
    692692            orErrorClear; 
    693693            return qEnv.atom_exec_exit; 
     
    695695        else if( orErrorThrown->error.msg == qEnv.atom_close ) 
    696696        { 
    697             orResultCopy( *(orErrorThrown + 1) ); 
     697            orCopyV( orTOS, *(orErrorThrown + 1) ); 
    698698            orErrorClear; 
    699699            return qEnv.atom_close; 
     
    12721272    { 
    12731273        printf( "** qoInitEnv Error: " ); 
    1274         orPrintNative( orRESULT ); 
     1274        orPrintNative( orTOS ); 
    12751275    } 
    12761276