Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    rdd7c6520 re59e663  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar  5 15:56:16 2020
    13 // Update Count     : 834
     12// Last Modified On : Thu Feb 20 15:53:23 2020
     13// Update Count     : 829
    1414//
    1515
     
    536536static void base10_128( ostype & os, _Ostream_Manip(T) fmt ) { \
    537537        if ( fmt.val > UINT64_MAX ) { \
    538                 base10_128( os, fmt.val / P10_UINT64 ); /* recursive */ \
     538                fmt.val /= P10_UINT64; \
     539                base10_128( os, fmt ); /* recursive */ \
    539540                _Ostream_Manip(unsigned long long int) fmt2 @= { (uint64_t)(fmt.val % P10_UINT64), 0, 19, 'u', { .all : 0 } }; \
    540541                fmt2.flags.nobsdp = true; \
     
    543544                (ostype &)(os | fmt2); \
    544545        } else { \
    545                 printf( "fmt %c %lld %d\n", fmt.base, (unsigned long long int)fmt.val, fmt.all ); \
    546                 _Ostream_Manip(SIGNED long long int) x @= { (unsigned long long int)fmt.val, fmt.wd, fmt.pc, fmt.base, { .all : fmt.all } }; \
    547                 (ostype &)(os | x); \
     546                printf( "fmt %c %lld %d\n", fmt.base, fmt.val, fmt.all ); \
     547                (ostype &)(os | fmt); \
    548548        } /* if */ \
    549549} /* base10_128 */                                                 \
     
    552552                if ( $sepPrt( os ) ) fmt( os, "%s", $sepGetCur( os ) ); \
    553553\
    554                 if ( f.base == 'b' | f.base == 'B' | f.base == 'o' | f.base == 'x' | f.base == 'X' ) { \
     554                if ( f.base == 'b' | f.base == 'o' | f.base == 'x' | f.base == 'X' ) { \
    555555                        unsigned long long int msig = (unsigned long long int)(f.val >> 64); \
    556556                        unsigned long long int lsig = (unsigned long long int)(f.val); \
     
    562562                        } else { \
    563563                                fmt2.flags.pad0 = fmt2.flags.nobsdp = true;     \
    564                                 if ( f.base == 'b' | f.base == 'B' ) { \
     564                                if ( f.base == 'b' ) { \
    565565                                        if ( f.wd > 64 ) fmt.wd = f.wd - 64; \
    566566                                        fmt2.wd = 64; \
Note: See TracChangeset for help on using the changeset viewer.