Changes in libcfa/src/fstream.hfa [b431515:6c5d92f]
- File:
-
- 1 edited
-
libcfa/src/fstream.hfa (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.hfa
rb431515 r6c5d92f 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Apr 24 09:04:03202113 // Update Count : 21 912 // Last Modified On : Tue Apr 20 19:04:12 2021 13 // Update Count : 218 14 14 // 15 15 … … 24 24 25 25 26 enum { ofstream_sepSize = 16 };26 enum { sepSize = 16 }; 27 27 struct ofstream { 28 28 void * file$; … … 33 33 bool sawNL$; 34 34 const char * sepCur$; 35 char separator$[ ofstream_sepSize];36 char tupleSeparator$[ ofstream_sepSize];35 char separator$[sepSize]; 36 char tupleSeparator$[sepSize]; 37 37 multiple_acquisition_lock lock$; 38 38 bool acquired$; 39 39 }; // ofstream 40 41 // Satisfies ostream42 40 43 41 // private … … 66 64 void sepSetTuple( ofstream &, const char [] ); 67 65 68 void ends( ofstream & ); 69 int fmt( ofstream &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 70 71 bool fail( ofstream & ); 66 void ends( ofstream & os ); 67 int fail( ofstream & ); 72 68 int flush( ofstream & ); 73 69 void open( ofstream &, const char name[], const char mode[] ); … … 75 71 void close( ofstream & ); 76 72 ofstream & write( ofstream &, const char data[], size_t size ); 77 78 void acquire( ofstream & );79 void release( ofstream & );73 int fmt( ofstream &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 74 void acquire( ofstream & os ); 75 void release( ofstream & os ); 80 76 81 77 struct osacquire { 82 78 ofstream & os; 83 79 }; 84 void ?{}( osacquire & acq, ofstream & );80 void ?{}( osacquire & acq, ofstream & os ); 85 81 void ^?{}( osacquire & acq ); 86 82 87 void ?{}( ofstream & );88 void ?{}( ofstream & , const char name[], const char mode[] );89 void ?{}( ofstream & , const char name[] );90 void ^?{}( ofstream & );83 void ?{}( ofstream & os ); 84 void ?{}( ofstream & os, const char name[], const char mode[] ); 85 void ?{}( ofstream & os, const char name[] ); 86 void ^?{}( ofstream & os ); 91 87 92 88 extern ofstream & sout, & stdout, & serr, & stderr; // aliases … … 104 100 }; // ifstream 105 101 106 // Satisfies istream107 108 102 // public 109 103 void nlOn( ifstream & ); … … 111 105 bool getANL( ifstream & ); 112 106 void ends( ifstream & ); 113 boolfail( ifstream & is );107 int fail( ifstream & is ); 114 108 int eof( ifstream & is ); 115 109 void open( ifstream & is, const char name[], const char mode[] ); … … 148 142 ); 149 143 150 void ?{}( Open_Failure & this, ofstream & );151 void ?{}( Open_Failure & this, ifstream & );144 void ?{}( Open_Failure & this, ofstream & ostream ); 145 void ?{}( Open_Failure & this, ifstream & istream ); 152 146 153 147 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.