Changes in libcfa/src/fstream.cfa [63e129c:77bc259]
- File:
-
- 1 edited
-
libcfa/src/fstream.cfa (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
r63e129c r77bc259 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jan 28 09:56:08202413 // Update Count : 5 5412 // Last Modified On : Sun Feb 11 20:55:45 2024 13 // Update Count : 580 14 14 // 15 15 … … 121 121 } // for 122 122 if ( file == 0p ) { 123 throw (open_failure){ os };123 throwResume (open_failure){ os }; 124 124 // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno ); 125 125 } // if … … 241 241 } // for 242 242 if ( file == 0p ) { 243 throw (open_failure){ is };243 throwResume (open_failure){ is }; 244 244 // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno ); 245 245 } // if … … 295 295 va_start( args, format ); 296 296 297 int nargs ;297 int nargs, tmperrno; 298 298 for () { // no check for EINTR limit waiting for keyboard input 299 errno = 0;300 299 disable_interrupts(); 300 errno = 0; 301 301 nargs = vfscanf( (FILE *)(is.file$), format, args ); 302 tmperrno = errno; 302 303 enable_interrupts(); 303 304 if ( nargs != EOF || errno != EINTR ) break; // timer interrupt ? … … 308 309 } // if 309 310 } // if 311 if ( tmperrno == ERANGE ) throwResume ExceptionInst( data_range ); 310 312 va_end( args ); 311 313 return nargs; … … 318 320 // *********************************** exceptions *********************************** 319 321 320 321 static vtable(open_failure) open_failure_vt;322 322 323 323 // exception I/O constructors … … 335 335 336 336 337 static vtable(close_failure) close_failure_vt;338 339 337 // exception I/O constructors 340 338 void ?{}( close_failure & ex, ofstream & ostream ) with( ex ) { … … 351 349 352 350 353 static vtable(write_failure) write_failure_vt;354 355 351 // exception I/O constructors 356 352 void ?{}( write_failure & ex, ofstream & ostream ) with( ex ) { … … 367 363 368 364 369 static vtable(read_failure) read_failure_vt;370 371 365 // exception I/O constructors 372 366 void ?{}( read_failure & ex, ofstream & ostream ) with( ex ) {
Note:
See TracChangeset
for help on using the changeset viewer.