Changes in / [49caf644:da6db1a2]
- Location:
- libcfa/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/gmp.hfa
r49caf644 rda6db1a2 10 10 // Created On : Tue Apr 19 08:43:43 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Jul 18 11:04:54202313 // Update Count : 3 512 // Last Modified On : Thu Jun 29 09:43:30 2023 13 // Update Count : 33 14 14 // 15 15 … … 268 268 return os; 269 269 } // ?|? 270 OSTYPE_VOID_IMPL( Int ) 270 271 void ?|?( ostype & os, Int mp ) { 272 (ostype)(os | mp); ends( os ); 273 } // ?|? 271 274 } // distribution 272 275 } // distribution -
libcfa/src/iostream.cfa
r49caf644 rda6db1a2 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 18 1 3:56:01 202313 // Update Count : 140 312 // Last Modified On : Tue Jul 18 10:42:51 2023 13 // Update Count : 1401 14 14 // 15 15 … … 760 760 761 761 762 #define ISTYPE_VOID_VAL_IMPL( T ) \ 763 void ?|?( istype & is, T t ) { \ 764 (istype &)(is | t); ends( is ); \ 765 } // ?|? 766 762 767 forall( istype & | basic_istream( istype ) ) { 763 768 istype & ?|?( istype & is, bool & b ) { … … 772 777 return is; 773 778 } // ?|? 774 ISTYPE_VOID_IMPL( bool &)779 ISTYPE_VOID_IMPL( bool ) 775 780 776 781 istype & ?|?( istype & is, char & c ) { … … 784 789 return is; 785 790 } // ?|? 786 ISTYPE_VOID_IMPL( char &)791 ISTYPE_VOID_IMPL( char ) 787 792 788 793 istype & ?|?( istype & is, signed char & sc ) { … … 790 795 return is; 791 796 } // ?|? 792 ISTYPE_VOID_IMPL( signed char &)797 ISTYPE_VOID_IMPL( signed char ) 793 798 794 799 istype & ?|?( istype & is, unsigned char & usc ) { … … 796 801 return is; 797 802 } // ?|? 798 ISTYPE_VOID_IMPL( unsigned char &)803 ISTYPE_VOID_IMPL( unsigned char ) 799 804 800 805 istype & ?|?( istype & is, short int & si ) { … … 802 807 return is; 803 808 } // ?|? 804 ISTYPE_VOID_IMPL( short int &)809 ISTYPE_VOID_IMPL( short int ) 805 810 806 811 istype & ?|?( istype & is, unsigned short int & usi ) { … … 808 813 return is; 809 814 } // ?|? 810 ISTYPE_VOID_IMPL( unsigned short int &)815 ISTYPE_VOID_IMPL( unsigned short int ) 811 816 812 817 istype & ?|?( istype & is, int & i ) { … … 814 819 return is; 815 820 } // ?|? 816 ISTYPE_VOID_IMPL( int &)821 ISTYPE_VOID_IMPL( int ) 817 822 818 823 istype & ?|?( istype & is, unsigned int & ui ) { … … 820 825 return is; 821 826 } // ?|? 822 ISTYPE_VOID_IMPL( unsigned int &)827 ISTYPE_VOID_IMPL( unsigned int ) 823 828 824 829 istype & ?|?( istype & is, long int & li ) { … … 826 831 return is; 827 832 } // ?|? 828 ISTYPE_VOID_IMPL( long int &)833 ISTYPE_VOID_IMPL( long int ) 829 834 830 835 istype & ?|?( istype & is, unsigned long int & ulli ) { … … 832 837 return is; 833 838 } // ?|? 834 ISTYPE_VOID_IMPL( unsigned long int &)839 ISTYPE_VOID_IMPL( unsigned long int ) 835 840 836 841 istype & ?|?( istype & is, long long int & lli ) { … … 838 843 return is; 839 844 } // ?|? 840 ISTYPE_VOID_IMPL( long long int &)845 ISTYPE_VOID_IMPL( long long int ) 841 846 842 847 istype & ?|?( istype & is, unsigned long long int & ulli ) { … … 844 849 return is; 845 850 } // ?|? 846 ISTYPE_VOID_IMPL( unsigned long long int &)851 ISTYPE_VOID_IMPL( unsigned long long int ) 847 852 848 853 #if defined( __SIZEOF_INT128__ ) … … 850 855 return (istype &)(is | (unsigned int128 &)llli); 851 856 } // ?|? 852 ISTYPE_VOID_IMPL( int128 &)857 ISTYPE_VOID_IMPL( int128 ) 853 858 854 859 istype & ?|?( istype & is, unsigned int128 & ullli ) { … … 867 872 return is; 868 873 } // ?|? 869 ISTYPE_VOID_IMPL( unsigned int128 &)874 ISTYPE_VOID_IMPL( unsigned int128 ) 870 875 #endif // __SIZEOF_INT128__ 871 876 … … 874 879 return is; 875 880 } // ?|? 876 ISTYPE_VOID_IMPL( float &)881 ISTYPE_VOID_IMPL( float ) 877 882 878 883 istype & ?|?( istype & is, double & d ) { … … 880 885 return is; 881 886 } // ?|? 882 ISTYPE_VOID_IMPL( double &)887 ISTYPE_VOID_IMPL( double ) 883 888 884 889 istype & ?|?( istype & is, long double & ld ) { … … 886 891 return is; 887 892 } // ?|? 888 ISTYPE_VOID_IMPL( long double &)893 ISTYPE_VOID_IMPL( long double ) 889 894 890 895 istype & ?|?( istype & is, float _Complex & fc ) { … … 894 899 return is; 895 900 } // ?|? 896 ISTYPE_VOID_IMPL( float _Complex &)901 ISTYPE_VOID_IMPL( float _Complex ) 897 902 898 903 istype & ?|?( istype & is, double _Complex & dc ) { … … 902 907 return is; 903 908 } // ?|? 904 ISTYPE_VOID_IMPL( double _Complex &)909 ISTYPE_VOID_IMPL( double _Complex ) 905 910 906 911 istype & ?|?( istype & is, long double _Complex & ldc ) { … … 910 915 return is; 911 916 } // ?|? 912 ISTYPE_VOID_IMPL( long double _Complex &)917 ISTYPE_VOID_IMPL( long double _Complex ) 913 918 914 919 // istype & ?|?( istype & is, const char fmt[] ) { … … 921 926 return is; 922 927 } // ?|? 923 ISTYPE_VOID_ IMPL( char * )928 ISTYPE_VOID_VAL_IMPL( char * ) 924 929 925 930 // manipulators … … 983 988 return is; 984 989 } // ?|? 985 ISTYPE_VOID_ IMPL( _Istream_Cstr )990 ISTYPE_VOID_VAL_IMPL( _Istream_Cstr ) 986 991 987 992 istype & ?|?( istype & is, _Istream_Char f ) { … … 989 994 return is; 990 995 } // ?|? 991 ISTYPE_VOID_ IMPL( _Istream_Char )996 ISTYPE_VOID_VAL_IMPL( _Istream_Char ) 992 997 } // distribution 993 998 … … 1006 1011 return is; \ 1007 1012 } /* ?|? */ \ 1008 ISTYPE_VOID_ IMPL( _Istream_Manip(T) ) \1013 ISTYPE_VOID_VAL_IMPL( _Istream_Manip(T) ) \ 1009 1014 } // distribution 1010 1015 … … 1034 1039 return is; 1035 1040 } // ?|? 1036 ISTYPE_VOID_ IMPL( _Istream_Manip(float _Complex) )1041 ISTYPE_VOID_VAL_IMPL( _Istream_Manip(float _Complex) ) 1037 1042 1038 1043 istype & ?|?( istype & is, _Istream_Manip(double _Complex) dc ) { … … 1045 1050 return is; 1046 1051 } // ?|? 1047 ISTYPE_VOID_ IMPL( _Istream_Manip(double _Complex) )1052 ISTYPE_VOID_VAL_IMPL( _Istream_Manip(double _Complex) ) 1048 1053 1049 1054 istype & ?|?( istype & is, _Istream_Manip(long double _Complex) ldc ) { … … 1056 1061 return is; 1057 1062 } // ?|? 1058 ISTYPE_VOID_ IMPL( _Istream_Manip(long double _Complex) )1063 ISTYPE_VOID_VAL_IMPL( _Istream_Manip(long double _Complex) ) 1059 1064 } // distribution 1060 1065 -
libcfa/src/iostream.hfa
r49caf644 rda6db1a2 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 18 1 5:57:21202313 // Update Count : 4 6212 // Last Modified On : Tue Jul 18 10:42:52 2023 13 // Update Count : 438 14 14 // 15 15 … … 138 138 OSTYPE_VOID( const void * ); 139 139 140 // forall( T | { ostype & ?|?( ostype &, T ); } )141 // void ?|?( ostype & os, T );142 143 140 // manipulators 144 141 ostype & ?|?( ostype &, ostype & (*)( ostype & ) ); … … 217 214 forall( ostype & | basic_ostream( ostype ) ) { \ 218 215 ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \ 219 OSTYPE_VOID( _Ostream_Manip(T)); \216 void ?|?( ostype & os, _Ostream_Manip(T) f ); \ 220 217 } // ?|? 221 218 … … 262 259 forall( ostype & | basic_ostream( ostype ) ) { \ 263 260 ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \ 264 OSTYPE_VOID( _Ostream_Manip(T)); \261 void ?|?( ostype & os, _Ostream_Manip(T) f ); \ 265 262 } // ?|? 266 263 … … 282 279 forall( ostype & | basic_ostream( ostype ) ) { 283 280 ostype & ?|?( ostype & os, _Ostream_Manip(char) f ); 284 OSTYPE_VOID( _Ostream_Manip(char) ); \281 void ?|?( ostype & os, _Ostream_Manip(char) f ); 285 282 } // ?|? 286 283 … … 300 297 forall( ostype & | basic_ostream( ostype ) ) { 301 298 ostype & ?|?( ostype & os, _Ostream_Manip(const char *) f ); 302 OSTYPE_VOID( _Ostream_Manip(const char *) ); \299 void ?|?( ostype & os, _Ostream_Manip(const char *) f ); 303 300 } // ?|? 304 301 … … 309 306 #define ISTYPE_VOID( T ) void ?|?( istype &, T ) 310 307 #define ISTYPE_VOID_IMPL( T ) \ 311 void ?|?( istype & is, T t ) { \308 void ?|?( istype & is, T & t ) { \ 312 309 (istype &)(is | t); ends( is ); \ 313 310 } // ?|? … … 390 387 // istype & ?|?( istype &, const char [] ); 391 388 istype & ?|?( istype &, char [] ); 392 ISTYPE_VOID( char *);389 void ?|?( istype &, char [] ); 393 390 394 391 // manipulators … … 429 426 forall( istype & | basic_istream( istype ) ) { 430 427 istype & ?|?( istype & is, _Istream_Cstr f ); 431 ISTYPE_VOID( _Istream_Cstr);428 void ?|?( istype & is, _Istream_Cstr f ); 432 429 } 433 430 … … 442 439 forall( istype & | basic_istream( istype ) ) { 443 440 istype & ?|?( istype & is, _Istream_Char f ); 444 ISTYPE_VOID( _Istream_Char);441 void ?|?( istype & is, _Istream_Char f ); 445 442 } 446 443 … … 461 458 forall( istype & | basic_istream( istype ) ) { \ 462 459 istype & ?|?( istype & is, _Istream_Manip(T) f ); \ 463 ISTYPE_VOID( _Istream_Manip(T)); \460 void ?|?( istype & is, _Istream_Manip(T) f ); \ 464 461 } // ?|? 465 462 … … 491 488 forall( ostype & | ostream( ostype ) ) { 492 489 ostype & ?|?( ostype & os, Duration dur ); 493 OSTYPE_VOID( Duration);490 void ?|?( ostype & os, Duration dur ); 494 491 ostype & ?|?( ostype & os, Time time ); 495 OSTYPE_VOID( Time );492 void ?|?( ostype & os, Time time ); 496 493 } // distribution 497 494
Note:
See TracChangeset
for help on using the changeset viewer.