enhanced whitespace remover

This commit is contained in:
taiyu 2015-08-18 03:22:31 -07:00
parent e9c3a9016f
commit abd0afb03a
4 changed files with 32 additions and 33 deletions

View file

@ -186,10 +186,9 @@ bool read_config(FILE *file, bool is_active) {
int temp_depth = 0; // Temporary: skip all config sections with depth
while (!feof(file)) {
int _;
char *line = read_line(file);
line = strip_comments(line);
line = strip_whitespace(line, &_);
strip_comments(line);
strip_whitespace(line);
if (!line[0]) {
goto _continue;
}