Changeset 144 for trunk/orca/gl/main.c

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/gl/main.c

    r61 r144  
    5656    { 
    5757        OIndex strN; 
     58        OValue* tos; 
    5859 
     60        tos = orTOS; 
    5961        strN = orMakeCString( argv[1], -1 ); 
    60         orResultFILE( strN ); 
     62        orSetTF(tos, OT_FILE ); 
     63        orSetSeries(tos, strN, 0 ); 
    6164 
    62         orDoNative( orRESULT ); 
     65        orDoNative( tos ); 
    6366        if( orErrorThrown ) 
    6467        { 
     
    123126                { 
    124127                    OValue* val; 
    125                     val = orRESULT; 
     128                    val = orTOS; 
    126129                    if( (val->type != OT_UNSET) && 
    127130                        (val->type != OT_OBJECT) &&