Fixed another possible implementation specific bug thanks to this progressive splint idea :)

This commit is contained in:
Dale Weiler 2012-12-28 12:43:08 +00:00
parent e2f9aa5027
commit a6f51264fd
3 changed files with 3 additions and 4 deletions

4
main.c
View file

@ -527,7 +527,7 @@ int main(int argc, char **argv) {
if (OPTS_FLAG(TRUE_EMPTY_STRINGS) && OPTS_FLAG(FALSE_EMPTY_STRINGS)) {
con_err("-ftrue-empty-strings and -ffalse-empty-strings are mutually exclusive");
exit(1);
exit(EXIT_FAILURE);
}
/* the standard decides which set of operators to use */
@ -550,7 +550,7 @@ int main(int argc, char **argv) {
operators[operator_count-1].id != opid2(':','?'))
{
con_err("internal error: operator precedence table wasn't updated correctly!\n");
exit(1);
exit(EXIT_FAILURE);
}
operators_free = true;
newops = (oper_info*)mem_a(sizeof(operators[0]) * operator_count);

View file

@ -55,7 +55,6 @@ FLAGS_MAYBE="\
-realcompare \
-observertrans \
-shiftnegative \
-exitarg \
-freshtrans \
-abstract \
-statictrans"

2
test.c
View file

@ -121,7 +121,7 @@ FILE ** task_popen(const char *command, const char *mode) {
close(2), dup(errhandle[1]);
execvp(*argv, argv);
exit(1);
exit(EXIT_FAILURE);
} else {
/* fork failed */
goto task_popen_error_3;