Changes in libcfa/src/iostream.hfa [9d362a0:3c5dee4]
- File:
-
- 1 edited
-
libcfa/src/iostream.hfa (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
r9d362a0 r3c5dee4 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 24 18:33:40 201813 // Update Count : 2 2012 // Last Modified On : Sat May 11 10:31:27 2019 13 // Update Count : 232 14 14 // 15 15 … … 48 48 void close( ostype & os ); 49 49 ostype & write( ostype &, const char *, size_t ); 50 int fmt( ostype &, const char format[], ... ) ;50 int fmt( ostype &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 51 51 }; // ostream 52 52 … … 62 62 63 63 forall( dtype ostype | ostream( ostype ) ) { 64 ostype & ?|?( ostype &, zero_t ); 65 void ?|?( ostype &, zero_t ); 66 ostype & ?|?( ostype &, one_t ); 67 void ?|?( ostype &, one_t ); 68 64 69 ostype & ?|?( ostype &, bool ); 65 70 void ?|?( ostype &, bool ); … … 144 149 145 150 trait istream( dtype istype ) { 151 void nlOn( istype & ); // read newline 152 void nlOff( istype & ); // scan newline 153 bool getANL( istype & ); // get scan newline (on/off) 146 154 int fail( istype & ); 147 155 int eof( istype & ); … … 150 158 istype & read( istype &, char *, size_t ); 151 159 istype & ungetc( istype &, char ); 152 int fmt( istype &, const char format[], ... ) ;160 int fmt( istype &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) )); 153 161 }; // istream 154 162 … … 184 192 istype & ?|?( istype &, istype & (*)( istype & ) ); 185 193 istype & nl( istype & is ); 194 istype & nlOn( istype & ); 195 istype & nlOff( istype & ); 186 196 } // distribution 187 197 … … 205 215 206 216 // Local Variables: // 207 // mode: c //208 217 // tab-width: 4 // 209 218 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.