[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] skeletons: no longer define YYLSP_NEEDED.
From: |
Akim Demaille |
Subject: |
[PATCH 2/2] skeletons: no longer define YYLSP_NEEDED. |
Date: |
Wed, 27 Jun 2012 10:18:52 +0200 |
* data/c.m4, data/glr.cc: here.
* NEWS, TODO: Adjust.
---
NEWS | 5 +++++
TODO | 6 ------
data/c.m4 | 3 ---
data/glr.cc | 3 ---
4 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/NEWS b/NEWS
index 7eebe91..33fac14 100644
--- a/NEWS
+++ b/NEWS
@@ -65,6 +65,11 @@ GNU Bison NEWS
header, are removed, as they prevent the possibility of including several
generated headers from a single compilation unit.
+*** YYLSP_NEEDED
+
+ For the same reasons, the undocumented and unused macro YYLSP_NEEDED is no
+ longer defined.
+
* Noteworthy changes in release 2.5.1 (2012-06-05) [stable]
** Future changes:
diff --git a/TODO b/TODO
index 21ef4b9..4f628a2 100644
--- a/TODO
+++ b/TODO
@@ -126,12 +126,6 @@ The code bw glr.c and yacc.c is really alike, we can
certainly factor
some parts.
-* Yacc.c: CPP Macros
-
-Do some people use YYPURE, YYLSP_NEEDED like we do in the test suite?
-They should not: it is not documented. But if they need to, let's
-find something clean (not like YYLSP_NEEDED...).
-
* Report
** Figures
diff --git a/data/c.m4 b/data/c.m4
index 8c6c497..1f266a4 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -77,9 +77,6 @@ m4_define([b4_identification],
/* Pull parsers. */
#define YYPULL ]b4_pull_flag])[
-
-/* Using locations. */
-#define YYLSP_NEEDED ]b4_locations_flag[
]])
diff --git a/data/glr.cc b/data/glr.cc
index 0bc1f9f..8e46be3 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -239,9 +239,6 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
]b4_percent_define_ifdef([[location_type]], [],
[[#include "location.hh"]])[
-/* Using locations. */
-#define YYLSP_NEEDED ]b4_locations_flag[
-
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG ]b4_debug_flag[
--
1.7.11.1