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
