[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/6] c: make YYLOCATION_PRINT public
From: |
Akim Demaille |
Subject: |
[PATCH 0/6] c: make YYLOCATION_PRINT public |
Date: |
Tue, 9 Feb 2021 07:15:40 +0100 |
The YY_LOCATION_PRINT macro was never documented, and its name clearly
states that this is a private internal detail.
However it is very useful (and even leaked by accident into a piece of
code in an example in the documentation). So let's make it public as
YYLOCATION_PRINT.
Akim Demaille (6):
c: stop defining YY_LOCATION_PRINT when locations are not enabled
examples: do not rely on YY_LOCATION_PRINT
c: rename YY_LOCATION_PRINT as YYLOCATION_PRINT and make it public
examples: use YYLOCATION_PRINT
examples: improve some function prototypes
doc: printing locations
NEWS | 15 ++++++--
TODO | 4 ---
data/skeletons/c.m4 | 45 ++++++++++++++---------
data/skeletons/glr.c | 2 +-
data/skeletons/glr2.cc | 2 --
data/skeletons/yacc.c | 2 +-
doc/bison.texi | 64 ++++++++++++++++++++++++++-------
examples/c/bistromathic/parse.y | 32 ++++++++++++++---
examples/c/glr/c++-types.y | 24 ++++++-------
examples/c/lexcalc/parse.y | 6 ++--
10 files changed, 136 insertions(+), 60 deletions(-)
--
2.30.0
- [PATCH 0/6] c: make YYLOCATION_PRINT public,
Akim Demaille <=
- [PATCH 1/6] c: stop defining YY_LOCATION_PRINT when locations are not enabled, Akim Demaille, 2021/02/09
- [PATCH 2/6] examples: do not rely on YY_LOCATION_PRINT, Akim Demaille, 2021/02/09
- [PATCH 3/6] c: rename YY_LOCATION_PRINT as YYLOCATION_PRINT and make it public, Akim Demaille, 2021/02/09
- [PATCH 4/6] examples: use YYLOCATION_PRINT, Akim Demaille, 2021/02/09
- [PATCH 5/6] examples: improve some function prototypes, Akim Demaille, 2021/02/09
- [PATCH 6/6] doc: printing locations, Akim Demaille, 2021/02/09