Ignore:
Timestamp:
Aug 31, 2021, 1:49:09 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:
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)
Message:

Converted += 1 to ++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    rc3c76cd rdac3455  
    4343                open( in, configFile );                                                 // open the configuration file for input
    4444
    45                 for ( cnt = 0 ; cnt < Parmnum; cnt += 1 ) {             // parameter names can appear in any order
     45                for ( cnt = 0 ; cnt < Parmnum; ++cnt ) {                // parameter names can appear in any order
    4646                  if ( comments( in, name ) ) break;                    // eof ?
    47                         for ( posn = 0; posn < Parmnum && name != parms[posn].name; posn += 1 ); // linear search
     47                        for ( posn = 0; posn < Parmnum && name != parms[posn].name; ++posn ); // linear search
    4848                  if ( posn == Parmnum ) break;                                 // configuration not found ?
    4949                  if ( parms[posn].used ) break;                                // duplicate configuration ?
     
    5555                  if ( fail( in ) ) break;
    5656                        in | nl; // ignore remainder of line
    57                         numOfParm += 1;
     57                        ++numOfParm;
    5858                        parms[posn].used = true;
    5959                        parms[posn].value = value;
Note: See TracChangeset for help on using the changeset viewer.