summaryrefslogtreecommitdiff
path: root/examples/c/lexcalc/parse.y
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-02-03 08:21:35 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-02-09 06:48:02 +0100
commitc80b404dfa8a26659f0df5ba43d48f58a12ab148 (patch)
tree997f1ce3dcfc7b3163f59e839439281104378773 /examples/c/lexcalc/parse.y
parent96b881094b114685413c63774117e5186627263a (diff)
downloadbison-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