Changes in libcfa/src/iostream.hfa [424dfc4:00e9be9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
r424dfc4 r00e9be9 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Apr 25 11:22:03202113 // Update Count : 39712 // Last Modified On : Wed Apr 28 20:37:56 2021 13 // Update Count : 401 14 14 // 15 15 … … 49 49 void ends( ostype & ); // end of output statement 50 50 int fmt( ostype &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 51 int flush( ostype & );52 51 }; // basic_ostream 53 52 54 53 trait ostream( ostype & | basic_ostream( ostype ) ) { 55 54 bool fail( ostype & ); // operation failed? 55 void clear( ostype & ); 56 int flush( ostype & ); 56 57 void open( ostype &, const char name[], const char mode[] ); 57 58 void close( ostype & ); … … 97 98 ostype & ?|?( ostype &, unsigned long long int ); 98 99 void ?|?( ostype &, unsigned long long int ); 99 #if defined( __SIZEOF_INT128__ )100 #if defined( __SIZEOF_INT128__ ) 100 101 ostype & ?|?( ostype &, int128 ); 101 102 void ?|?( ostype &, int128 ); 102 103 ostype & ?|?( ostype &, unsigned int128 ); 103 104 void ?|?( ostype &, unsigned int128 ); 104 #endif // __SIZEOF_INT128__105 #endif // __SIZEOF_INT128__ 105 106 106 107 ostype & ?|?( ostype &, float ); … … 121 122 void ?|?( ostype &, const char [] ); 122 123 // ostype & ?|?( ostype &, const char16_t * ); 123 #if ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 ) // char32_t == wchar_t => ambiguous124 #if ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 ) // char32_t == wchar_t => ambiguous 124 125 // ostype & ?|?( ostype &, const char32_t * ); 125 #endif // ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 )126 #endif // ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 ) 126 127 // ostype & ?|?( ostype &, const wchar_t * ); 127 128 ostype & ?|?( ostype &, const void * ); … … 294 295 295 296 296 trait istream( istype & ) { 297 trait basic_istream( istype & ) { 298 bool getANL( istype & ); // get scan newline (on/off) 297 299 void nlOn( istype & ); // read newline 298 300 void nlOff( istype & ); // scan newline 299 bool getANL( istype & ); // get scan newline (on/off)300 301 301 302 void ends( istype & os ); // end of output statement 303 int fmt( istype &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) )); 304 istype & ungetc( istype &, char ); 305 bool eof( istype & ); 306 }; // basic_istream 307 308 trait istream( istype & | basic_istream( istype ) ) { 302 309 bool fail( istype & ); 303 int eof( istype & );310 void clear( istype & ); 304 311 void open( istype & is, const char name[] ); 305 312 void close( istype & is ); 306 istype & read( istype &, char *, size_t ); 307 istype & ungetc( istype &, char ); 308 int fmt( istype &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) )); 309 void acquire( istype & ); 313 istype & read( istype &, char [], size_t ); 314 void acquire( istype & ); // concurrent access 310 315 }; // istream 311 316 … … 314 319 }; // readable 315 320 316 forall( istype & | istream( istype ) ) {321 forall( istype & | basic_istream( istype ) ) { 317 322 istype & ?|?( istype &, bool & ); 318 323 void ?|?( istype &, bool & ); … … 341 346 istype & ?|?( istype &, unsigned long long int & ); 342 347 void ?|?( istype &, unsigned long long int & ); 343 #if defined( __SIZEOF_INT128__ )348 #if defined( __SIZEOF_INT128__ ) 344 349 istype & ?|?( istype &, int128 & ); 345 350 void ?|?( istype &, int128 & ); 346 351 istype & ?|?( istype &, unsigned int128 & ); 347 352 void ?|?( istype &, unsigned int128 & ); 348 #endif // __SIZEOF_INT128__353 #endif // __SIZEOF_INT128__ 349 354 350 355 istype & ?|?( istype &, float & ); … … 372 377 istype & nlOn( istype & ); 373 378 istype & nlOff( istype & ); 379 } // distribution 380 381 forall( istype & | istream( istype ) ) { 374 382 istype & acquire( istype & ); 375 383 } // distribution … … 402 410 _Istream_Cstr & wdi( unsigned int w, _Istream_Cstr & fmt ) { fmt.wd = w; return fmt; } 403 411 } // distribution 404 forall( istype & | istream( istype ) ) {412 forall( istype & | basic_istream( istype ) ) { 405 413 istype & ?|?( istype & is, _Istream_Cstr f ); 406 414 void ?|?( istype & is, _Istream_Cstr f ); … … 415 423 _Istream_Char & ignore( _Istream_Char & fmt ) { fmt.ignore = true; return fmt; } 416 424 } // distribution 417 forall( istype & | istream( istype ) ) {425 forall( istype & | basic_istream( istype ) ) { 418 426 istype & ?|?( istype & is, _Istream_Char f ); 419 427 void ?|?( istype & is, _Istream_Char f ); … … 434 442 _Istream_Manip(T) & wdi( unsigned int w, _Istream_Manip(T) & fmt ) { fmt.wd = w; return fmt; } \ 435 443 } /* distribution */ \ 436 forall( istype & | istream( istype ) ) { \444 forall( istype & | basic_istream( istype ) ) { \ 437 445 istype & ?|?( istype & is, _Istream_Manip(T) f ); \ 438 446 void ?|?( istype & is, _Istream_Manip(T) f ); \
Note:
See TracChangeset
for help on using the changeset viewer.