* lib/.cvsignore: Add verify.h.
* src/getargs.c: Use ARGMATCH_VERIFY rather than verify.
* src/system.h (verify): Remove.
Include verify.h instead.
* src/tables.c (tables_generate): Use new API for 'verify'.
+2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ * bootstrap (gnulib_modules): Add verify.
+ * lib/.cvsignore: Add verify.h.
+ * src/getargs.c: Use ARGMATCH_VERIFY rather than verify.
+ * src/system.h (verify): Remove.
+ Include verify.h instead.
+ * src/tables.c (tables_generate): Use new API for 'verify'.
+
2005-09-21 Paul Eggert <eggert@cs.ucla.edu>
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Do not use
2005-09-21 Paul Eggert <eggert@cs.ucla.edu>
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Do not use
stdio-safer
stpcpy
unistd-safer
stdio-safer
stpcpy
unistd-safer
xalloc
xalloc-die
xstrndup
xalloc
xalloc-die
xstrndup
unistd--.h
unistd-safer.h
unlocked-io.h
unistd--.h
unistd-safer.h
unlocked-io.h
xalloc-die.c
xalloc.h
xmalloc.c
xalloc-die.c
xalloc.h
xmalloc.c
+ARGMATCH_VERIFY (trace_args, trace_types);
static void
trace_argmatch (char *args)
{
static void
trace_argmatch (char *args)
{
- verify (trace_constraint, ARGMATCH_CONSTRAINT (trace_args, trace_types));
if (args)
{
args = strtok (args, ",");
if (args)
{
args = strtok (args, ",");
+ARGMATCH_VERIFY (report_args, report_types);
static void
report_argmatch (char *args)
{
static void
report_argmatch (char *args)
{
- verify (report_constraint, ARGMATCH_CONSTRAINT (report_args, report_types));
args = strtok (args, ",");
do
{
args = strtok (args, ",");
do
{
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-/* Verify a requirement at compile-time (unlike assert, which is runtime). */
-#define verify(name, assertion) struct name {char name[(assertion) ? 1 : -1];}
-
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
typedef size_t uintptr_t;
#endif
typedef size_t uintptr_t;
#endif
/* This is a poor way to make sure the sizes are properly
correlated. In particular the signedness is not taken into
account. But it's not useless. */
/* This is a poor way to make sure the sizes are properly
correlated. In particular the signedness is not taken into
account. But it's not useless. */
- verify (sizes_are_properly_correlated,
- (sizeof nstates <= sizeof nvectors
- && sizeof nvars <= sizeof nvectors));
+ verify (sizeof nstates <= sizeof nvectors
+ && sizeof nvars <= sizeof nvectors);
nvectors = state_number_as_int (nstates) + nvars;
nvectors = state_number_as_int (nstates) + nvars;