Changeset 9515
- Timestamp:
- 2005-03-30T15:50:09+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/cfgread.cpp
r8727 r9515 25 25 26 26 #include "cfgread.h" 27 #include <c type.h> // for isspace()27 #include <cctype> // for isspace() 28 28 29 29 int write_ini_line (ofstream &fileout, const text_t &key, const text_t &value) { … … 116 116 117 117 // skip white space 118 while (!filein.eof() && isspace( c1)) { filein.get(c1); }118 while (!filein.eof() && isspace((unsigned char) c1)) { filein.get(c1); } 119 119 120 120 // ignore comments … … 122 122 while (!filein.eof() && c1!='\n' && c1!='\r') { filein.get(c1); } 123 123 // skip white space... 124 while (!filein.eof() && isspace( c1)) { filein.get(c1); }124 while (!filein.eof() && isspace((unsigned char) c1)) { filein.get(c1); } 125 125 } 126 126 … … 148 148 // get token or a whole phrase 149 149 while (!filein.eof()) { 150 if (isspace( c1)) {150 if (isspace((unsigned char) c1)) { 151 151 if (! inquote) { 152 152 // end of token, not inside quote marks
Note:
See TracChangeset
for help on using the changeset viewer.