Changeset dac3455
- Timestamp:
- Aug 31, 2021, 1:49:09 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- e658f5d
- Parents:
- c3c76cd
- git-author:
- Jacob Prud'homme <jafprudhomme@…> (06/15/21 11:43:35)
- git-committer:
- Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/parseconfig.cfa
rc3c76cd rdac3455 43 43 open( in, configFile ); // open the configuration file for input 44 44 45 for ( cnt = 0 ; cnt < Parmnum; cnt += 1) { // parameter names can appear in any order45 for ( cnt = 0 ; cnt < Parmnum; ++cnt ) { // parameter names can appear in any order 46 46 if ( comments( in, name ) ) break; // eof ? 47 for ( posn = 0; posn < Parmnum && name != parms[posn].name; posn += 1); // linear search47 for ( posn = 0; posn < Parmnum && name != parms[posn].name; ++posn ); // linear search 48 48 if ( posn == Parmnum ) break; // configuration not found ? 49 49 if ( parms[posn].used ) break; // duplicate configuration ? … … 55 55 if ( fail( in ) ) break; 56 56 in | nl; // ignore remainder of line 57 numOfParm += 1;57 ++numOfParm; 58 58 parms[posn].used = true; 59 59 parms[posn].value = value;
Note: See TracChangeset
for help on using the changeset viewer.