Ignore:
Timestamp:
Oct 19, 2023, 7:35:24 PM (12 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0803ead, 1b0184b
Parents:
e0dc038
Message:

remove ISTYPE_VOID and ISTYPE_VOID_IMPL, and ends for input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.hfa

    re0dc038 rf842032  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Oct 16 21:12:01 2023
    13 // Update Count     : 573
     12// Last Modified On : Wed Oct 18 21:21:20 2023
     13// Update Count     : 583
    1414//
    1515
     
    306306// *********************************** istream ***********************************
    307307
    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 
    314308forall( istype & )
    315309trait basic_istream {
     
    320314        void nlOn( istype & );                                                          // read newline
    321315        void nlOff( istype & );                                                         // scan newline
    322         void ends( istype & os );                                                       // end of output statement
    323316        int fmt( istype &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) ));
    324317        istype & ungetc( istype &, char );
     
    343336forall( istype & | basic_istream( istype ) ) {
    344337        istype & ?|?( istype &, bool & );
    345         ISTYPE_VOID( bool & );
    346338
    347339        istype & ?|?( istype &, char & );
    348         ISTYPE_VOID( char & );
    349340        istype & ?|?( istype &, signed char & );
    350         ISTYPE_VOID( signed char & );
    351341        istype & ?|?( istype &, unsigned char & );
    352         ISTYPE_VOID( unsigned char & );
    353342
    354343        istype & ?|?( istype &, short int & );
    355         ISTYPE_VOID( short int & );
    356344        istype & ?|?( istype &, unsigned short int & );
    357         ISTYPE_VOID( unsigned short int & );
    358345        istype & ?|?( istype &, int & );
    359         ISTYPE_VOID( int & );
    360346        istype & ?|?( istype &, unsigned int & );
    361         ISTYPE_VOID( unsigned int & );
    362347        istype & ?|?( istype &, long int & );
    363         ISTYPE_VOID( long int & );
    364348        istype & ?|?( istype &, unsigned long int & );
    365         ISTYPE_VOID( unsigned long int & );
    366349        istype & ?|?( istype &, long long int & );
    367         ISTYPE_VOID( long long int & );
    368350        istype & ?|?( istype &, unsigned long long int & );
    369         ISTYPE_VOID( unsigned long long int & );
    370351        #if defined( __SIZEOF_INT128__ )
    371352        istype & ?|?( istype &, int128 & );
    372         ISTYPE_VOID( int128 & );
    373353        istype & ?|?( istype &, unsigned int128 & );
    374         ISTYPE_VOID( unsigned int128 & );
    375354        #endif // __SIZEOF_INT128__
    376355
    377356        istype & ?|?( istype &, float & );
    378         ISTYPE_VOID( float & );
    379357        istype & ?|?( istype &, double & );
    380         ISTYPE_VOID( double & );
    381358        istype & ?|?( istype &, long double & );
    382         ISTYPE_VOID( long double & );
    383359
    384360        istype & ?|?( istype &, float _Complex & );
    385         ISTYPE_VOID( float _Complex & );
    386361        istype & ?|?( istype &, double _Complex & );
    387         ISTYPE_VOID( double _Complex & );
    388362        istype & ?|?( istype &, long double _Complex & );
    389         ISTYPE_VOID( long double _Complex & );
    390363
    391364        istype & ?|?( istype &, const char [] );
    392         ISTYPE_VOID( const char [] );
    393365
    394366        // manipulators
    395367        istype & ?|?( istype &, istype & (*)( istype & ) );
    396         ISTYPE_VOID( istype & (*)( istype & ) );
    397368        istype & nl( istype & is );
    398369        istype & nlOn( istype & );
     
    419390forall( istype & | basic_istream( istype ) ) {
    420391        istype & ?|?( istype & is, _Istream_Cskip f );
    421         ISTYPE_VOID( _Istream_Cskip );
    422392}
    423393
     
    461431forall( istype & | basic_istream( istype ) ) {
    462432        istype & ?|?( istype & is, _Istream_Cstr f );
    463         ISTYPE_VOID( _Istream_Cstr );
    464433}
    465434
     
    474443forall( istype & | basic_istream( istype ) ) {
    475444        istype & ?|?( istype & is, _Istream_Char f );
    476         ISTYPE_VOID( _Istream_Char );
    477445}
    478446
     
    493461forall( istype & | basic_istream( istype ) ) { \
    494462        istype & ?|?( istype & is, _Istream_Manip(T) f ); \
    495         ISTYPE_VOID( _Istream_Manip(T) ); \
    496463} // ?|?
    497464
Note: See TracChangeset for help on using the changeset viewer.