]> git.saurik.com Git - bison.git/commit - data/c.m4
yacc.c, glr.c: a better YY_LOCATION_PRINT
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 5 Nov 2012 15:58:24 +0000 (16:58 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 6 Nov 2012 12:36:24 +0000 (13:36 +0100)
commit3237f570964d5f6cccad349f946dd301448e206e
tree21bfd3660f1eab3c696a4002ae92f09d719e573a
parent7d846072c727c9314040cb209431c98ff0d299c6
yacc.c, glr.c: a better YY_LOCATION_PRINT

* data/c.m4 (b4_yy_location_print_define): New.
Now issues "short" locations, e.g., "1.1" instead of "1.1-1.1".
Was initially a function, but then we face "static but unused"
warnings.
Simpler as a macro.
* tests/local.at, data/glr.c, data/yacc.c: Use it instead of duplicating.
* tests/actions.at: Adjust expectations.
data/c.m4
data/glr.c
data/yacc.c
tests/actions.at
tests/local.at