Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r7e7a076 rba0d2ea  
    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 
    189 inline void lock( ofstream & os ) { acquire( os ); }
    190 inline void unlock( ofstream & os ) { release( os ); }
    191188
    192189void ?{}( osacquire & acq, ofstream & os ) { &acq.os = &os; lock( os.lock$ ); }
     
    265262void open( ifstream & is, const char name[], const char mode[] ) {
    266263        FILE * file = fopen( name, mode );
    267         // #ifdef __CFA_DEBUG__
     264        #ifdef __CFA_DEBUG__
    268265        if ( file == 0p ) {
    269266                throw (Open_Failure){ is };
    270267                // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno );
    271268        } // if
    272         // #endif // __CFA_DEBUG__
     269        #endif // __CFA_DEBUG__
    273270        is.file$ = file;
    274271} // open
Note: See TracChangeset for help on using the changeset viewer.