Changeset 144 for trunk/orca/win32

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/win32/os.c

    r136 r144  
    9292   change-dir 
    9393*/ 
    94 void orChangeDirNative( OValue* a1 ) 
     94OR_NATIVE_PUB( orChangeDirNative ) 
    9595{ 
    9696    int logic = 0; 
     
    106106   what-dir 
    107107*/ 
    108 void orWhatDirNative() 
     108OR_NATIVE_PUB( orWhatDirNative ) 
    109109{ 
    110110    if( _getcwd( orTmp, OR_TMP_SIZE ) ) 
     
    130130  No error if directory exists. 
    131131*/ 
    132 void orMakeDirNative( OValue* a1 ) 
     132OR_NATIVE_PUB( orMakeDirNative ) 
    133133{ 
    134134    int err; 
     
    161161#define REF_TIME    a1 
    162162 
    163 void orNowNative( OValue* a1 ) 
    164 { 
    165     OValue* res; 
     163OR_NATIVE_PUB( orNowNative ) 
     164{ 
    166165    struct _timeb tb; 
    167166 
    168167    _ftime( &tb ); 
    169168 
    170     res = orRESULT; 
    171169    if( orRefineSet( REF_TIME ) ) 
    172         orSetTF( res, OT_TIME ); 
     170        orSetTF( a1, OT_TIME ); 
    173171    else 
    174         orSetTF( res, OT_DATE ); 
    175     orSeconds(res) = tb.time + (tb.millitm * 0.001); 
    176 } 
    177  
    178  
    179 void orReadDir( const char* filename ) 
     172        orSetTF( a1, OT_DATE ); 
     173    orSeconds(a1) = tb.time + (tb.millitm * 0.001); 
     174} 
     175 
     176 
     177void orReadDir( OValue* a1, const char* filename ) 
    180178{ 
    181179    char filespec[ _MAX_PATH ];