Changeset 279 for trunk/thune/files.c
- Timestamp:
- 09/21/06 03:54:47 (2 years ago)
- Files:
-
- 1 modified
-
trunk/thune/files.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/files.c
r274 r279 302 302 UR_CALL( uc_read ) 303 303 { 304 const char* fn; 304 305 int part = 0; 305 306 … … 319 320 } 320 321 321 if( ur_is(tos, UT_STRING) ) // UT_FILE 322 fn = ur_cstring( tos ); 323 if( fn ) 322 324 { 323 325 int err; 324 const char* fn; 325 UString* str = ur_bin(tos); 326 327 ur_termCStr( str ); 328 329 fn = str->ptr.c + tos->series.it; 326 330 327 err = ur_isDir( fn ); 331 328 if( err < 0 ) … … 433 430 } 434 431 } 432 else 433 { 434 ur_throwErr( UR_ERR_DATATYPE, "read expected string!/port!" ); 435 } 435 436 } 436 437
