bison-patches
[Top][All Lists]
Advanced

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

[PATCH] Improve display of directives.


From: Akim Demaille
Subject: [PATCH] Improve display of directives.
Date: Tue, 11 Nov 2008 14:45:49 -0000

        * etc/bench.pl.in (parse_term): Don't add useless eol.
---
 ChangeLog       |    5 +++++
 etc/bench.pl.in |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4216d42..5e976a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-11  Akim Demaille  <address@hidden>
 
+       Improve display of directives.
+       * etc/bench.pl.in (parse_term): Don't add useless eol.
+
+2008-11-11  Akim Demaille  <address@hidden>
+
        Use string_cast in the bench.
        * etc/bench.pl.in (generate_grammar_list): Define and use
        string_cast.
diff --git a/etc/bench.pl.in b/etc/bench.pl.in
index 1ee98b7..9fae4c4 100755
--- a/etc/bench.pl.in
+++ b/etc/bench.pl.in
@@ -995,7 +995,7 @@ sub parse_term ()
         {
           for my $lhs (@lhs)
             {
-              push @res, "$lhs\n$rhs";
+              push @res, $lhs . ($lhs && $rhs ? "\n" : "") . $rhs;
             }
         }
     }
-- 
1.6.0.2.588.g3102





reply via email to

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