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