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