- 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:
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/parseconfig.cfa
ra01404e r2c2d32b 2 2 #include "parseconfig.hfa" 3 3 4 static bool comments( ifstream & in, string &name ) {4 bool comments( ifstream & in, char * name ) { 5 5 while () { 6 6 in | name; 7 7 if ( fail( in ) ) return true; 8 if ( name .substr(0,1) != "#") break;8 if ( name[0] != '#' ) break; 9 9 in | nl; // ignore remainder of line 10 10 } // for … … 19 19 bool used; // already supplied ? 20 20 unsigned int & value; // location to put configuration value 21 } staticparms[Parmnum] = {21 } parms[Parmnum] = { 22 22 { "StopCost", false, cparms.stopCost }, 23 23 { "NumStudents", false, cparms.numStudents }, … … 32 32 { "NumCouriers", false, cparms.numCouriers }, 33 33 }; 34 stringname;34 char * name; 35 35 int value; 36 36 unsigned int cnt, posn, numOfParm = 0;
Note: See TracChangeset
for help on using the changeset viewer.