Changeset 933f32f for libcfa/src/iostream.hfa
- Timestamp:
- May 24, 2019, 10:19:41 AM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d908563
- Parents:
- 6a9d4b4 (diff), 292642a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/iostream.hfa (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
r6a9d4b4 r933f32f 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.