mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Make previous patch more robust.
* src/output.c (ARRAY_CARDINALITY): New macro, copied from argmatch.h. (output_skeleton): Use it. Suggested by Akim Demaille. Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2009-08-20 Eric Blake <ebb9@byu.net>
|
||||
|
||||
Make previous patch more robust.
|
||||
* src/output.c (ARRAY_CARDINALITY): New macro, copied from
|
||||
argmatch.h.
|
||||
(output_skeleton): Use it.
|
||||
Suggested by Akim Demaille.
|
||||
|
||||
Import latest m4/m4.m4.
|
||||
* m4/m4.m4: Copy from autoconf 2.64.
|
||||
* configure.ac (M4_GNU_OPTION): New define.
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <config.h>
|
||||
#include "system.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <configmake.h>
|
||||
#include <error.h>
|
||||
#include <get-errno.h>
|
||||
@@ -40,6 +41,7 @@
|
||||
#include "symtab.h"
|
||||
#include "tables.h"
|
||||
|
||||
# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
|
||||
|
||||
static struct obstack format_obstack;
|
||||
|
||||
@@ -546,6 +548,7 @@ output_skeleton (void)
|
||||
argv[i++] = full_m4bison;
|
||||
argv[i++] = full_skeleton;
|
||||
argv[i++] = NULL;
|
||||
assert (i <= ARRAY_CARDINALITY (argv));
|
||||
}
|
||||
|
||||
init_subpipe ();
|
||||
|
||||
Reference in New Issue
Block a user