parser: don't use %locations
authorRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 21:41:17 +0000 (00:41 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 21:41:17 +0000 (00:41 +0300)
commit409f27d7836b61b81c672e7737e42d75f15a072a
tree2ccf0cd271a256dbec9170822108a7a91d3f0b13
parent13da6da0e783c4cf6c151f09d2cb0a0863d2ac79
parser: don't use %locations

byacc doesn't support this feature.

We print the line/col of the last scanned token instead. This is slightly
less in case of *parser* errors (not syntax errors), but I couldn't make
it point to another line, and this are pretty cryptic anyways. So it's
good enough. Also might be a bit faster, but haven't checked.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/parser-priv.h
src/xkbcomp/parser.y
src/xkbcomp/scanner-utils.h
src/xkbcomp/scanner.c