Changeset 144 for trunk/orca/files.c
- Timestamp:
- 05/11/06 14:23:03 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/files.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/files.c
r136 r144 26 26 extern int orIsDir( const char* path ); 27 27 extern int orFileModified( const char* path, OValue* res ); 28 extern void orReadDir( const char* filename );28 extern void orReadDir( OValue*, const char* filename ); 29 29 extern void orNowNative( OValue* a1 ); 30 30 extern void orChangeDirNative( OValue* a1 ); … … 126 126 OString* str = orSTRING(a1); 127 127 orTermCStr( str ); 128 status = orFileModified( str->charArray + a1->series.it, orRESULT);128 status = orFileModified( str->charArray + a1->series.it, a1 ); 129 129 if( status < 0 ) 130 130 { … … 248 248 #define REF_READ_SIZE a1+6 249 249 250 /* 251 read: native [ 252 source [file! port!] 253 /binary 254 /lines 255 /skip length [number!] 256 /part size [number!] 257 ] 258 */ 250 259 OR_NATIVE( orReadNative ) 251 260 { … … 257 266 258 267 orTermCStr( str ); 259 260 268 fn = str->charArray + a1->series.it; 269 261 270 n = orIsDir( fn ); 262 271 if( n < 0 ) … … 266 275 else if( n == 1 ) 267 276 { 268 orReadDir( fn ); 277 // TODO: Hold a1 from GC (or copy fn). 278 orReadDir( a1, fn ); 269 279 } 270 280 else … … 361 371 362 372 assert( (devID > -1) && (devID < arr->used) ); 363 ((OPortDevice**) arr->buf)[ devID ]->read( &a1->ctx );373 ((OPortDevice**) arr->buf)[ devID ]->read( &a1->ctx, a1 ); 364 374 } 365 375 }
