[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
style: remove useless parens
From: |
Akim Demaille |
Subject: |
style: remove useless parens |
Date: |
Mon, 24 Sep 2018 21:32:58 +0200 |
commit 539135f2027215e78b592ab251370d2ebe47ecf7
Author: Akim Demaille <address@hidden>
Date: Mon Sep 24 20:50:08 2018 +0200
style: remove useless parens
* data/bison.m4, data/glr.c, data/glr.cc, data/lalr1.cc,
* data/lalr1.java, data/location.cc, data/yacc.c: Call b4_output_end
without parens.
diff --git a/data/bison.m4 b/data/bison.m4
index adc17543..7ff30c4c 100644
--- a/data/bison.m4
+++ b/data/bison.m4
@@ -76,8 +76,8 @@ m4_divert_push(0)dnl
])
-# b4_output_end()
-# ---------------
+# b4_output_end
+# -------------
# Output nothing, restore # as comment character (no expansions after #).
m4_define([b4_output_end],
[m4_divert_pop(0)
diff --git a/data/glr.c b/data/glr.c
index 386dff0f..8247af5b 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -203,7 +203,7 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C],
]b4_cpp_guard_open([b4_spec_defines_file])[
]b4_shared_declarations[
]b4_cpp_guard_close([b4_spec_defines_file])[
-]b4_output_end()
+]b4_output_end
])])
@@ -2579,4 +2579,4 @@ m4_if(b4_prefix, [yy], [],
#define yylloc ]b4_prefix[lloc]])])[
]b4_epilogue[]dnl
-b4_output_end()
+b4_output_end
diff --git a/data/glr.cc b/data/glr.cc
index 2ce14bc0..b5945193 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -336,7 +336,7 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
]b4_cpp_guard_open([b4_spec_defines_file])[
]b4_shared_declarations[
]b4_cpp_guard_close([b4_spec_defines_file])[
-]b4_output_end()])
+]b4_output_end])
# Let glr.c (and b4_shared_declarations) believe that the user
# arguments include the parser itself.
diff --git a/data/lalr1.cc b/data/lalr1.cc
index eb4d6ca0..47a76a05 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -405,7 +405,7 @@ b4_copyright([Skeleton interface for Bison LALR(1) parsers
in C++])
]b4_cpp_guard_open([b4_spec_defines_file])[
]b4_shared_declarations(hh)[
]b4_cpp_guard_close([b4_spec_defines_file])
-b4_output_end()
+b4_output_end
])
@@ -1198,7 +1198,7 @@ b4_error_verbose_if([state_type yystate, const
symbol_type& yyla],
]b4_token_ctor_if([], [b4_yytranslate_define([cc])])[
]b4_namespace_close[
]b4_epilogue[]dnl
-b4_output_end()
+b4_output_end
m4_popdef([b4_copyright_years])dnl
diff --git a/data/lalr1.java b/data/lalr1.java
index 7bf8e7fc..86798dc0 100644
--- a/data/lalr1.java
+++ b/data/lalr1.java
@@ -1068,4 +1068,4 @@ b4_percent_code_get[]dnl
}
b4_epilogue[]dnl
-b4_output_end()
+b4_output_end
diff --git a/data/location.cc b/data/location.cc
index 07f1ca62..f4d8dd22 100644
--- a/data/location.cc
+++ b/data/location.cc
@@ -308,7 +308,7 @@ b4_copyright([Positions for Bison parsers in C++])[
]b4_position_define[
]b4_namespace_close[
]b4_cpp_guard_close([b4_dir_prefix[]position.hh])
-b4_output_end()
+b4_output_end
b4_output_begin([b4_dir_prefix[]location.hh])
@@ -327,7 +327,7 @@ b4_copyright([Locations for Bison parsers in C++])[
]b4_location_define[
]b4_namespace_close[
]b4_cpp_guard_close([b4_dir_prefix[]location.hh])
-b4_output_end()
+b4_output_end
])
diff --git a/data/stack.hh b/data/stack.hh
index f74cdfd2..0ee2208b 100644
--- a/data/stack.hh
+++ b/data/stack.hh
@@ -148,8 +148,7 @@ b4_copyright([Stack handling for Bison parsers in C++])[
]b4_stack_define[
]b4_namespace_close[
-]b4_cpp_guard_close([b4_dir_prefix[]stack.hh])
-b4_output_end()
-])
+]b4_cpp_guard_close([b4_dir_prefix[]stack.hh])[
+]b4_output_end])
m4_popdef([b4_copyright_years])
diff --git a/data/yacc.c b/data/yacc.c
index 15b0c160..34d719b0 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -1908,12 +1908,12 @@ yypushreturn:]])[
return yyresult;
}
]b4_epilogue[]dnl
-b4_output_end()
+b4_output_end
b4_defines_if(
[b4_output_begin([b4_spec_defines_file])[
]b4_copyright([Bison interface for Yacc-like parsers in C])[
]b4_shared_declarations[
-]b4_output_end()
+]b4_output_end
])# b4_defines_if
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- style: remove useless parens,
Akim Demaille <=