maint: avoid "magic number exit".

* cfg.mk (local-checks-to-skip): No longer skip it.
	* bootstrap.conf (gnulib_modules): Add sysexits.
	* doc/bison.texinfo, etc/bench.pl.in, src/parse-gram.y,
	* src/system.h, tests/calc.at, tests/named-refs.at: Use assert
	where appropriate instead of "if (...) exit".
	Use symbolic exit status elsewhere.
This commit is contained in:
Akim Demaille
2012-02-18 19:19:26 +01:00
parent eff97eb54a
commit d0f2b7f856
10 changed files with 18 additions and 11 deletions

View File

@@ -804,7 +804,7 @@ version_check (location const *loc, char const *version)
{
complain_at (*loc, "require bison %s, but have %s",
version, PACKAGE_VERSION);
exit (63);
exit (EX_CONFIG);
}
}

View File

@@ -52,6 +52,7 @@
typedef size_t uintptr_t;
#endif
#include <sysexits.h>
/*---------.
| Gnulib. |