Changes in libcfa/src/iostream.cfa [0c51f9ad:c8371b5]
- File:
-
- 1 edited
-
libcfa/src/iostream.cfa (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r0c51f9ad rc8371b5 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jan 17 16:38:32 202213 // Update Count : 134 912 // Last Modified On : Sun Oct 10 09:28:17 2021 13 // Update Count : 1345 14 14 // 15 15 … … 57 57 ostype & ?|?( ostype & os, signed char sc ) { 58 58 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 59 fmt( os, "% 'hhd", sc );59 fmt( os, "%hhd", sc ); 60 60 return os; 61 61 } // ?|? … … 66 66 ostype & ?|?( ostype & os, unsigned char usc ) { 67 67 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 68 fmt( os, "% 'hhu", usc );68 fmt( os, "%hhu", usc ); 69 69 return os; 70 70 } // ?|? … … 75 75 ostype & ?|?( ostype & os, short int si ) { 76 76 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 77 fmt( os, "% 'hd", si );77 fmt( os, "%hd", si ); 78 78 return os; 79 79 } // ?|? … … 84 84 ostype & ?|?( ostype & os, unsigned short int usi ) { 85 85 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 86 fmt( os, "% 'hu", usi );86 fmt( os, "%hu", usi ); 87 87 return os; 88 88 } // ?|? … … 93 93 ostype & ?|?( ostype & os, int i ) { 94 94 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 95 fmt( os, "% 'd", i );95 fmt( os, "%d", i ); 96 96 return os; 97 97 } // ?|? … … 102 102 ostype & ?|?( ostype & os, unsigned int ui ) { 103 103 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 104 fmt( os, "% 'u", ui );104 fmt( os, "%u", ui ); 105 105 return os; 106 106 } // ?|? … … 111 111 ostype & ?|?( ostype & os, long int li ) { 112 112 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 113 fmt( os, "% 'ld", li );113 fmt( os, "%ld", li ); 114 114 return os; 115 115 } // ?|? … … 120 120 ostype & ?|?( ostype & os, unsigned long int uli ) { 121 121 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 122 fmt( os, "% 'lu", uli );122 fmt( os, "%lu", uli ); 123 123 return os; 124 124 } // ?|? … … 129 129 ostype & ?|?( ostype & os, long long int lli ) { 130 130 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 131 fmt( os, "% 'lld", lli );131 fmt( os, "%lld", lli ); 132 132 return os; 133 133 } // ?|? … … 138 138 ostype & ?|?( ostype & os, unsigned long long int ulli ) { 139 139 if ( sepPrt$( os ) ) fmt( os, "%s", sepGetCur$( os ) ); 140 fmt( os, "% 'llu", ulli );140 fmt( os, "%llu", ulli ); 141 141 return os; 142 142 } // ?|? … … 496 496 if ( ! f.flags.pc ) memcpy( &fmtstr, IFMTNP, sizeof(IFMTNP) ); \ 497 497 else memcpy( &fmtstr, IFMTP, sizeof(IFMTP) ); \ 498 int star = 5; /* position before first '*' */ \498 int star = 4; /* position before first '*' */ \ 499 499 \ 500 500 /* Insert flags into spaces before '*', from right to left. */ \ … … 503 503 if ( f.flags.sign ) { fmtstr[star] = '+'; star -= 1; } \ 504 504 if ( f.flags.pad0 && ! f.flags.pc ) { fmtstr[star] = '0'; star -= 1; } \ 505 fmtstr[star] = '\''; star -= 1; /* locale */ \506 505 fmtstr[star] = '%'; \ 507 506 \ … … 522 521 } // distribution 523 522 524 IntegralFMTImpl( signed char, " *hh ", "*.*hh " )525 IntegralFMTImpl( unsigned char, " *hh ", "*.*hh " )526 IntegralFMTImpl( signed short int, " *h ", "*.*h " )527 IntegralFMTImpl( unsigned short int, " *h ", "*.*h " )528 IntegralFMTImpl( signed int, " * ", "*.* " )529 IntegralFMTImpl( unsigned int, " * ", "*.* " )530 IntegralFMTImpl( signed long int, " *l ", "*.*l " )531 IntegralFMTImpl( unsigned long int, " *l ", "*.*l " )532 IntegralFMTImpl( signed long long int, " *ll ", "*.*ll " )533 IntegralFMTImpl( unsigned long long int, " *ll ", "*.*ll " )523 IntegralFMTImpl( signed char, " *hh ", " *.*hh " ) 524 IntegralFMTImpl( unsigned char, " *hh ", " *.*hh " ) 525 IntegralFMTImpl( signed short int, " *h ", " *.*h " ) 526 IntegralFMTImpl( unsigned short int, " *h ", " *.*h " ) 527 IntegralFMTImpl( signed int, " * ", " *.* " ) 528 IntegralFMTImpl( unsigned int, " * ", " *.* " ) 529 IntegralFMTImpl( signed long int, " *l ", " *.*l " ) 530 IntegralFMTImpl( unsigned long int, " *l ", " *.*l " ) 531 IntegralFMTImpl( signed long long int, " *ll ", " *.*ll " ) 532 IntegralFMTImpl( unsigned long long int, " *ll ", " *.*ll " ) 534 533 535 534
Note:
See TracChangeset
for help on using the changeset viewer.