Changeset 2c2d32b


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:
c2016b6
Parents:
a01404e
git-author:
Jacob Prud'homme <jafprudhomme@…> (06/22/21 12:14:29)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:09)
Message:

Removed remaining bits of C++ code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    ra01404e r2c2d32b  
    22#include "parseconfig.hfa"
    33
    4 static bool comments( ifstream & in, string & name ) {
     4bool comments( ifstream & in, char * name ) {
    55        while () {
    66                in | name;
    77          if ( fail( in ) ) return true;
    8           if ( name.substr(0,1) != "#" ) break;
     8          if ( name[0] != '#' ) break;
    99                in | nl;        // ignore remainder of line
    1010        } // for
     
    1919                bool used;                                                                              // already supplied ?
    2020                unsigned int & value;                                                   // location to put configuration value
    21         } static parms[Parmnum] = {
     21        } parms[Parmnum] = {
    2222                { "StopCost", false, cparms.stopCost },
    2323                { "NumStudents", false, cparms.numStudents },
     
    3232                { "NumCouriers", false, cparms.numCouriers },
    3333        };
    34         string name;
     34        char * name;
    3535        int value;
    3636        unsigned int cnt, posn, numOfParm = 0;
Note: See TracChangeset for help on using the changeset viewer.