]> git.saurik.com Git - bison.git/commitdiff
tests: address syntax-check failures
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 15 Dec 2012 16:16:28 +0000 (17:16 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 16 Dec 2012 09:33:42 +0000 (10:33 +0100)
* 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
doc/local.mk
lib/main.c
tests/calc.at

diff --git a/cfg.mk b/cfg.mk
index e77fe89ef0b8dc5f0236f760c84c157f63640294..35f2595d68b9649330467ceb2e97ec899f29a7ad 100644 (file)
--- 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$$                         \
index c8b72ac541d5ea6ff6c86affd938cacd7f5bfdb2..cac9f544a2e5cd52912c31086183aa1259dcb074 100644 (file)
@@ -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
 
index 7996c7fb9956a332c8292a932e7932263fbe4f30..2cb880eb715211639ec7652a77a6c9a19eefea61 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-
-#if HAVE_LOCALE_H
-# include <locale.h>
-#endif
-#if ! HAVE_SETLOCALE
-# define setlocale(Category, Locale)
-#endif
+#include <locale.h>
 
 int yyparse (void);
 
index 498efa9472aafac4eef35ccb619bc661ee4b03d3..984e6b5fdff119809712cd398fdb3d03a1016402 100644 (file)
@@ -46,12 +46,7 @@ m4_define([_AT_DATA_CALC_Y],
 
 m4_pushdef([AT_CALC_MAIN],
 [#include <assert.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#else
-# undef alarm
-# define alarm(seconds) /* empty */
-#endif
+#include <unistd.h>
 
 AT_SKEL_CC_IF([[
 /* A C++ ]AT_NAME_PREFIX[parse that simulates the C signature.  */