- if (!haserror && entry.name != NULL && (signed)entry.type >= 0) {
- if (!config_set(entry.name, entry.type, entry.value))
- g_warning("Invalid option in '%s': '%s'\n",
- yyfilename, entry.name);
- } else {
- printf("Parser error in '%s' on line %d\n", yyfilename, yylineno);
- }
- g_free(entry.name);
- entry.name = NULL;
- if (entry.type == Config_String)
- g_free(entry.value.string);
- entry.type = -1;
+ if (!comment) {
+ if (!haserror && entry.name != NULL && (signed)entry.type >= 0) {
+ if (!config_set(entry.name, entry.type, entry.value))
+ g_warning("Invalid option in '%s': '%s'\n",
+ yyfilename, entry.name);
+ } else {
+ printf("Parser error in '%s' on line %d\n", yyfilename, yylineno);
+ }
+ g_free(entry.name);
+ entry.name = NULL;
+ if (entry.type == Config_String)
+ g_free(entry.value.string);
+ entry.type = -1;