Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r77bc259 r63e129c  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Feb 11 20:55:45 2024
    13 // Update Count     : 580
     12// Last Modified On : Sun Jan 28 09:56:08 2024
     13// Update Count     : 554
    1414//
    1515
     
    121121    } // for
    122122        if ( file == 0p ) {
    123                 throwResume (open_failure){ os };
     123                throw (open_failure){ os };
    124124                // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno );
    125125        } // if
     
    241241    } // for
    242242        if ( file == 0p ) {
    243                 throwResume (open_failure){ is };
     243                throw (open_failure){ is };
    244244                // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno );
    245245        } // if
     
    295295        va_start( args, format );
    296296
    297         int nargs, tmperrno;
     297        int nargs;
    298298    for () {                                                                                    // no check for EINTR limit waiting for keyboard input
     299                errno = 0;
    299300                disable_interrupts();
    300                 errno = 0;
    301301                nargs = vfscanf( (FILE *)(is.file$), format, args );
    302                 tmperrno = errno;
    303302                enable_interrupts();
    304303          if ( nargs != EOF || errno != EINTR ) break;          // timer interrupt ?
     
    309308                } // if
    310309        } // if
    311         if ( tmperrno == ERANGE ) throwResume ExceptionInst( data_range );
    312310        va_end( args );
    313311        return nargs;
     
    320318// *********************************** exceptions ***********************************
    321319
     320
     321static vtable(open_failure) open_failure_vt;
    322322
    323323// exception I/O constructors
     
    335335
    336336
     337static vtable(close_failure) close_failure_vt;
     338
    337339// exception I/O constructors
    338340void ?{}( close_failure & ex, ofstream & ostream ) with( ex ) {
     
    349351
    350352
     353static vtable(write_failure) write_failure_vt;
     354
    351355// exception I/O constructors
    352356void ?{}( write_failure & ex, ofstream & ostream ) with( ex ) {
     
    363367
    364368
     369static vtable(read_failure) read_failure_vt;
     370
    365371// exception I/O constructors
    366372void ?{}( read_failure & ex, ofstream & ostream ) with( ex ) {
Note: See TracChangeset for help on using the changeset viewer.