From 8c4a1163ee7230e6e7498b13727860274034225a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 24 Sep 2018 20:50:08 +0200 Subject: [PATCH] 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. --- data/bison.m4 | 4 ++-- data/glr.c | 4 ++-- data/glr.cc | 2 +- data/lalr1.cc | 4 ++-- data/lalr1.java | 2 +- data/location.cc | 4 ++-- data/stack.hh | 5 ++--- data/yacc.c | 4 ++-- 8 files changed, 14 insertions(+), 15 deletions(-) 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