diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-18 18:48:33 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-18 18:48:33 +0100 |
commit | eff97eb54a1ff17da66f9d1c746eb009feeba889 (patch) | |
tree | 6ee8853cff7856ef106eecb7b000d7471b6614fb | |
parent | 108df813c466663f80ed3cd5c74ec114369863d7 (diff) | |
download | bison-eff97eb54a1ff17da66f9d1c746eb009feeba889.tar.gz |
maint: fix some syntax-check issues.
* cfg.mk (local-checks-to-skip): Remove
sc_prohibit_quotearg_without_use, sc_prohibit_strcmp,
sc_unmarked_diagnostics, sc_useless_cpp_parens.
(sc_unmarked_diagnostics): Skip DJGPP.
* data/yacc.c, src/LR0.c, src/closure.c,
* src/flex-scanner.h, src/gram.c, src/lalr.c,
* src/print-xml.c, src/print.c, src/print_graph.c,
* src/reader.c, src/reduce.c, src/tables.c:
Don't use parens with cpp's defined.
Remove useless includes.
-rw-r--r-- | cfg.mk | 6 | ||||
-rw-r--r-- | data/yacc.c | 2 | ||||
-rw-r--r-- | src/LR0.c | 1 | ||||
-rw-r--r-- | src/closure.c | 1 | ||||
-rw-r--r-- | src/flex-scanner.h | 6 | ||||
-rw-r--r-- | src/gram.c | 2 | ||||
-rw-r--r-- | src/lalr.c | 1 | ||||
-rw-r--r-- | src/print-xml.c | 1 | ||||
-rw-r--r-- | src/print.c | 1 | ||||
-rw-r--r-- | src/print_graph.c | 2 | ||||
-rw-r--r-- | src/reader.c | 1 | ||||
-rw-r--r-- | src/reduce.c | 1 | ||||
-rw-r--r-- | src/tables.c | 1 |
13 files changed, 6 insertions, 20 deletions
@@ -44,10 +44,7 @@ local-checks-to-skip = \ sc_prohibit_doubled_word \ sc_prohibit_empty_lines_at_EOF \ sc_prohibit_magic_number_exit \ - sc_prohibit_quotearg_without_use \ - sc_prohibit_strcmp \ - sc_unmarked_diagnostics \ - sc_useless_cpp_parens + sc_prohibit_strcmp # The local directory containing the checked-out copy of gnulib used in # this release. Used solely to get a date for the "announcement" target. @@ -66,3 +63,4 @@ update-copyright-env = \ exclude_file_name_regexp--sc_space_tab = ^tests/(input|c\+\+)\.at$$ exclude_file_name_regexp--sc_require_config_h_first = \ ^(lib/yyerror|data/(glr|yacc))\.c$$ +exclude_file_name_regexp--sc_unmarked_diagnostics = ^djgpp/ diff --git a/data/yacc.c b/data/yacc.c index b6137c2b..5f4ddafb 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -1952,7 +1952,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if ]b4_lac_if([[1]], [[!defined(yyoverflow) || YYERROR_VERBOSE]])[ +#if ]b4_lac_if([[1]], [[!defined yyoverflow || YYERROR_VERBOSE]])[ /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -26,7 +26,6 @@ #include "system.h" #include <bitset.h> -#include <quotearg.h> #include "LR0.h" #include "closure.h" diff --git a/src/closure.c b/src/closure.c index 2bce2880..929aa777 100644 --- a/src/closure.c +++ b/src/closure.c @@ -24,7 +24,6 @@ #include <bitset.h> #include <bitsetv-print.h> #include <bitsetv.h> -#include <quotearg.h> #include "closure.h" #include "derives.h" diff --git a/src/flex-scanner.h b/src/flex-scanner.h index 8344cd10..572464af 100644 --- a/src/flex-scanner.h +++ b/src/flex-scanner.h @@ -51,11 +51,11 @@ int FLEX_PREFIX (lex_destroy) (void); versions according to the Flex manual) leak memory if yylex_destroy is not invoked. However, yylex_destroy is not defined before Flex 2.5.9, so give an implementation here that at least appears to work with Flex 2.5.4. */ -#if !defined(YY_FLEX_MAJOR_VERSION) || YY_FLEX_MAJOR_VERSION < 2 \ +#if !defined YY_FLEX_MAJOR_VERSION || YY_FLEX_MAJOR_VERSION < 2 \ || (YY_FLEX_MAJOR_VERSION == 2 \ - && (!defined(YY_FLEX_MINOR_VERSION) || YY_FLEX_MINOR_VERSION < 5 \ + && (!defined YY_FLEX_MINOR_VERSION || YY_FLEX_MINOR_VERSION < 5 \ || (YY_FLEX_MINOR_VERSION == 5 \ - && (!defined(YY_FLEX_SUBMINOR_VERSION) \ + && (!defined YY_FLEX_SUBMINOR_VERSION \ || YY_FLEX_SUBMINOR_VERSION < 9)))) # define yylex_destroy() yy_delete_buffer (YY_CURRENT_BUFFER) #endif @@ -21,8 +21,6 @@ #include <config.h> #include "system.h" -#include <quotearg.h> - #include "complain.h" #include "getargs.h" #include "gram.h" @@ -27,7 +27,6 @@ #include <bitset.h> #include <bitsetv.h> -#include <quotearg.h> #include "LR0.h" #include "complain.h" diff --git a/src/print-xml.c b/src/print-xml.c index ab5ea00f..ce71e158 100644 --- a/src/print-xml.c +++ b/src/print-xml.c @@ -23,7 +23,6 @@ #include <stdarg.h> #include <bitset.h> -#include <quotearg.h> #include "LR0.h" #include "closure.h" diff --git a/src/print.c b/src/print.c index 99dea233..58a9016a 100644 --- a/src/print.c +++ b/src/print.c @@ -22,7 +22,6 @@ #include "system.h" #include <bitset.h> -#include <quotearg.h> #include "LR0.h" #include "closure.h" diff --git a/src/print_graph.c b/src/print_graph.c index 68d7eb01..8dd8db43 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -20,8 +20,6 @@ #include <config.h> #include "system.h" -#include <quotearg.h> - #include "LR0.h" #include "closure.h" #include "complain.h" diff --git a/src/reader.c b/src/reader.c index 107fe901..85f686ef 100644 --- a/src/reader.c +++ b/src/reader.c @@ -22,7 +22,6 @@ #include "system.h" #include <quote.h> -#include <quotearg.h> #include "complain.h" #include "conflicts.h" diff --git a/src/reduce.c b/src/reduce.c index e6af15e0..de046ddb 100644 --- a/src/reduce.c +++ b/src/reduce.c @@ -29,7 +29,6 @@ #include "system.h" #include <bitset.h> -#include <quotearg.h> #include "complain.h" #include "files.h" diff --git a/src/tables.c b/src/tables.c index 35d0c9e4..f22ec9aa 100644 --- a/src/tables.c +++ b/src/tables.c @@ -22,7 +22,6 @@ #include "system.h" #include <bitsetv.h> -#include <quotearg.h> #include "complain.h" #include "conflicts.h" |