]> git.saurik.com Git - bison.git/commit - src/scan-gram.l
* src/location.h (boundary): Note that a line or column equal
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Dec 2005 08:45:47 +0000 (08:45 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Dec 2005 08:45:47 +0000 (08:45 +0000)
commit4517da37570b39a3d4b3f523dd373abe7c622bb0
tree86eff92b15ee0e67686b9d1e0b4b7cea0d1cbd76
parent668c5d192776326107790e8d622dfa7ddd015ea3
* src/location.h (boundary): Note that a line or column equal
to INT_MAX indicates an overflow.
* src/scan-gram.l: Include verify.h.  Don't include get-errno.h.
(rule_length_overflow, increment_rule_length, add_column_width):
New functions.
(<INITIAL>{id}, <SC_ESCAPED_STRING>"\"", <SC_ESCAPED_CHARACTER>"'"):
(<SC_BRACED_CODE>"}"):
Use increment_rule_length rather than incrementing it by hand.
(adjust_location, handle_syncline): Diagnose overflow.
(handle_action_dollar, handle_action_at):
Fix bug with monstrosities like $-2147483648.
Remove now-unnecessary checks.
(scan_integer): Verify assumptions and remove now-unnecessary checks.
(convert_ucn_to_byte): Verify assumptions.
(handle_syncline): New arg LOC.  All callers changed.
Don't store through a value derived from char const * pointer.
ChangeLog
src/location.h
src/scan-gram.l