mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
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.
This commit is contained in:
6
cfg.mk
6
cfg.mk
@@ -44,10 +44,7 @@ local-checks-to-skip = \
|
|||||||
sc_prohibit_doubled_word \
|
sc_prohibit_doubled_word \
|
||||||
sc_prohibit_empty_lines_at_EOF \
|
sc_prohibit_empty_lines_at_EOF \
|
||||||
sc_prohibit_magic_number_exit \
|
sc_prohibit_magic_number_exit \
|
||||||
sc_prohibit_quotearg_without_use \
|
sc_prohibit_strcmp
|
||||||
sc_prohibit_strcmp \
|
|
||||||
sc_unmarked_diagnostics \
|
|
||||||
sc_useless_cpp_parens
|
|
||||||
|
|
||||||
# The local directory containing the checked-out copy of gnulib used in
|
# The local directory containing the checked-out copy of gnulib used in
|
||||||
# this release. Used solely to get a date for the "announcement" target.
|
# 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_space_tab = ^tests/(input|c\+\+)\.at$$
|
||||||
exclude_file_name_regexp--sc_require_config_h_first = \
|
exclude_file_name_regexp--sc_require_config_h_first = \
|
||||||
^(lib/yyerror|data/(glr|yacc))\.c$$
|
^(lib/yyerror|data/(glr|yacc))\.c$$
|
||||||
|
exclude_file_name_regexp--sc_unmarked_diagnostics = ^djgpp/
|
||||||
|
|||||||
@@ -1952,7 +1952,7 @@ yyabortlab:
|
|||||||
yyresult = 1;
|
yyresult = 1;
|
||||||
goto yyreturn;
|
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. |
|
| yyexhaustedlab -- memory exhaustion comes here. |
|
||||||
`-------------------------------------------------*/
|
`-------------------------------------------------*/
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <bitsetv-print.h>
|
#include <bitsetv-print.h>
|
||||||
#include <bitsetv.h>
|
#include <bitsetv.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
#include "derives.h"
|
#include "derives.h"
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ int FLEX_PREFIX (lex_destroy) (void);
|
|||||||
versions according to the Flex manual) leak memory if yylex_destroy is not
|
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
|
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. */
|
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 \
|
|| (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 \
|
|| (YY_FLEX_MINOR_VERSION == 5 \
|
||||||
&& (!defined(YY_FLEX_SUBMINOR_VERSION) \
|
&& (!defined YY_FLEX_SUBMINOR_VERSION \
|
||||||
|| YY_FLEX_SUBMINOR_VERSION < 9))))
|
|| YY_FLEX_SUBMINOR_VERSION < 9))))
|
||||||
# define yylex_destroy() yy_delete_buffer (YY_CURRENT_BUFFER)
|
# define yylex_destroy() yy_delete_buffer (YY_CURRENT_BUFFER)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
#include "getargs.h"
|
#include "getargs.h"
|
||||||
#include "gram.h"
|
#include "gram.h"
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <bitsetv.h>
|
#include <bitsetv.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <quote.h>
|
#include <quote.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
#include "conflicts.h"
|
#include "conflicts.h"
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <bitset.h>
|
#include <bitset.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include <bitsetv.h>
|
#include <bitsetv.h>
|
||||||
#include <quotearg.h>
|
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
#include "conflicts.h"
|
#include "conflicts.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user