Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    rba0d2ea r7e7a076  
    124124void open( ofstream & os, const char name[], const char mode[] ) {
    125125        FILE * file = fopen( name, mode );
    126         #ifdef __CFA_DEBUG__
     126        // #ifdef __CFA_DEBUG__
    127127        if ( file == 0p ) {
    128128                throw (Open_Failure){ os };
    129129                // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno );
    130130        } // if
    131         #endif // __CFA_DEBUG__
     131        // #endif // __CFA_DEBUG__
    132132        (os){ file };
    133133} // open
     
    186186        unlock( os.lock$ );
    187187} // release
     188
     189inline void lock( ofstream & os ) { acquire( os ); }
     190inline void unlock( ofstream & os ) { release( os ); }
    188191
    189192void ?{}( osacquire & acq, ofstream & os ) { &acq.os = &os; lock( os.lock$ ); }
     
    262265void open( ifstream & is, const char name[], const char mode[] ) {
    263266        FILE * file = fopen( name, mode );
    264         #ifdef __CFA_DEBUG__
     267        // #ifdef __CFA_DEBUG__
    265268        if ( file == 0p ) {
    266269                throw (Open_Failure){ is };
    267270                // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno );
    268271        } // if
    269         #endif // __CFA_DEBUG__
     272        // #endif // __CFA_DEBUG__
    270273        is.file$ = file;
    271274} // open
Note: See TracChangeset for help on using the changeset viewer.