Ignore:
Timestamp:
Feb 26, 2024, 3:53:42 AM (20 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
3f9a8d0
Parents:
0522ebe (diff), 022bce0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Resolve conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r0522ebe ra4da45e  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jan 28 09:56:08 2024
    13 // Update Count     : 554
     12// Last Modified On : Sun Feb 11 20:55:45 2024
     13// Update Count     : 580
    1414//
    1515
     
    121121    } // for
    122122        if ( file == 0p ) {
    123                 throw (open_failure){ os };
     123                throwResume (open_failure){ os };
    124124                // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno );
    125125        } // if
     
    241241    } // for
    242242        if ( file == 0p ) {
    243                 throw (open_failure){ is };
     243                throwResume (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;
     297        int nargs, tmperrno;
    298298    for () {                                                                                    // no check for EINTR limit waiting for keyboard input
    299                 errno = 0;
    300299                disable_interrupts();
     300                errno = 0;
    301301                nargs = vfscanf( (FILE *)(is.file$), format, args );
     302                tmperrno = errno;
    302303                enable_interrupts();
    303304          if ( nargs != EOF || errno != EINTR ) break;          // timer interrupt ?
     
    308309                } // if
    309310        } // if
     311        if ( tmperrno == ERANGE ) throwResume ExceptionInst( data_range );
    310312        va_end( args );
    311313        return nargs;
     
    318320// *********************************** exceptions ***********************************
    319321
    320 
    321 static vtable(open_failure) open_failure_vt;
    322322
    323323// exception I/O constructors
     
    335335
    336336
    337 static vtable(close_failure) close_failure_vt;
    338 
    339337// exception I/O constructors
    340338void ?{}( close_failure & ex, ofstream & ostream ) with( ex ) {
     
    351349
    352350
    353 static vtable(write_failure) write_failure_vt;
    354 
    355351// exception I/O constructors
    356352void ?{}( write_failure & ex, ofstream & ostream ) with( ex ) {
     
    367363
    368364
    369 static vtable(read_failure) read_failure_vt;
    370 
    371365// exception I/O constructors
    372366void ?{}( read_failure & ex, ofstream & ostream ) with( ex ) {
Note: See TracChangeset for help on using the changeset viewer.