bison-patches
[Top][All Lists]
Advanced

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

[PATCH] Remove trailing blanks.


From: Akim Demaille
Subject: [PATCH] Remove trailing blanks.
Date: Thu, 19 Feb 2009 21:12:47 -0000

The epilogue has its own ending \n, no need to add another.

        * data/glr.c, data/lalr1.java, data/yacc.c: dnl when outputing the
        epilogue.
        * data/glr.cc: dnl when extending the epilogue.
        Remove stray "private:".
---
 ChangeLog       |   11 +++++++++++
 data/glr.c      |   10 ++++------
 data/glr.cc     |    5 -----
 data/lalr1.java |    2 +-
 data/yacc.c     |    3 +--
 5 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ef97e9b..a3d1da5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2009-02-19  Akim Demaille  <address@hidden>
 
+       Remove trailing blanks.
+       The epilogue has its own ending 
+       , no need to add another.
+       
+       * data/glr.c, data/lalr1.java, data/yacc.c: dnl when outputing the
+       epilogue.
+       * data/glr.cc: dnl when extending the epilogue.
+       Remove stray "private:".
+
+2009-02-19  Akim Demaille  <address@hidden>
+
        Use b4_c_modern.
        * data/c.m4 (b4_c_function_decl): Here.
 
diff --git a/data/glr.c b/data/glr.c
index 35c5419..bf1f1a2 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -158,7 +158,7 @@ m4_changecom()
 m4_divert_push(0)dnl
 @output(b4_parser_file_name@)@
 b4_copyright([Skeleton implementation for Bison GLR parsers in C],
-  [2002, 2003, 2004, 2005, 2006])
+             [2002, 2003, 2004, 2005, 2006])
 [
 /* C GLR parser skeleton written by Paul Hilfinger.  */
 
@@ -2575,9 +2575,7 @@ yypdumpstack (yyGLRStack* yystackp)
   YYFPRINTF (stderr, "\n");
 }
 #endif
-]
-
-b4_epilogue
+]b4_epilogue[]dnl
 dnl
 dnl glr.cc produces its own header.
 dnl
@@ -2585,7 +2583,7 @@ m4_if(b4_skeleton, ["glr.c"],
 [b4_defines_if(
 address@hidden(b4_spec_defines_file@)@
 b4_copyright([Skeleton interface for Bison GLR parsers in C],
-  [2002, 2003, 2004, 2005, 2006])
+             [2002, 2003, 2004, 2005, 2006])
 
 b4_shared_declarations
 
@@ -2595,5 +2593,5 @@ b4_pure_if([],
 b4_locations_if([b4_pure_if([],
 [extern YYLTYPE ]b4_prefix[lloc;])
 ])
-])])
+])])[]dnl
 m4_divert_pop(0)
diff --git a/data/glr.cc b/data/glr.cc
index 51460fa..fa1dfd3 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -199,7 +199,6 @@ m4_pushdef([b4_parse_param], 
m4_defn([b4_parse_param_orig]))dnl
 #endif
 ]m4_popdef([b4_parse_param])dnl
 b4_namespace_close[
-
 ]])
 
 
@@ -311,14 +310,11 @@ b4_user_stype
     /// Set the current debugging level.
     void set_debug_level (debug_level_type l);
 
-  private:
-
   public:
     /// Report a syntax error.
     /// \param loc    where the syntax error is found.
     /// \param msg    a description of the syntax error.
     virtual void error (const location_type& loc, const std::string& msg);
-  private:
 
 #if YYDEBUG
   public:
@@ -342,7 +338,6 @@ b4_user_stype
     std::ostream* yycdebug_;
 #endif
 
-
     /// \brief Reclaim the memory associated to a symbol.
     /// \param yymsg        Why this token is reclaimed.
     /// \param yytype       The symbol type.
diff --git a/data/lalr1.java b/data/lalr1.java
index b89a423..11ed606 100644
--- a/data/lalr1.java
+++ b/data/lalr1.java
@@ -826,5 +826,5 @@ b4_percent_code_get[]dnl
 
 }
 
-b4_epilogue
+b4_epilogue[]dnl
 m4_divert_pop(0)dnl
diff --git a/data/yacc.c b/data/yacc.c
index 7a20cbb..6a547fc 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -1596,8 +1596,7 @@ yypushreturn:
   return YYID (yyresult);
 }
 
-
-]b4_epilogue
+]b4_epilogue[]dnl
 b4_defines_if(
 address@hidden(b4_spec_defines_file@)@
 b4_copyright([Interface for Bison's Yacc-like parsers in C])dnl'
-- 
1.6.2.rc0.35.g1b53





reply via email to

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