mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
Use aver not assert.
* src/output.c: Don't include assert.h. (output_skeleton): Use aver not assert. * src/system.h (aver): In documentation of why, add links to Paul Eggert's explanations in the mailing lists.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2009-09-03 Joel E. Denny <jdenny@clemson.edu>
|
||||
|
||||
Use aver not assert.
|
||||
* src/output.c: Don't include assert.h.
|
||||
(output_skeleton): Use aver not assert.
|
||||
* src/system.h (aver): In documentation of why, add links to
|
||||
Paul Eggert's explanations in the mailing lists.
|
||||
|
||||
2009-09-05 Alex Rozenman <rozenman@gmail.com>
|
||||
|
||||
Use "Unresolved reference" error message when no symbols were found
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <config.h>
|
||||
#include "system.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <configmake.h>
|
||||
#include <error.h>
|
||||
#include <get-errno.h>
|
||||
@@ -637,7 +636,7 @@ output_skeleton (void)
|
||||
argv[i++] = full_m4bison;
|
||||
argv[i++] = full_skeleton;
|
||||
argv[i++] = NULL;
|
||||
assert (i <= ARRAY_CARDINALITY (argv));
|
||||
aver (i <= ARRAY_CARDINALITY (argv));
|
||||
}
|
||||
|
||||
init_subpipe ();
|
||||
|
||||
@@ -124,7 +124,10 @@ typedef size_t uintptr_t;
|
||||
`-------------*/
|
||||
|
||||
/* <assert.h>'s assertions are too heavyweight, and can be disabled
|
||||
too easily, so use aver rather than assert. */
|
||||
too easily, so use aver rather than assert. See discussions at
|
||||
<http://lists.gnu.org/archive/html/bison-patches/2006-01/msg00080.html>
|
||||
<http://lists.gnu.org/archive/html/bison-patches/2006-09/msg00111.html>.
|
||||
*/
|
||||
static inline void
|
||||
aver (bool assertion)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user