fixed "enabled" value key word

more debugging for settings parser
This commit is contained in:
Martin Willi
2008-06-10 07:14:34 +00:00
parent 5dcda9e25b
commit 208b3baf10
+3 -1
View File
@@ -164,7 +164,7 @@ static bool get_bool(private_settings_t *this, char *key, bool def)
if (value) if (value)
{ {
if (strcasecmp(value, "true") == 0 || if (strcasecmp(value, "true") == 0 ||
strcasecmp(value, "enables") == 0 || strcasecmp(value, "enabled") == 0 ||
strcasecmp(value, "yes") == 0 || strcasecmp(value, "yes") == 0 ||
strcasecmp(value, "1") == 0) strcasecmp(value, "1") == 0)
{ {
@@ -318,6 +318,7 @@ static section_t* parse_section(char **text, char *name)
continue; continue;
} }
} }
DBG1("matching '}' not found near %s", *text);
break; break;
case '=': case '=':
if (parse(text, "\t ", "\n", NULL, &value)) if (parse(text, "\t ", "\n", NULL, &value))
@@ -328,6 +329,7 @@ static section_t* parse_section(char **text, char *name)
section->kv->insert_last(section->kv, kv); section->kv->insert_last(section->kv, kv);
continue; continue;
} }
DBG1("parsing value failed near %s", *text);
break; break;
case '#': case '#':
parse(text, "", "\n", NULL, &value); parse(text, "", "\n", NULL, &value);