From 694af10cb7670fcbe198685d13d5db7f87a9b083 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 25 Jun 2012 16:55:11 +0200 Subject: [PATCH] skeletons: no longer define YYLSP_NEEDED. * 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 7eebe910..33fac145 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 21ef4b91..4f628a20 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 8c6c4979..1f266a47 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 0bc1f9fa..8e46be3d 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[ -- 2.45.2