From: Akim Demaille Date: Mon, 25 Jun 2012 14:55:11 +0000 (+0200) Subject: skeletons: no longer define YYLSP_NEEDED. X-Git-Tag: v2.6~43 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/694af10cb7670fcbe198685d13d5db7f87a9b083?ds=inline skeletons: no longer define YYLSP_NEEDED. * data/c.m4, data/glr.cc: here. * NEWS, TODO: Adjust. --- 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[