summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fa63c49)
definition.
* src/main.c (main): Use them.
Suggested by Hans Aberg.
+2001-11-14 Akim Demaille <akim@epita.fr>
+
+ * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
+ definition.
+ * src/main.c (main): Use them.
+ Suggested by Hans Aberg.
+
2001-11-12 Akim Demaille <akim@epita.fr>
* src/system.h (ngettext): Now that we use ngettext, be sure to
2001-11-12 Akim Demaille <akim@epita.fr>
* src/system.h (ngettext): Now that we use ngettext, be sure to
(conflicts_print, conflicts_output): New.
* src/conflicts.h: Adjust.
* src/main.c (main): Invoke both conflicts_output and conflicts_print.
(conflicts_print, conflicts_output): New.
* src/conflicts.h: Adjust.
* src/main.c (main): Invoke both conflicts_output and conflicts_print.
- * src/print.c (print_grammar): Issue `\n' between to rule outputs.
+ * src/print.c (print_grammar): Issue `\n' between two rules.
* tests/regression.at (Conflicts): New.
Reported by Tom Lane.
* tests/regression.at (Conflicts): New.
Reported by Tom Lane.
* src/bison.simple (YYSTACK_REALLOC): New.
(yyparse) [!yyoverflow]: Use it and free the old stack.
* src/bison.simple (YYSTACK_REALLOC): New.
(yyparse) [!yyoverflow]: Use it and free the old stack.
- Reported by FIXME: Who.
+ Reported by Per Allansson.
2001-11-12 Pascal Bart <pascal.bart@epita.fr>
2001-11-12 Pascal Bart <pascal.bart@epita.fr>
- exit (complain_message_count ? 1 : 0);
+ return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
}
\f
/* Abort for an internal error denoted by string S. */
}
\f
/* Abort for an internal error denoted by string S. */
# include <stdlib.h>
#endif
# include <stdlib.h>
#endif
+/* The following test is to work around the gross typo in
+ systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE
+ is defined to 0, not 1. */
+#if !EXIT_FAILURE
+# undef EXIT_FAILURE
+# define EXIT_FAILURE 1
+#endif
+
+#ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
+#endif
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif