Changeset 144 for trunk/orca/win32
- Timestamp:
- 05/11/06 14:23:03 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/win32/os.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/win32/os.c
r136 r144 92 92 change-dir 93 93 */ 94 void orChangeDirNative( OValue* a1)94 OR_NATIVE_PUB( orChangeDirNative ) 95 95 { 96 96 int logic = 0; … … 106 106 what-dir 107 107 */ 108 void orWhatDirNative()108 OR_NATIVE_PUB( orWhatDirNative ) 109 109 { 110 110 if( _getcwd( orTmp, OR_TMP_SIZE ) ) … … 130 130 No error if directory exists. 131 131 */ 132 void orMakeDirNative( OValue* a1)132 OR_NATIVE_PUB( orMakeDirNative ) 133 133 { 134 134 int err; … … 161 161 #define REF_TIME a1 162 162 163 void orNowNative( OValue* a1 ) 164 { 165 OValue* res; 163 OR_NATIVE_PUB( orNowNative ) 164 { 166 165 struct _timeb tb; 167 166 168 167 _ftime( &tb ); 169 168 170 res = orRESULT;171 169 if( orRefineSet( REF_TIME ) ) 172 orSetTF( res, OT_TIME );170 orSetTF( a1, OT_TIME ); 173 171 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 177 void orReadDir( OValue* a1, const char* filename ) 180 178 { 181 179 char filespec[ _MAX_PATH ];
