diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-02-03 08:21:35 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-02-09 06:48:02 +0100 |
commit | c80b404dfa8a26659f0df5ba43d48f58a12ab148 (patch) | |
tree | 997f1ce3dcfc7b3163f59e839439281104378773 /examples/c/lexcalc/parse.y | |
parent | 96b881094b114685413c63774117e5186627263a (diff) | |
download | bison-c80b404dfa8a26659f0df5ba43d48f58a12ab148.tar.gz |
c: rename YY_LOCATION_PRINT as YYLOCATION_PRINT and make it public
It is very helpful to be able to look at the locations in the debug
traces, let's provide the users with (i) a means to do that for their
location types, and (ii) a public macro to print locations when debug
traces are enabled.
* data/skeletons/c.m4 (b4_yy_location_print_define): Rename as...
(b4_yylocation_print_define): this.
Define YYLOCATION_PRINT instead of YY_LOCATION_PRINT.
Ensure backward compatibility for those who might have defined/used
YY_LOCATION_PRINT in spite the warnings.
Adjust dependencies.
* data/skeletons/glr2.cc: We don't use YYLOCATION_PRINT here.
Diffstat (limited to 'examples/c/lexcalc/parse.y')
0 files changed, 0 insertions, 0 deletions