]> git.saurik.com Git - bison.git/commit
(code_start): Initialize it to scanner_cursor,
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Mar 2003 06:55:15 +0000 (06:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Mar 2003 06:55:15 +0000 (06:55 +0000)
commita2bc9dbc7b577c891811dd96f66a8e0daa66bf93
tree48b752b5e28f47f3d96f93ba0ae4f83324fa5384
parent0433ba88f97e23a896ffba2e4b33bac1d09ff345
(code_start): Initialize it to scanner_cursor,
not loc->end, since loc->end might contain garbage and this leads
to undefined behavior on some platforms.
(id_loc, token_start): Use (IF_LINTed) initial values that do not
depend on *loc, so that the reader doesn't give the the false
impression that *loc is initialized.
(<INITIAL>"%%"): Do not bother setting code_start, since its value
does not survive the return.
src/scan-gram.l