*out = 0;
- if (*s && !i)
+ if (*s && !i) {
fprintf(stderr, "gallium_hud: syntax error: unexpected '%c' (%i) while "
"parsing a string\n", *s, *s);
+ fflush(stderr);
+ }
+
return i;
}
default:
fprintf(stderr, "gallium_hud: syntax error: unexpected '%c'\n", *str);
+ fflush(stderr);
}
}
if (!hud_driver_query_install(&hud->batch_query, pane, hud->pipe,
name)) {
fprintf(stderr, "gallium_hud: unknown driver query '%s'\n", name);
+ fflush(stderr);
}
}
}
if (!pane) {
fprintf(stderr, "gallium_hud: syntax error: unexpected ':', "
"expected a name\n");
+ fflush(stderr);
break;
}
else {
fprintf(stderr, "gallium_hud: syntax error: unexpected '%c' (%i) "
"after ':'\n", *env, *env);
+ fflush(stderr);
}
}
default:
fprintf(stderr, "gallium_hud: syntax error: unexpected '%c'\n", *env);
+ fflush(stderr);
}
/* Reset to defaults for the next pane in case these were modified. */