bison-patches
[Top][All Lists]
Advanced

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

FYI: lalr1.cc: minor refactoring


From: Akim Demaille
Subject: FYI: lalr1.cc: minor refactoring
Date: Tue, 4 May 2010 15:29:12 +0200

Installed in master, makes no sense in 2.5.

From 19ad326be4a09a1c7ea6ce8bea5adaf90d1f8fae Mon Sep 17 00:00:00 2001
From: Akim Demaille <address@hidden>
Date: Wed, 14 Apr 2010 18:34:36 +0200
Subject: lalr1.cc: minor refactoring.

        * data/lalr1.cc: Don't issue empty namespaces.
---
 ChangeLog     |    5 +++++
 data/lalr1.cc |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8340bfd..4b9bb5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-05-04  Akim Demaille  <address@hidden>
 
+       lalr1.cc: minor refactoring.
+       * data/lalr1.cc: Don't issue empty namespaces.
+
+2010-05-04  Akim Demaille  <address@hidden>
+
        tests: fix %printer.
        Currently, there is no check that %printer ... <foo> (nor
        %destructor) is about an existing <foo> type.  This C++ test had
diff --git a/data/lalr1.cc b/data/lalr1.cc
index deab863..b0b075c 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -152,9 +152,9 @@ dnl FIXME: This is wrong, we want computed header guards.
 ]b4_locations_if([#include "location.hh"])[
 #include "stack.hh"
 
-]b4_namespace_open[
-]b4_variant_if([b4_variant_define])[
-]b4_namespace_close[
+]b4_variant_if([b4_namespace_open
+b4_variant_define
+b4_namespace_close])[
 
 /* Enabling traces.  */
 #ifndef YYDEBUG
-- 
1.7.0.5






reply via email to

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