Changeset f842032 for libcfa/src/iostream.hfa
- Timestamp:
- Oct 19, 2023, 7:35:24 PM (12 months ago)
- Branches:
- master
- Children:
- 0803ead, 1b0184b
- Parents:
- e0dc038
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
re0dc038 rf842032 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Oct 16 21:12:01202313 // Update Count : 5 7312 // Last Modified On : Wed Oct 18 21:21:20 2023 13 // Update Count : 583 14 14 // 15 15 … … 306 306 // *********************************** istream *********************************** 307 307 308 #define ISTYPE_VOID( T ) void ?|?( istype &, T )309 #define ISTYPE_VOID_IMPL( T ) \310 void ?|?( istype & is, T t ) { \311 (istype &)(is | t); ends( is ); \312 } // ?|?313 314 308 forall( istype & ) 315 309 trait basic_istream { … … 320 314 void nlOn( istype & ); // read newline 321 315 void nlOff( istype & ); // scan newline 322 void ends( istype & os ); // end of output statement323 316 int fmt( istype &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) )); 324 317 istype & ungetc( istype &, char ); … … 343 336 forall( istype & | basic_istream( istype ) ) { 344 337 istype & ?|?( istype &, bool & ); 345 ISTYPE_VOID( bool & );346 338 347 339 istype & ?|?( istype &, char & ); 348 ISTYPE_VOID( char & );349 340 istype & ?|?( istype &, signed char & ); 350 ISTYPE_VOID( signed char & );351 341 istype & ?|?( istype &, unsigned char & ); 352 ISTYPE_VOID( unsigned char & );353 342 354 343 istype & ?|?( istype &, short int & ); 355 ISTYPE_VOID( short int & );356 344 istype & ?|?( istype &, unsigned short int & ); 357 ISTYPE_VOID( unsigned short int & );358 345 istype & ?|?( istype &, int & ); 359 ISTYPE_VOID( int & );360 346 istype & ?|?( istype &, unsigned int & ); 361 ISTYPE_VOID( unsigned int & );362 347 istype & ?|?( istype &, long int & ); 363 ISTYPE_VOID( long int & );364 348 istype & ?|?( istype &, unsigned long int & ); 365 ISTYPE_VOID( unsigned long int & );366 349 istype & ?|?( istype &, long long int & ); 367 ISTYPE_VOID( long long int & );368 350 istype & ?|?( istype &, unsigned long long int & ); 369 ISTYPE_VOID( unsigned long long int & );370 351 #if defined( __SIZEOF_INT128__ ) 371 352 istype & ?|?( istype &, int128 & ); 372 ISTYPE_VOID( int128 & );373 353 istype & ?|?( istype &, unsigned int128 & ); 374 ISTYPE_VOID( unsigned int128 & );375 354 #endif // __SIZEOF_INT128__ 376 355 377 356 istype & ?|?( istype &, float & ); 378 ISTYPE_VOID( float & );379 357 istype & ?|?( istype &, double & ); 380 ISTYPE_VOID( double & );381 358 istype & ?|?( istype &, long double & ); 382 ISTYPE_VOID( long double & );383 359 384 360 istype & ?|?( istype &, float _Complex & ); 385 ISTYPE_VOID( float _Complex & );386 361 istype & ?|?( istype &, double _Complex & ); 387 ISTYPE_VOID( double _Complex & );388 362 istype & ?|?( istype &, long double _Complex & ); 389 ISTYPE_VOID( long double _Complex & );390 363 391 364 istype & ?|?( istype &, const char [] ); 392 ISTYPE_VOID( const char [] );393 365 394 366 // manipulators 395 367 istype & ?|?( istype &, istype & (*)( istype & ) ); 396 ISTYPE_VOID( istype & (*)( istype & ) );397 368 istype & nl( istype & is ); 398 369 istype & nlOn( istype & ); … … 419 390 forall( istype & | basic_istream( istype ) ) { 420 391 istype & ?|?( istype & is, _Istream_Cskip f ); 421 ISTYPE_VOID( _Istream_Cskip );422 392 } 423 393 … … 461 431 forall( istype & | basic_istream( istype ) ) { 462 432 istype & ?|?( istype & is, _Istream_Cstr f ); 463 ISTYPE_VOID( _Istream_Cstr );464 433 } 465 434 … … 474 443 forall( istype & | basic_istream( istype ) ) { 475 444 istype & ?|?( istype & is, _Istream_Char f ); 476 ISTYPE_VOID( _Istream_Char );477 445 } 478 446 … … 493 461 forall( istype & | basic_istream( istype ) ) { \ 494 462 istype & ?|?( istype & is, _Istream_Manip(T) f ); \ 495 ISTYPE_VOID( _Istream_Manip(T) ); \496 463 } // ?|? 497 464
Note: See TracChangeset
for help on using the changeset viewer.