Changes in / [2d7cb19:0803ead]


Ignore:
Location:
libcfa/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/string.cfa

    r2d7cb19 r0803ead  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Sep  2 12:05:57 2023
    13 // Update Count     : 206
     12// Last Modified On : Wed Oct 18 21:52:09 2023
     13// Update Count     : 208
    1414//
    1515
     
    138138
    139139void ?|?( ifstream & in, _Istream_Sstr f ) {
    140     (ifstream &)(in | f); ends( in );
     140    (ifstream &)(in | f);
    141141}
    142142
  • libcfa/src/collections/string_res.cfa

    r2d7cb19 r0803ead  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 14 18:06:01 2023
    13 // Update Count     : 12
     12// Last Modified On : Wed Oct 18 21:54:54 2023
     13// Update Count     : 15
    1414//
    1515
     
    253253
    254254void ?|?( ifstream & in, string_res & this ) {
    255     (ifstream &)(in | this); ends( in );
     255    (ifstream &)(in | this);
    256256}
    257257
     
    297297
    298298void ?|?( ifstream & in, _Istream_Rstr f ) {
    299     (ifstream &)(in | f); ends( in );
     299    (ifstream &)(in | f);
    300300}
    301301
  • libcfa/src/fstream.cfa

    r2d7cb19 r0803ead  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Oct 17 08:38:49 2023
    13 // Update Count     : 544
     12// Last Modified On : Wed Oct 18 22:05:54 2023
     13// Update Count     : 549
    1414//
    1515
     
    230230void nlOff( ifstream & os ) { os.nlOnOff$ = false; }
    231231
    232 void ends( ifstream & is ) {}
    233 
    234232bool eof( ifstream & is ) { return feof( (FILE *)(is.file$) ) != 0; }
    235233
  • libcfa/src/fstream.hfa

    r2d7cb19 r0803ead  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Oct 13 13:55:21 2023
    13 // Update Count     : 260
     12// Last Modified On : Wed Oct 18 20:30:12 2023
     13// Update Count     : 261
    1414//
    1515
     
    117117void nlOn( ifstream & );
    118118void nlOff( ifstream & );
    119 void ends( ifstream & );
    120119int fmt( ifstream &, const char format[], ... ) __attribute__(( format(scanf, 2, 3) ));
    121120ifstream & ungetc( ifstream & is, char c );
  • libcfa/src/iostream.cfa

    r2d7cb19 r0803ead  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Oct 17 20:57:05 2023
    13 // Update Count     : 1795
     12// Last Modified On : Thu Oct 19 19:29:54 2023
     13// Update Count     : 1800
    1414//
    1515
     
    4747                return os;
    4848        } // ?|?
    49         OSTYPE_VOID_IMPL( bool )
     49        OSYPE_VOID_IMPL( bool )
    5050
    5151        ostype & ?|?( ostype & os, char c ) {
     
    784784                return is;
    785785        } // ?|?
    786         ISTYPE_VOID_IMPL( bool & )
    787786
    788787        istype & ?|?( istype & is, char & c ) {
     
    796795                return is;
    797796        } // ?|?
    798         ISTYPE_VOID_IMPL( char & )
    799797
    800798        istype & ?|?( istype & is, signed char & sc ) {
     
    802800                return is;
    803801        } // ?|?
    804         ISTYPE_VOID_IMPL( signed char & )
    805802
    806803        istype & ?|?( istype & is, unsigned char & usc ) {
     
    808805                return is;
    809806        } // ?|?
    810         ISTYPE_VOID_IMPL( unsigned char & )
    811807
    812808        istype & ?|?( istype & is, short int & si ) {
     
    814810                return is;
    815811        } // ?|?
    816         ISTYPE_VOID_IMPL( short int & )
    817812
    818813        istype & ?|?( istype & is, unsigned short int & usi ) {
     
    820815                return is;
    821816        } // ?|?
    822         ISTYPE_VOID_IMPL( unsigned short int & )
    823817
    824818        istype & ?|?( istype & is, int & i ) {
     
    826820                return is;
    827821        } // ?|?
    828         ISTYPE_VOID_IMPL( int & )
    829822
    830823        istype & ?|?( istype & is, unsigned int & ui ) {
     
    832825                return is;
    833826        } // ?|?
    834         ISTYPE_VOID_IMPL( unsigned int & )
    835827
    836828        istype & ?|?( istype & is, long int & li ) {
     
    838830                return is;
    839831        } // ?|?
    840         ISTYPE_VOID_IMPL( long int & )
    841832
    842833        istype & ?|?( istype & is, unsigned long int & ulli ) {
     
    844835                return is;
    845836        } // ?|?
    846         ISTYPE_VOID_IMPL( unsigned long int & )
    847837
    848838        istype & ?|?( istype & is, long long int & lli ) {
     
    850840                return is;
    851841        } // ?|?
    852         ISTYPE_VOID_IMPL( long long int & )
    853842
    854843        istype & ?|?( istype & is, unsigned long long int & ulli ) {
     
    856845                return is;
    857846        } // ?|?
    858         ISTYPE_VOID_IMPL( unsigned long long int & )
    859847
    860848        #if defined( __SIZEOF_INT128__ )
     
    862850                return (istype &)(is | (unsigned int128 &)llli);
    863851        } // ?|?
    864         ISTYPE_VOID_IMPL( int128 & )
    865852
    866853        istype & ?|?( istype & is, unsigned int128 & ullli ) {
     
    879866                return is;
    880867        } // ?|?
    881         ISTYPE_VOID_IMPL( unsigned int128 & )
    882868        #endif // __SIZEOF_INT128__
    883869
     
    886872                return is;
    887873        } // ?|?
    888         ISTYPE_VOID_IMPL( float & )
    889874
    890875        istype & ?|?( istype & is, double & d ) {
     
    892877                return is;
    893878        } // ?|?
    894         ISTYPE_VOID_IMPL( double & )
    895879
    896880        istype & ?|?( istype & is, long double & ld ) {
     
    898882                return is;
    899883        } // ?|?
    900         ISTYPE_VOID_IMPL( long double & )
    901884
    902885        istype & ?|?( istype & is, float _Complex & fc ) {
     
    906889                return is;
    907890        } // ?|?
    908         ISTYPE_VOID_IMPL( float _Complex & )
    909891
    910892        istype & ?|?( istype & is, double _Complex & dc ) {
     
    914896                return is;
    915897        } // ?|?
    916         ISTYPE_VOID_IMPL( double _Complex & )
    917898
    918899        istype & ?|?( istype & is, long double _Complex & ldc ) {
     
    922903                return is;
    923904        } // ?|?
    924         ISTYPE_VOID_IMPL( long double _Complex & )
    925905
    926906        istype & ?|?( istype & is, const char fmt[] ) {
     
    928908                return is;
    929909        } // ?|?
    930         ISTYPE_VOID_IMPL( const char * )
    931910
    932911        // manipulators
     
    936915
    937916        void ?|?( istype & is, istype & (* manip)( istype & ) ) {
    938                 manip( is ); ends( is );
     917                manip( is );
    939918        } // ?|?
    940919
     
    980959                return is;
    981960        }
    982         ISTYPE_VOID_IMPL( _Istream_Cskip )
    983961
    984962        istype & ?|?( istype & is, _Istream_Cstr f ) {
     
    10701048                return is;
    10711049        } // ?|?
    1072         ISTYPE_VOID_IMPL( _Istream_Cstr )
    10731050
    10741051        istype & ?|?( istype & is, _Istream_Char f ) {
     
    10761053                return is;
    10771054        } // ?|?
    1078         ISTYPE_VOID_IMPL( _Istream_Char )
    10791055} // distribution
    10801056
     
    10931069                return is; \
    10941070        } /* ?|? */ \
    1095         ISTYPE_VOID_IMPL( _Istream_Manip(T) ) \
    10961071} // distribution
    10971072
     
    11211096                return is;
    11221097        } // ?|?
    1123         ISTYPE_VOID_IMPL( _Istream_Manip(float _Complex) )
    11241098
    11251099        istype & ?|?( istype & is, _Istream_Manip(double _Complex) dc ) {
     
    11321106                return is;
    11331107        } // ?|?
    1134         ISTYPE_VOID_IMPL( _Istream_Manip(double _Complex) )
    11351108
    11361109        istype & ?|?( istype & is, _Istream_Manip(long double _Complex) ldc ) {
     
    11431116                return is;
    11441117        } // ?|?
    1145         ISTYPE_VOID_IMPL( _Istream_Manip(long double _Complex) )
    11461118} // distribution
    11471119
  • libcfa/src/iostream.hfa

    r2d7cb19 r0803ead  
    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.