Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.hfa

    rb431515 r6c5d92f  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Apr 24 09:04:03 2021
    13 // Update Count     : 219
     12// Last Modified On : Tue Apr 20 19:04:12 2021
     13// Update Count     : 218
    1414//
    1515
     
    2424
    2525
    26 enum { ofstream_sepSize = 16 };
     26enum { sepSize = 16 };
    2727struct ofstream {
    2828        void * file$;
     
    3333        bool sawNL$;
    3434        const char * sepCur$;
    35         char separator$[ofstream_sepSize];
    36         char tupleSeparator$[ofstream_sepSize];
     35        char separator$[sepSize];
     36        char tupleSeparator$[sepSize];
    3737        multiple_acquisition_lock lock$;
    3838        bool acquired$;
    3939}; // ofstream
    40 
    41 // Satisfies ostream
    4240
    4341// private
     
    6664void sepSetTuple( ofstream &, const char [] );
    6765
    68 void ends( ofstream & );
    69 int fmt( ofstream &, const char format[], ... ) __attribute__(( format(printf, 2, 3) ));
    70 
    71 bool fail( ofstream & );
     66void ends( ofstream & os );
     67int fail( ofstream & );
    7268int flush( ofstream & );
    7369void open( ofstream &, const char name[], const char mode[] );
     
    7571void close( ofstream & );
    7672ofstream & write( ofstream &, const char data[], size_t size );
    77 
    78 void acquire( ofstream & );
    79 void release( ofstream & );
     73int fmt( ofstream &, const char format[], ... ) __attribute__(( format(printf, 2, 3) ));
     74void acquire( ofstream & os );
     75void release( ofstream & os );
    8076
    8177struct osacquire {
    8278        ofstream & os;
    8379};
    84 void ?{}( osacquire & acq, ofstream & );
     80void ?{}( osacquire & acq, ofstream & os );
    8581void ^?{}( osacquire & acq );
    8682
    87 void ?{}( ofstream & );
    88 void ?{}( ofstream &, const char name[], const char mode[] );
    89 void ?{}( ofstream &, const char name[] );
    90 void ^?{}( ofstream & );
     83void ?{}( ofstream & os );
     84void ?{}( ofstream & os, const char name[], const char mode[] );
     85void ?{}( ofstream & os, const char name[] );
     86void ^?{}( ofstream & os );
    9187
    9288extern ofstream & sout, & stdout, & serr, & stderr;             // aliases
     
    104100}; // ifstream
    105101
    106 // Satisfies istream
    107 
    108102// public
    109103void nlOn( ifstream & );
     
    111105bool getANL( ifstream & );
    112106void ends( ifstream & );
    113 bool fail( ifstream & is );
     107int fail( ifstream & is );
    114108int eof( ifstream & is );
    115109void open( ifstream & is, const char name[], const char mode[] );
     
    148142);
    149143
    150 void ?{}( Open_Failure & this, ofstream & );
    151 void ?{}( Open_Failure & this, ifstream & );
     144void ?{}( Open_Failure & this, ofstream & ostream );
     145void ?{}( Open_Failure & this, ifstream & istream );
    152146
    153147// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.