]> git.saurik.com Git - bison.git/commitdiff
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 11:54:09 +0000 (12:54 +0100)
* data/yacc.c, doc/bison.texinfo: Reword to avoid having to
disable that check.
* cfg.mk: No longer skip this test.

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

diff --git a/cfg.mk b/cfg.mk
index 0c539cb6193b669683cfce26945f81f6c09408f4..5f8958b03bb8d6bb05b9e8038980f2124f42a4ea 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -37,7 +37,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 d59caf34caf94b2106a3cc6d7c3017675913e2d7..19b5331db0acd06bff6d2023190a15cbb65cd9a7 100644 (file)
@@ -535,19 +535,19 @@ 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)              \
+#   define YYCOPY(Dst, Src, Count)              \
       do                                        \
         {                                       \
           YYSIZE_T yyi;                         \
           for (yyi = 0; yyi < (Count); yyi++)   \
-            (To)[yyi] = (From)[yyi];            \
+            (Dst)[yyi] = (Src)[yyi];            \
         }                                       \
       while (YYID (0))
 #  endif
index 7fb051553684245f3a40256a2a661468c8e96e68..62471f469f674db4dfae981a29d81dcd4dd4d39e 100644 (file)
@@ -4194,7 +4194,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