Changeset 0926487


Ignore:
Timestamp:
Aug 28, 2023, 7:03:20 PM (15 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
7e1dbd7
Parents:
4aaac8a
Message:

formatting, use C-style compound literal

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r4aaac8a r0926487  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Aug 25 12:04:27 2023
    13 // Update Count     : 1526
     12// Last Modified On : Mon Aug 28 13:36:16 2023
     13// Update Count     : 1527
    1414//
    1515
     
    10151015                if ( ! f.flags.rwd ) f.s[check] = '\0';                 // insert sentinel
    10161016                len = fmt( is, fmtstr, f.s );
    1017                 //fprintf( stderr, "KK %s %zd %d %c\n", fmtstr, len, check, f.s[check] );
     1017                //fprintf( stderr, "KK %s %zd %d %c %s\n", fmtstr, len, check, f.s[check], f.s );
    10181018                if ( ! f.flags.rwd && f.s[check] != '\0' )              // sentinel overwritten ?
    10191019                        throw (cstring_length){ &cstring_length_vt };
  • libcfa/src/iostream.hfa

    r4aaac8a r0926487  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Aug 25 11:55:46 2023
    13 // Update Count     : 533
     12// Last Modified On : Fri Aug 25 14:55:06 2023
     13// Update Count     : 535
    1414//
    1515
     
    432432                return (_Istream_Cstr)@{ s, {0p}, rwd, {.flags.rwd : true} };
    433433        }
    434         _Istream_Cstr skip( const char scanset[] ) { return (_Istream_Cstr){ 0p, {scanset}, -1, {.all : 0} }; }
    435         _Istream_Cstr skip( unsigned int wd ) { return (_Istream_Cstr){ 0p, {0p}, wd, {.all : 0} }; }
     434        _Istream_Cstr skip( const char scanset[] ) { return (_Istream_Cstr)@{ 0p, {scanset}, -1, {.all : 0} }; }
     435        _Istream_Cstr skip( unsigned int wd ) { return (_Istream_Cstr)@{ 0p, {0p}, wd, {.all : 0} }; }
    436436        _Istream_Cstr & getline( _Istream_Cstr & fmt, const char delimit = '\n' ) {
    437437                fmt.delimit[0] = delimit; fmt.delimit[1] = '\0'; fmt.flags.delimit = true; fmt.flags.inex = true; return fmt; }
Note: See TracChangeset for help on using the changeset viewer.