Changeset b12e4ad


Ignore:
Timestamp:
Aug 2, 2024, 9:08:58 AM (36 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
4db0140
Parents:
c141c09
Message:

add stream parameter to OSTYPE_VOID_IMPL macro and update all macro calls

Location:
libcfa/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.cfa

    rc141c09 rb12e4ad  
    117117                return os | label( e );
    118118        }
    119         OSTYPE_VOID_IMPL( E )
     119        OSTYPE_VOID_IMPL( os, E )
    120120}
  • libcfa/src/gmp.hfa

    rc141c09 rb12e4ad  
    1010// Created On       : Tue Apr 19 08:43:43 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 18 11:04:54 2023
    13 // Update Count     : 35
     12// Last Modified On : Fri Aug  2 07:41:25 2024
     13// Update Count     : 36
    1414//
    1515
     
    268268                        return os;
    269269                } // ?|?
    270                 OSTYPE_VOID_IMPL( Int )
     270                OSTYPE_VOID_IMPL( os, Int )
    271271        } // distribution
    272272} // distribution
  • libcfa/src/iostream.cfa

    rc141c09 rb12e4ad  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 15 08:16:48 2024
    13 // Update Count     : 2020
     12// Last Modified On : Fri Aug  2 07:38:44 2024
     13// Update Count     : 2021
    1414//
    1515
     
    4747                return os;
    4848        } // ?|?
    49         OSTYPE_VOID_IMPL( bool )
     49        OSTYPE_VOID_IMPL( os, bool )
    5050
    5151        ostype & ?|?( ostype & os, char c ) {
     
    5454                return nosep( os );
    5555        } // ?|?
    56         OSTYPE_VOID_IMPL( char )
     56        OSTYPE_VOID_IMPL( os, char )
    5757
    5858        ostype & ?|?( ostype & os, signed char sc ) {
     
    6161                return os;
    6262        } // ?|?
    63         OSTYPE_VOID_IMPL( signed char )
     63        OSTYPE_VOID_IMPL( os, signed char )
    6464
    6565        ostype & ?|?( ostype & os, unsigned char usc ) {
     
    6868                return os;
    6969        } // ?|?
    70         OSTYPE_VOID_IMPL( unsigned char )
     70        OSTYPE_VOID_IMPL( os, unsigned char )
    7171
    7272        ostype & ?|?( ostype & os, short int si ) {
     
    7575                return os;
    7676        } // ?|?
    77         OSTYPE_VOID_IMPL( short int )
     77        OSTYPE_VOID_IMPL( os, short int )
    7878
    7979        ostype & ?|?( ostype & os, unsigned short int usi ) {
     
    8282                return os;
    8383        } // ?|?
    84         OSTYPE_VOID_IMPL( unsigned short int )
     84        OSTYPE_VOID_IMPL( os, unsigned short int )
    8585
    8686        ostype & ?|?( ostype & os, int i ) {
     
    8989                return os;
    9090        } // ?|?
    91         OSTYPE_VOID_IMPL( int )
     91        OSTYPE_VOID_IMPL( os, int )
    9292
    9393        ostype & ?|?( ostype & os, unsigned int ui ) {
     
    9696                return os;
    9797        } // ?|?
    98         OSTYPE_VOID_IMPL( unsigned int )
     98        OSTYPE_VOID_IMPL( os, unsigned int )
    9999
    100100        ostype & ?|?( ostype & os, long int li ) {
     
    103103                return os;
    104104        } // ?|?
    105         OSTYPE_VOID_IMPL( long int )
     105        OSTYPE_VOID_IMPL( os, long int )
    106106
    107107        ostype & ?|?( ostype & os, unsigned long int uli ) {
     
    110110                return os;
    111111        } // ?|?
    112         OSTYPE_VOID_IMPL( unsigned long int )
     112        OSTYPE_VOID_IMPL( os, unsigned long int )
    113113
    114114        ostype & ?|?( ostype & os, long long int lli ) {
     
    117117                return os;
    118118        } // ?|?
    119         OSTYPE_VOID_IMPL( long long int )
     119        OSTYPE_VOID_IMPL( os, long long int )
    120120
    121121        ostype & ?|?( ostype & os, unsigned long long int ulli ) {
     
    124124                return os;
    125125        } // ?|?
    126         OSTYPE_VOID_IMPL( unsigned long long int )
     126        OSTYPE_VOID_IMPL( os, unsigned long long int )
    127127
    128128        #if defined( __SIZEOF_INT128__ )
     
    156156                return os;
    157157        } // ?|?
    158         OSTYPE_VOID_IMPL( int128 )
     158        OSTYPE_VOID_IMPL( os, int128 )
    159159
    160160        ostype & ?|?( ostype & os, unsigned int128 ullli ) {
     
    163163                return os;
    164164        } // ?|?
    165         OSTYPE_VOID_IMPL( unsigned int128 )
     165        OSTYPE_VOID_IMPL( os, unsigned int128 )
    166166        #endif // __SIZEOF_INT128__
    167167
     
    186186                return os;
    187187        } // ?|?
    188         OSTYPE_VOID_IMPL( float )
     188        OSTYPE_VOID_IMPL( os, float )
    189189
    190190        ostype & ?|?( ostype & os, double d ) {
     
    193193                return os;
    194194        } // ?|?
    195         OSTYPE_VOID_IMPL( double )
     195        OSTYPE_VOID_IMPL( os, double )
    196196
    197197        ostype & ?|?( ostype & os, long double ld ) {
     
    200200                return os;
    201201        } // ?|?
    202         OSTYPE_VOID_IMPL( long double )
     202        OSTYPE_VOID_IMPL( os, long double )
    203203
    204204        ostype & ?|?( ostype & os, float _Complex fc ) {
     
    210210                return os;
    211211        } // ?|?
    212         OSTYPE_VOID_IMPL( float _Complex )
     212        OSTYPE_VOID_IMPL( os, float _Complex )
    213213
    214214        ostype & ?|?( ostype & os, double _Complex dc ) {
     
    220220                return os;
    221221        } // ?|?
    222         OSTYPE_VOID_IMPL( double _Complex )
     222        OSTYPE_VOID_IMPL( os, double _Complex )
    223223
    224224        ostype & ?|?( ostype & os, long double _Complex ldc ) {
     
    230230                return os;
    231231        } // ?|?
    232         OSTYPE_VOID_IMPL( long double _Complex )
     232        OSTYPE_VOID_IMPL( os, long double _Complex )
    233233
    234234        ostype & ?|?( ostype & os, const char s[] ) {
     
    273273//              return write( os, s, len );
    274274        } // ?|?
    275         OSTYPE_VOID_IMPL( const char * )
     275        OSTYPE_VOID_IMPL( os, const char * )
    276276
    277277//      ostype & ?|?( ostype & os, const char16_t s[] ) {
     
    300300                return os;
    301301        } // ?|?
    302         OSTYPE_VOID_IMPL( const void * )
     302        OSTYPE_VOID_IMPL( os, const void * )
    303303
    304304        // manipulators
     
    487487                return os; \
    488488        } /* ?|? */ \
    489         OSTYPE_VOID_IMPL( _Ostream_Manip(T) ) \
     489        OSTYPE_VOID_IMPL( os, _Ostream_Manip(T) ) \
    490490} // distribution
    491491
     
    585585                return os; \
    586586        } /* ?|? */ \
    587         OSTYPE_VOID_IMPL( _Ostream_Manip(T) ) \
     587        OSTYPE_VOID_IMPL( os, _Ostream_Manip(T) ) \
    588588} // distribution
    589589
     
    683683        } /* ?|? */ \
    684684\
    685         OSTYPE_VOID_IMPL( _Ostream_Manip(T) ) \
     685        OSTYPE_VOID_IMPL( os, _Ostream_Manip(T) ) \
    686686} // distribution
    687687
     
    718718                return os;
    719719        } // ?|?
    720         OSTYPE_VOID_IMPL( _Ostream_Manip(char) )
     720        OSTYPE_VOID_IMPL( os, _Ostream_Manip(char) )
    721721} // distribution
    722722
     
    765765                return os;
    766766        } // ?|?
    767         OSTYPE_VOID_IMPL( _Ostream_Manip(const char *) )
     767        OSTYPE_VOID_IMPL( os, _Ostream_Manip(const char *) )
    768768} // distribution
    769769
  • libcfa/src/iostream.hfa

    rc141c09 rb12e4ad  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 12 05:45:48 2024
    13 // Update Count     : 759
     12// Last Modified On : Fri Aug  2 07:37:57 2024
     13// Update Count     : 760
    1414//
    1515
     
    7575
    7676#define OSTYPE_VOID( T ) void ?|?( ostype &, T )
    77 #define OSTYPE_VOID_IMPL( T ) \
     77#define OSTYPE_VOID_IMPL( os, T ) \
    7878        void ?|?( ostype & os, T t ) { \
    7979                (ostype &)(os | t); ends( os ); \
  • libcfa/src/rational.cfa

    rc141c09 rb12e4ad  
    1010// Created On       : Wed Apr  6 17:54:28 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Oct  6 07:52:13 2023
    13 // Update Count     : 198
     12// Last Modified On : Fri Aug  2 07:41:25 2024
     13// Update Count     : 199
    1414//
    1515
     
    206206                        return os | r.numerator | '/' | r.denominator;
    207207                } // ?|?
    208                 OSTYPE_VOID_IMPL( rational(T) )
     208                OSTYPE_VOID_IMPL( os, rational(T) )
    209209        } // distribution
    210210} // distribution
  • libcfa/src/time.cfa

    rc141c09 rb12e4ad  
    1010// Created On       : Tue Mar 27 13:33:14 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 18 10:55:01 2023
    13 // Update Count     : 71
     12// Last Modified On : Fri Aug  2 07:41:24 2024
     13// Update Count     : 72
    1414//
    1515
     
    4343                return os;
    4444        } // ?|?
    45         OSTYPE_VOID_IMPL( Duration )
     45        OSTYPE_VOID_IMPL( os, Duration )
    4646} // distribution
    4747
     
    152152                return os;
    153153        } // ?|?
    154         OSTYPE_VOID_IMPL( Time )
     154        OSTYPE_VOID_IMPL( os, Time )
    155155} // distribution
    156156
  • libcfa/src/vec/vec2.hfa

    rc141c09 rb12e4ad  
    283283        return os | '<' | x | ',' | y | '>';
    284284    }
    285         OSTYPE_VOID_IMPL( vec2(T) )
     285        OSTYPE_VOID_IMPL( os, vec2(T) )
    286286}
  • libcfa/src/vec/vec3.hfa

    rc141c09 rb12e4ad  
    292292        return os | '<' | x | ',' | y | ',' | z | '>';
    293293    }
    294         OSTYPE_VOID_IMPL( vec3(T) )
     294        OSTYPE_VOID_IMPL( os, vec3(T) )
    295295}
  • libcfa/src/vec/vec4.hfa

    rc141c09 rb12e4ad  
    287287        return os | '<' | x | ',' | y | ',' | z | ',' | w | '>';
    288288    }
    289         OSTYPE_VOID_IMPL( vec4(T) )
     289        OSTYPE_VOID_IMPL( os, vec4(T) )
    290290}
    291291
Note: See TracChangeset for help on using the changeset viewer.