mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
First set of tests: use the `calc' example from the documentation.
* src/bison.s1 (yyparse): Condition the code using `yytname' which is defined only when YYDEBUG is. * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13. * src/files.c (tryopen, tryclose): Formatting changes. Move to the top and be static. * src/reader.c (read_signed_integer): Likewise. * tests/calc.m4: New file. * Makefile.am, suite.m4: Adjust. * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
This commit is contained in:
@@ -2,12 +2,21 @@
|
||||
## Prepare for testing. ##
|
||||
## ----------------------##
|
||||
|
||||
# serial 1
|
||||
# serial 2
|
||||
|
||||
# Single argument says where are built sources to test, relative to the
|
||||
# built test directory. Maybe omitted if the same (flat distribution).
|
||||
|
||||
AC_DEFUN(AT_CONFIG,
|
||||
[AT_TESTPATH=ifelse($1, , ., $1)
|
||||
AC_SUBST(AT_TESTPATH)
|
||||
AC_DEFUN([AT_CONFIG],
|
||||
[AT_TESTPATH=ifelse([$1], [], [.], [$1])
|
||||
AC_SUBST([AT_TESTPATH])
|
||||
# Try to be compatible with both Autoconf 2.13 and 2.50.
|
||||
if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
|
||||
ECHO_C="$ac_c"
|
||||
ECHO_N="$ac_n"
|
||||
ECHO_T="$ac_t"
|
||||
AC_SUBST([ECHO_C])
|
||||
AC_SUBST([ECHO_N])
|
||||
AC_SUBST([ECHO_T])
|
||||
fi
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user