bison-patches
[Top][All Lists]
Advanced

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

[PATCH 4/4] style: pacify syntax-check


From: Akim Demaille
Subject: [PATCH 4/4] style: pacify syntax-check
Date: Tue, 22 Oct 2019 18:58:06 +0200

* doc/.gitignore, src/complain.c, src/getargs.c,
* src/output.c: here.
---
 doc/.gitignore | 2 +-
 gnulib         | 2 +-
 src/complain.c | 2 +-
 src/getargs.c  | 8 ++++----
 src/output.c   | 3 ++-
 5 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/doc/.gitignore b/doc/.gitignore
index 052a02a7..14bbce2c 100644
--- a/doc/.gitignore
+++ b/doc/.gitignore
@@ -32,4 +32,4 @@
 /yacc.1
 /relocatable.texi
 /figs/*.eps
-/figs/*.svg
\ No newline at end of file
+/figs/*.svg
diff --git a/gnulib b/gnulib
index ac7fd666..fffc8765 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit ac7fd66617c1a3ace838b8660e70930c4182c1e0
+Subproject commit fffc8765455be047f97e632db7f30e1883c566ad
diff --git a/src/complain.c b/src/complain.c
index aba63e3f..ced908e3 100644
--- a/src/complain.c
+++ b/src/complain.c
@@ -107,7 +107,7 @@ flush (FILE *out)
 | --warnings's handling.  |
 `------------------------*/
 
-ARGMATCH_DEFINE_GROUP(warning, warnings)
+ARGMATCH_DEFINE_GROUP (warning, warnings)
 
 static const argmatch_warning_doc argmatch_warning_docs[] =
 {
diff --git a/src/getargs.c b/src/getargs.c
index 8c66c925..815df331 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -166,7 +166,7 @@ enum color
     color_auto
   };
 
-ARGMATCH_DEFINE_GROUP(color, enum color)
+ARGMATCH_DEFINE_GROUP (color, enum color)
 
 static const argmatch_color_doc argmatch_color_docs[] =
 {
@@ -202,7 +202,7 @@ const argmatch_color_group_type argmatch_color_group =
 | --report's handling.  |
 `----------------------*/
 
-ARGMATCH_DEFINE_GROUP(report, enum report)
+ARGMATCH_DEFINE_GROUP (report, enum report)
 
 static const argmatch_report_doc argmatch_report_docs[] =
 {
@@ -240,7 +240,7 @@ const argmatch_report_group_type argmatch_report_group =
 | --trace's handling.  |
 `---------------------*/
 
-ARGMATCH_DEFINE_GROUP(trace, enum trace)
+ARGMATCH_DEFINE_GROUP (trace, enum trace)
 
 static const argmatch_trace_doc argmatch_trace_docs[] =
 {
@@ -299,7 +299,7 @@ const argmatch_trace_group_type argmatch_trace_group =
 | --feature's handling.  |
 `-----------------------*/
 
-ARGMATCH_DEFINE_GROUP(feature, enum feature)
+ARGMATCH_DEFINE_GROUP (feature, enum feature)
 
 static const argmatch_feature_doc argmatch_feature_docs[] =
 {
diff --git a/src/output.c b/src/output.c
index 5eb1ffd1..c5ebe750 100644
--- a/src/output.c
+++ b/src/output.c
@@ -369,7 +369,8 @@ user_actions_output (FILE *out)
   for (rule_number r = 0; r < nrules; ++r)
     if (rules[r].action)
       {
-        fprintf (out, "%s(%d, [",
+        /* The useless "" is there to pacify syntax-check.  */
+        fprintf (out, "%s""(%d, [",
                  rules[r].is_predicate ? "b4_predicate_case" : "b4_case",
                  r + 1);
         if (!no_lines_flag)
-- 
2.23.0




reply via email to

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