Changeset 22f94a4 for libcfa/src/iostream.hfa
- Timestamp:
- Aug 11, 2020, 4:40:15 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0d070ca
- Parents:
- 07d867b (diff), 129674b (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) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
r07d867b r22f94a4 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 20 15:30:56202013 // Update Count : 3 3712 // Last Modified On : Thu Jul 16 07:43:32 2020 13 // Update Count : 348 14 14 // 15 15 … … 19 19 20 20 21 // *********************************** ostream ***********************************21 // *********************************** ostream *********************************** 22 22 23 23 … … 156 156 } // distribution 157 157 158 // *********************************** manipulators ***********************************158 // *********************************** manipulators *********************************** 159 159 160 160 forall( otype T ) … … 166 166 unsigned char all; 167 167 struct { 168 unsigned char neg:1; // val is negative 168 169 unsigned char pc:1; // precision specified 169 170 unsigned char left:1; // left justify … … 175 176 }; // _Ostream_Manip 176 177 177 // *********************************** integral ***********************************178 // *********************************** integral *********************************** 178 179 179 180 // See 6.7.9. 19) The initialization shall occur in initializer list order, each initializer provided for a particular … … 215 216 IntegralFMTDecl( int128, 'd' ) 216 217 IntegralFMTDecl( unsigned int128, 'u' ) 217 #endif 218 219 // *********************************** floating point ***********************************218 #endif // __SIZEOF_INT128__ 219 220 // *********************************** floating point *********************************** 220 221 221 222 // Default suffix for values with no fraction is "." … … 246 247 FloatingPointFMTDecl( long double ) 247 248 248 // *********************************** character ***********************************249 // *********************************** character *********************************** 249 250 250 251 static inline { … … 263 264 } // ?|? 264 265 265 // *********************************** C string ***********************************266 // *********************************** C string *********************************** 266 267 267 268 static inline { … … 282 283 283 284 284 // *********************************** istream ***********************************285 // *********************************** istream *********************************** 285 286 286 287 … … 314 315 istype & ?|?( istype &, unsigned int & ); 315 316 istype & ?|?( istype &, long int & ); 317 istype & ?|?( istype &, unsigned long int & ); 316 318 istype & ?|?( istype &, long long int & ); 317 istype & ?|?( istype &, unsigned long int & );318 319 istype & ?|?( istype &, unsigned long long int & ); 320 #if defined( __SIZEOF_INT128__ ) 321 istype & ?|?( istype &, int128 & ); 322 istype & ?|?( istype &, unsigned int128 & ); 323 #endif // __SIZEOF_INT128__ 319 324 320 325 istype & ?|?( istype &, float & ); … … 336 341 } // distribution 337 342 338 // *********************************** manipulators ***********************************343 // *********************************** manipulators *********************************** 339 344 340 345 struct _Istream_Cstr { … … 358 363 _Istream_Cstr excl( const char scanset[], char * s ) { return (_Istream_Cstr){ s, scanset, -1, { .flags.inex : true } }; } 359 364 _Istream_Cstr & excl( const char scanset[], _Istream_Cstr & fmt ) { fmt.scanset = scanset; fmt.flags.inex = true; return fmt; } 360 _Istream_Cstr ignore( c onst char s[] ) { return (_Istream_Cstr)@{ s, 0p, -1, { .flags.ignore : true } }; }365 _Istream_Cstr ignore( char s[] ) { return (_Istream_Cstr)@{ s, 0p, -1, { .flags.ignore : true } }; } 361 366 _Istream_Cstr & ignore( _Istream_Cstr & fmt ) { fmt.flags.ignore = true; return fmt; } 362 367 _Istream_Cstr wdi( unsigned int w, char s[] ) { return (_Istream_Cstr)@{ s, 0p, w, { .all : 0 } }; } … … 370 375 371 376 static inline { 372 _Istream_Char ignore( const char c) { return (_Istream_Char)@{ true }; }377 _Istream_Char ignore( const char ) { return (_Istream_Char)@{ true }; } 373 378 _Istream_Char & ignore( _Istream_Char & fmt ) { fmt.ignore = true; return fmt; } 374 379 } // distribution 375 380 forall( dtype istype | istream( istype ) ) istype & ?|?( istype & is, _Istream_Char f ); 376 381 377 forall( otype T)382 forall( dtype T | sized( T ) ) 378 383 struct _Istream_Manip { 379 384 T & val; // polymorphic base-type … … 413 418 414 419 415 // *********************************** time ***********************************420 // *********************************** time *********************************** 416 421 417 422
Note:
See TracChangeset
for help on using the changeset viewer.