bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

style: pacify syntax-check


From: Akim Demaille
Subject: style: pacify syntax-check
Date: Wed, 20 Nov 2019 07:26:38 +0100

commit ad32ec64c8f3edccfb7f44606bbb85f97b10bb16
Author: Akim Demaille <address@hidden>
Date:   Tue Nov 19 21:24:47 2019 +0100

    style: pacify syntax-check
    
    * cfg.mk: No need to translate *.md files.
    * data/skeletons/glr.c, data/skeletons/yacc.c: Fix space issues.

diff --git a/cfg.mk b/cfg.mk
index 1170d6f3..48c54942 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -156,7 +156,7 @@ exclude = \
 $(call exclude,                                                                
 \
   bindtextdomain=^lib/main.c$$                                                 
 \
   cast_of_argument_to_free=^src/muscle-tab.c$$                                 
 \
-  po_check=^po/POTFILES.in$$                                                   
 \
+  po_check=(^po/POTFILES.in|.md)$$                                             
\
   preprocessor_indentation=^data/|^lib/|^src/parse-gram.[ch]$$                 
 \
   program_name=^lib/main.c$$                                                   
 \
   prohibit_always-defined_macros=^data/skeletons/yacc.c$$                      
 \
diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c
index 2782ee8b..a3a9a711 100644
--- a/data/skeletons/glr.c
+++ b/data/skeletons/glr.c
@@ -1104,9 +1104,9 @@ yyinitStateSet (yyGLRStateSet* yyset)
   yyset->yysize = 1;
   yyset->yycapacity = 16;
   yyset->yystates
-    = YY_CAST(yyGLRState**,
-              YYMALLOC (YY_CAST (size_t, yyset->yycapacity)
-                        * sizeof yyset->yystates[0]));
+    = YY_CAST (yyGLRState**,
+               YYMALLOC (YY_CAST (size_t, yyset->yycapacity)
+                         * sizeof yyset->yystates[0]));
   if (! yyset->yystates)
     return yyfalse;
   yyset->yystates[0] = YY_NULLPTR;
@@ -1483,7 +1483,8 @@ yyglrReduce (yyGLRStack* yystackp, ptrdiff_t yyk, 
yyRuleNum yyrule,
       YYDPRINTF ((stderr,
                   "Reduced stack %ld by rule %d (line %d); action deferred.  "
                   "Now in state %d.\n",
-                  YY_CAST(long, yyk), yyrule - 1, yyrline[yyrule - 1], 
yynewLRState));
+                  YY_CAST (long, yyk), yyrule - 1, yyrline[yyrule - 1],
+                  yynewLRState));
       for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
         if (yyi != yyk && yystackp->yytops.yystates[yyi] != YY_NULLPTR)
           {
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 0074df9a..e970189c 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -835,8 +835,9 @@ yy_lac_stack_realloc (YYPTRDIFF_T *yycapacity, YYPTRDIFF_T 
yyadd,
       if (YYMAXDEPTH < yyalloc)
         yyalloc = YYMAXDEPTH;
       yybottom_new =
-        YY_CAST(yy_state_t *,
-                YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yyalloc * YYSIZEOF 
(*yybottom_new))));
+        YY_CAST (yy_state_t *,
+                 YYSTACK_ALLOC (YY_CAST (YYSIZE_T,
+                                         yyalloc * YYSIZEOF (*yybottom_new))));
       if (!yybottom_new)
         {
           YYDPRINTF ((stderr, "%srealloc failed%s", yydebug_prefix,
diff --git a/src/parse-gram.c b/src/parse-gram.c
index 493ed525..bea5df29 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.4.90.16-c313.  */
+/* A Bison parser, made by GNU Bison 3.4.90.26-44cd.  */
 
 /* Bison implementation for Yacc-like parsers in C
 
@@ -48,7 +48,7 @@
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "3.4.90.16-c313"
+#define YYBISON_VERSION "3.4.90.26-44cd"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "yacc.c"
@@ -1236,8 +1236,9 @@ yy_lac_stack_realloc (YYPTRDIFF_T *yycapacity, 
YYPTRDIFF_T yyadd,
       if (YYMAXDEPTH < yyalloc)
         yyalloc = YYMAXDEPTH;
       yybottom_new =
-        YY_CAST(yy_state_t *,
-                YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yyalloc * YYSIZEOF 
(*yybottom_new))));
+        YY_CAST (yy_state_t *,
+                 YYSTACK_ALLOC (YY_CAST (YYSIZE_T,
+                                         yyalloc * YYSIZEOF (*yybottom_new))));
       if (!yybottom_new)
         {
           YYDPRINTF ((stderr, "%srealloc failed%s", yydebug_prefix,
diff --git a/src/parse-gram.h b/src/parse-gram.h
index 243f0fca..2c44b81b 100644
--- a/src/parse-gram.h
+++ b/src/parse-gram.h
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.4.90.16-c313.  */
+/* A Bison parser, made by GNU Bison 3.4.90.26-44cd.  */
 
 /* Bison interface for Yacc-like parsers in C
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]