From 50977317cd10df482c3b35f61e9ee4522eee3c3b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 15 Dec 2012 17:16:28 +0100 Subject: [PATCH] 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. --- cfg.mk | 2 ++ doc/local.mk | 8 ++++---- lib/main.c | 8 +------- tests/calc.at | 7 +------ 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/cfg.mk b/cfg.mk index e77fe89e..35f2595d 100644 --- a/cfg.mk +++ b/cfg.mk @@ -76,6 +76,8 @@ $(call exclude, \ prohibit_always-defined_macros+=?|^lib/timevar.c$$ \ prohibit_always-defined_macros+=?|^src/(parse-gram.c|system.h)$$ \ 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_doubled_word=^tests/named-refs.at$$ \ prohibit_magic_number_exit=^doc/bison.texi$$ \ diff --git a/doc/local.mk b/doc/local.mk index c8b72ac5..cac9f544 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -124,11 +124,11 @@ nodist_man_MANS = doc/yacc.1 ## ----------------------------- ## CLEANDIRS += doc/figs -FIGS_DOT = \ - doc/figs/example.dot \ +FIGS_DOT = \ + doc/figs/example.dot \ doc/figs/example-reduce.dot doc/figs/example-shift.dot -EXTRA_DIST += \ - $(FIGS_DOT) \ +EXTRA_DIST += \ + $(FIGS_DOT) \ $(FIGS_DOT:.dot=.eps) $(FIGS_DOT:.dot=.pdf) $(FIGS_DOT:.dot=.png) SUFFIXES += .dot .eps .pdf .png diff --git a/lib/main.c b/lib/main.c index 7996c7fb..2cb880eb 100644 --- a/lib/main.c +++ b/lib/main.c @@ -18,13 +18,7 @@ along with this program. If not, see . */ #include - -#if HAVE_LOCALE_H -# include -#endif -#if ! HAVE_SETLOCALE -# define setlocale(Category, Locale) -#endif +#include int yyparse (void); diff --git a/tests/calc.at b/tests/calc.at index 498efa94..984e6b5f 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -46,12 +46,7 @@ m4_define([_AT_DATA_CALC_Y], m4_pushdef([AT_CALC_MAIN], [#include -#if HAVE_UNISTD_H -# include -#else -# undef alarm -# define alarm(seconds) /* empty */ -#endif +#include AT_SKEL_CC_IF([[ /* A C++ ]AT_NAME_PREFIX[parse that simulates the C signature. */ -- 2.45.2