Changeset 74c6748 for libcfa/src


Ignore:
Timestamp:
Aug 9, 2023, 5:40:57 PM (10 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9ff71ff
Parents:
e7a8f65
Message:

change test programs to reflect input changes for C strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    re7a8f65 r74c6748  
    112112
    113113
    114 static [ bool ] comments( & ifstream in, [] char name ) {
     114static [ bool ] comments( & ifstream in, size_t size, [] char name ) {
    115115        while () {
    116                 in | name;
     116                in | wdi( size, name );
    117117          if ( eof( in ) ) return true;
    118118          if ( name[0] != '#' ) return false;
     
    136136                        // NOTE: Must add check to see if already read in value for this key,
    137137                        // once we switch to using hash table as intermediate storage
    138                   if ( comments( in, key ) ) break;                     // eof ?
    139                         in | value;
     138                        if ( comments( in, 64, key ) ) break;   // eof ?
     139                        in | wdi( 256, value );
    140140
    141141                        add_kv_pair( *kv_pairs, key, value );
Note: See TracChangeset for help on using the changeset viewer.