]> git.saurik.com Git - bison.git/commit
c++: fix several issues with locations
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 11 Apr 2013 07:53:18 +0000 (09:53 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 11 Apr 2013 10:50:59 +0000 (12:50 +0200)
commit75ae8299840bbd854fa2474d38402bbb933c6511
tree1b173afbde95073be320d5f10d9a00438307a4e5
parent08cc1a3b1801cafcd0354ce10161571fa45b4553
c++: fix several issues with locations

Reported by Daniel Frużyński.
http://lists.gnu.org/archive/html/bug-bison/2013-02/msg00000.html

* data/location.cc (position::columns, position::lines): Check for
underflow.
Fix some weird function signatures.
(location): Accept signed integers as arguments where appropriate.
Add operator- and operator+=.
* doc/bison.texi (C++ position, C++ location): Various fixes
and completion.
* tests/c++.at (C++ Locations): New tests.
NEWS
THANKS
data/location.cc
doc/bison.texi
tests/c++.at