From c842365a01977bcf69f285116953c54622b19d7c Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Thu, 3 Sep 2009 13:59:07 -0400 Subject: [PATCH] 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. (cherry picked from commit 9789acf09124eb5ffbe5f0737261aec91b32ebd4) --- ChangeLog | 8 ++++++++ src/output.c | 3 +-- src/system.h | 5 ++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7b0ded9..a8939322 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-09-03 Joel E. Denny + + 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 Use "Unresolved reference" error message when no symbols were found diff --git a/src/output.c b/src/output.c index 2d10a27d..6663a209 100644 --- a/src/output.c +++ b/src/output.c @@ -21,7 +21,6 @@ #include #include "system.h" -#include #include #include #include @@ -566,7 +565,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 (); diff --git a/src/system.h b/src/system.h index cc2b09b2..8ea56531 100644 --- a/src/system.h +++ b/src/system.h @@ -124,7 +124,10 @@ typedef size_t uintptr_t; `-------------*/ /* '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 + + . +*/ static inline void aver (bool assertion) { -- 2.45.2