maint: address sc_prohibit_doubled_word.

* data/yacc.c, doc/bison.texinfo: Reword to avoid having to
	disable that check.
	* cfg.mk: No longer skip this test.
(cherry picked from commit 762caaf639)

Conflicts:

	data/yacc.c
This commit is contained in:
Akim Demaille
2012-02-19 12:54:09 +01:00
parent 43e9e2a113
commit 14f4455e43
3 changed files with 11 additions and 12 deletions

1
cfg.mk
View File

@@ -41,7 +41,6 @@ local-checks-to-skip = \
sc_immutable_NEWS \ sc_immutable_NEWS \
sc_prohibit_always_true_header_tests \ sc_prohibit_always_true_header_tests \
sc_prohibit_atoi_atof \ sc_prohibit_atoi_atof \
sc_prohibit_doubled_word \
sc_prohibit_strcmp sc_prohibit_strcmp
# The local directory containing the checked-out copy of gnulib used in # The local directory containing the checked-out copy of gnulib used in

View File

@@ -534,20 +534,20 @@ union yyalloc
#endif #endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from FROM to TO. The source and destination do /* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */ not overlap. */
# ifndef YYCOPY # ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__ # if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \ # define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From))) __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# else # else
# define YYCOPY(To, From, Count) \ # define YYCOPY(Dst, Src, Count) \
do \ do \
{ \ { \
YYSIZE_T yyi; \ YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \ for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \ (Dst)[yyi] = (Src)[yyi]; \
} \ } \
while (YYID (0)) while (YYID (0))
# endif # endif
# endif # endif

View File

@@ -4092,7 +4092,7 @@ In references, in order to specify names containing dots and dashes, an explicit
bracketed syntax @code{$[name]} and @code{@@[name]} must be used: bracketed syntax @code{$[name]} and @code{@@[name]} must be used:
@example @example
@group @group
if-stmt: IF '(' expr ')' THEN then.stmt ';' if-stmt: "if" '(' expr ')' "then" then.stmt ';'
@{ $[if-stmt] = new_if_stmt ($expr, $[then.stmt]); @} @{ $[if-stmt] = new_if_stmt ($expr, $[then.stmt]); @}
@end group @end group
@end example @end example