mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: address syntax-check failures
* cfg.mk: Ignore failures in timevar (uses GCC style configuration, not gnulib's). * doc/local.mk: Space changes. * lib/main.c, tests/calc.at: Remove useless HAVE_ tests.
This commit is contained in:
2
cfg.mk
2
cfg.mk
@@ -76,6 +76,8 @@ $(call exclude, \
|
|||||||
prohibit_always-defined_macros+=?|^lib/timevar.c$$ \
|
prohibit_always-defined_macros+=?|^lib/timevar.c$$ \
|
||||||
prohibit_always-defined_macros+=?|^src/(parse-gram.c|system.h)$$ \
|
prohibit_always-defined_macros+=?|^src/(parse-gram.c|system.h)$$ \
|
||||||
prohibit_always-defined_macros+=?|^tests/regression.at$$ \
|
prohibit_always-defined_macros+=?|^tests/regression.at$$ \
|
||||||
|
prohibit_always_true_header_tests=^djgpp/subpipe.h$$|^lib/timevar.c$$ \
|
||||||
|
prohibit_always_true_header_tests+=?|^m4/timevar.m4$$ \
|
||||||
prohibit_defined_have_decl_tests=?|^lib/timevar.c$$ \
|
prohibit_defined_have_decl_tests=?|^lib/timevar.c$$ \
|
||||||
prohibit_doubled_word=^tests/named-refs.at$$ \
|
prohibit_doubled_word=^tests/named-refs.at$$ \
|
||||||
prohibit_magic_number_exit=^doc/bison.texi$$ \
|
prohibit_magic_number_exit=^doc/bison.texi$$ \
|
||||||
|
|||||||
@@ -124,11 +124,11 @@ nodist_man_MANS = doc/yacc.1
|
|||||||
## ----------------------------- ##
|
## ----------------------------- ##
|
||||||
|
|
||||||
CLEANDIRS += doc/figs
|
CLEANDIRS += doc/figs
|
||||||
FIGS_DOT = \
|
FIGS_DOT = \
|
||||||
doc/figs/example.dot \
|
doc/figs/example.dot \
|
||||||
doc/figs/example-reduce.dot doc/figs/example-shift.dot
|
doc/figs/example-reduce.dot doc/figs/example-shift.dot
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
$(FIGS_DOT) \
|
$(FIGS_DOT) \
|
||||||
$(FIGS_DOT:.dot=.eps) $(FIGS_DOT:.dot=.pdf) $(FIGS_DOT:.dot=.png)
|
$(FIGS_DOT:.dot=.eps) $(FIGS_DOT:.dot=.pdf) $(FIGS_DOT:.dot=.png)
|
||||||
SUFFIXES += .dot .eps .pdf .png
|
SUFFIXES += .dot .eps .pdf .png
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,7 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <locale.h>
|
||||||
#if HAVE_LOCALE_H
|
|
||||||
# include <locale.h>
|
|
||||||
#endif
|
|
||||||
#if ! HAVE_SETLOCALE
|
|
||||||
# define setlocale(Category, Locale)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int yyparse (void);
|
int yyparse (void);
|
||||||
|
|
||||||
|
|||||||
@@ -46,12 +46,7 @@ m4_define([_AT_DATA_CALC_Y],
|
|||||||
|
|
||||||
m4_pushdef([AT_CALC_MAIN],
|
m4_pushdef([AT_CALC_MAIN],
|
||||||
[#include <assert.h>
|
[#include <assert.h>
|
||||||
#if HAVE_UNISTD_H
|
#include <unistd.h>
|
||||||
# include <unistd.h>
|
|
||||||
#else
|
|
||||||
# undef alarm
|
|
||||||
# define alarm(seconds) /* empty */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
AT_SKEL_CC_IF([[
|
AT_SKEL_CC_IF([[
|
||||||
/* A C++ ]AT_NAME_PREFIX[parse that simulates the C signature. */
|
/* A C++ ]AT_NAME_PREFIX[parse that simulates the C signature. */
|
||||||
|
|||||||
Reference in New Issue
Block a user