Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    rcce4648 rebf8ca5  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jan 19 08:15:53 2022
    13 // Update Count     : 1352
     12// Last Modified On : Sat Aug 27 15:04:15 2022
     13// Update Count     : 1358
    1414//
    1515
     
    197197                        fmt( os, "%s", buf ); \
    198198                        if ( isfinite( val ) ) { /* if number, print decimal point when no fraction or exponent */ \
    199                                 for ( int i = 0;; i += 1 ) { \
     199                                for ( i; 0 ~ @ ) { \
    200200                                        if ( i == len ) { fmt( os, "." ); break; } \
    201201                                        if ( buf[i] == '.' || buf[i] == 'e' || buf[i] == 'E' ) break; /* decimal point or scientific ? */ \
     
    765765                        fmtuc.flags.pc = f.flags.pc;
    766766                        fmtuc.flags.nobsdp = f.flags.nobsdp;
    767                         for ( unsigned int i = 0; f.val[i] != '\0'; i += 1 ) {
     767                        for ( i; 0 ~ @ : @; f.val[i] != '\0' ) {
    768768                                fmtuc.val = f.val[i];
    769769//                              os | fmtuc | nonl;
     
    931931                if ( fmt( is, "%39[0-9]%*[0-9]", s ) == 1 ) {   // take first 39 characters, ignore remaining
    932932                        ullli = 0;
    933                         for ( unsigned int i = 0; s[i] != '\0'; i += 1 ) {
     933                        for ( i; 0 ~ @ : @; s[i] != '\0' ) {
    934934                                ullli = ullli * 10 + s[i] - '0';
    935935                        } // for
Note: See TracChangeset for help on using the changeset viewer.