Changeset 5949 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Dec 7, 2005, 1:01:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/parser/ini_parser/ini_parser.cc
r5948 r5949 242 242 else 243 243 { 244 if (this->comment != NULL) 245 fprintf(stream, "%s\n\n", this->comment); 246 244 247 std::list<IniSection>::const_iterator section; 245 248 for (section = this->sections.begin(); section != this->sections.end(); section++) 246 249 { 250 if ((*section).comment != NULL) 251 fprintf(stream, "%s", (*section).comment); 247 252 fprintf(stream, "\n [%s]\n", (*section).name); 248 253 249 254 std::list<IniEntry>::const_iterator entry; 250 255 for (entry = (*section).entries.begin(); entry != (*section).entries.end(); entry++) 256 { 257 if ((*entry).comment != NULL) 258 fprintf(stream, "%s", (*entry).comment); 251 259 fprintf(stream, " %s = %s\n", (*entry).name, (*entry).value); 260 } 252 261 } 253 262 }
Note: See TracChangeset
for help on using the changeset viewer.