maint: address sc_prohibit_doubled_word.
authorAkim Demaille <demaille@gostai.com>
Sun, 19 Feb 2012 11:54:09 +0000 (12:54 +0100)
committerAkim Demaille <demaille@gostai.com>
Sun, 19 Feb 2012 17:26:01 +0000 (18:26 +0100)
* 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 762caaf6393d71d740ad86855a15f5000721d103)

Conflicts:

data/yacc.c

cfg.mk
data/yacc.c
doc/bison.texinfo

diff --git a/cfg.mk b/cfg.mk
index 358631d..b21383e 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -41,7 +41,6 @@ local-checks-to-skip = \
   sc_immutable_NEWS                    \
   sc_prohibit_always_true_header_tests \
   sc_prohibit_atoi_atof                        \
-  sc_prohibit_doubled_word             \
   sc_prohibit_strcmp
 
 # The local directory containing the checked-out copy of gnulib used in
index d18b269..96eea2a 100644 (file)
@@ -534,20 +534,20 @@ union yyalloc
 #endif
 
 #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.  */
 # ifndef YYCOPY
 #  if defined __GNUC__ && 1 < __GNUC__
-#   define YYCOPY(To, From, Count) \
-      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+#   define YYCOPY(Dst, Src, Count) \
+      __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
 #  else
-#   define YYCOPY(To, From, Count)             \
-      do                                       \
-       {                                       \
-         YYSIZE_T yyi;                         \
-         for (yyi = 0; yyi < (Count); yyi++)   \
-           (To)[yyi] = (From)[yyi];            \
-       }                                       \
+#   define YYCOPY(Dst, Src, Count)              \
+      do                                        \
+        {                                       \
+          YYSIZE_T yyi;                         \
+          for (yyi = 0; yyi < (Count); yyi++)   \
+            (Dst)[yyi] = (Src)[yyi];            \
+        }                                       \
       while (YYID (0))
 #  endif
 # endif
index 329d81d..3e9333a 100644 (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:
 @example
 @group
-if-stmt: IF '(' expr ')' THEN then.stmt ';'
+if-stmt: "if" '(' expr ')' "then" then.stmt ';'
   @{ $[if-stmt] = new_if_stmt ($expr, $[then.stmt]); @}
 @end group
 @end example