Ignore:
Timestamp:
Jan 7, 2021, 3:27:00 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
2b4daf2, 64aeca0
Parents:
3c64c668 (diff), eef8dfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into park_unpark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.hfa

    r3c64c668 r58fe85a  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb 20 15:30:56 2020
    13 // Update Count     : 337
     12// Last Modified On : Tue Aug 11 22:16:14 2020
     13// Update Count     : 350
    1414//
    1515
     
    1919
    2020
    21 //*********************************** ostream ***********************************
     21// *********************************** ostream ***********************************
    2222
    2323
     
    6767
    6868forall( dtype ostype | ostream( ostype ) ) {
    69         ostype & ?|?( ostype &, zero_t );
    70         void ?|?( ostype &, zero_t );
    71         ostype & ?|?( ostype &, one_t );
    72         void ?|?( ostype &, one_t );
    73 
    7469        ostype & ?|?( ostype &, bool );
    7570        void ?|?( ostype &, bool );
     
    156151} // distribution
    157152
    158 //*********************************** manipulators ***********************************
     153// *********************************** manipulators ***********************************
    159154
    160155forall( otype T )
     
    166161                unsigned char all;
    167162                struct {
     163                        unsigned char neg:1;                                            // val is negative
    168164                        unsigned char pc:1;                                                     // precision specified
    169165                        unsigned char left:1;                                           // left justify
     
    175171}; // _Ostream_Manip
    176172
    177 //*********************************** integral ***********************************
     173// *********************************** integral ***********************************
    178174
    179175// See 6.7.9. 19) The initialization shall occur in initializer list order, each initializer provided for a particular
     
    215211IntegralFMTDecl( int128, 'd' )
    216212IntegralFMTDecl( unsigned int128, 'u' )
    217 #endif
    218 
    219 //*********************************** floating point ***********************************
     213#endif // __SIZEOF_INT128__
     214
     215// *********************************** floating point ***********************************
    220216
    221217// Default suffix for values with no fraction is "."
     
    246242FloatingPointFMTDecl( long double )
    247243
    248 //*********************************** character ***********************************
     244// *********************************** character ***********************************
    249245
    250246static inline {
     
    263259} // ?|?
    264260
    265 //*********************************** C string ***********************************
     261// *********************************** C string ***********************************
    266262
    267263static inline {
     
    282278
    283279
    284 //*********************************** istream ***********************************
     280// *********************************** istream ***********************************
    285281
    286282
     
    314310        istype & ?|?( istype &, unsigned int & );
    315311        istype & ?|?( istype &, long int & );
     312        istype & ?|?( istype &, unsigned long int & );
    316313        istype & ?|?( istype &, long long int & );
    317         istype & ?|?( istype &, unsigned long int & );
    318314        istype & ?|?( istype &, unsigned long long int & );
     315#if defined( __SIZEOF_INT128__ )
     316        istype & ?|?( istype &, int128 & );
     317        istype & ?|?( istype &, unsigned int128 & );
     318#endif // __SIZEOF_INT128__
    319319
    320320        istype & ?|?( istype &, float & );
     
    336336} // distribution
    337337
    338 //*********************************** manipulators ***********************************
     338// *********************************** manipulators ***********************************
    339339
    340340struct _Istream_Cstr {
     
    358358        _Istream_Cstr excl( const char scanset[], char * s ) { return (_Istream_Cstr){ s, scanset, -1, { .flags.inex : true } }; }
    359359        _Istream_Cstr & excl( const char scanset[], _Istream_Cstr & fmt ) { fmt.scanset = scanset; fmt.flags.inex = true; return fmt; }
    360         _Istream_Cstr ignore( const char s[] ) { return (_Istream_Cstr)@{ s, 0p, -1, { .flags.ignore : true } }; }
     360        _Istream_Cstr ignore( char s[] ) { return (_Istream_Cstr)@{ s, 0p, -1, { .flags.ignore : true } }; }
    361361        _Istream_Cstr & ignore( _Istream_Cstr & fmt ) { fmt.flags.ignore = true; return fmt; }
    362362        _Istream_Cstr wdi( unsigned int w, char s[] ) { return (_Istream_Cstr)@{ s, 0p, w, { .all : 0 } }; }
     
    370370
    371371static inline {
    372         _Istream_Char ignore( const char c ) { return (_Istream_Char)@{ true }; }
     372        _Istream_Char ignore( const char ) { return (_Istream_Char)@{ true }; }
    373373        _Istream_Char & ignore( _Istream_Char & fmt ) { fmt.ignore = true; return fmt; }
    374374} // distribution
    375375forall( dtype istype | istream( istype ) ) istype & ?|?( istype & is, _Istream_Char f );
    376376
    377 forall( otype T )
     377forall( dtype T | sized( T ) )
    378378struct _Istream_Manip {
    379379        T & val;                                                                                        // polymorphic base-type
     
    413413
    414414
    415 //*********************************** time ***********************************
     415// *********************************** time ***********************************
    416416
    417417
Note: See TracChangeset for help on using the changeset viewer.