Changeset c1dafea


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
82820da
Parents:
1e05e09
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/03/21 01:57:08)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    r1e05e09 rc1dafea  
    3434        kvp.data = alloc( size );
    3535}
    36 /*
    37 void ?{}( KVPairs & kvp, KVPairs val ) with( val ) {    // copy, deep
    38         kvp.[ size, max_size ] = [ size, max_size ];
    39         kvp.data = alloc( size, data );
    40 }
    41 */
    4236void ^?{}( KVPairs & kvp ) with ( kvp ) {                               // destructor
    4337        free( data );
     
    7367                open( in, config_file );                                        // open the configuration file for input
    7468
    75                 while () {                                                                              // parameter names can appear in any order
     69                while () {                                                                      // parameter names can appear in any order
    7670                        char key[64];
    7771                        char value[256];
    7872
    79                   if ( comments( in, key ) ) break;                             // eof ?
    80                         // Must add check to see if we have already read in a key-value pair, once we switch to using hash table as intermediate storage
     73                        // Must add check to see if already read in a key-value pair,
     74                        // once we switch to using hash table as intermediate storage
     75                  if ( comments( in, key ) ) break;                     // eof ?
    8176                        in | value;
    8277
     
    8479
    8580                  if ( eof( in ) ) break;
    86                         in | nl;                                                                        // ignore remainder of line
     81                        in | nl;                                                                // ignore remainder of line
    8782                } // for
    8883        } catch( Open_Failure * ex; ex->istream == &in ) {
Note: See TracChangeset for help on using the changeset viewer.