]> git.saurik.com Git - bison.git/commit - src/symtab.h
Let symbols have a location.
authorAkim Demaille <akim@epita.fr>
Sat, 15 Jun 2002 18:21:46 +0000 (18:21 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 15 Jun 2002 18:21:46 +0000 (18:21 +0000)
commitee000ba4fcd5b051bef4476341a7fdffbddf8ad3
treea813feb2a5b1986548d9f69ef1495e3b4aaaad96
parent8efe435c059af57671105fd8671ba97bb8474264
Let symbols have a location.
* src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
(getsym): Adjust.
Adjust all callers.
* src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
Use location_t, not int.
* src/symtab.c (symbol_check_defined): Take advantage of the
location.
* tests/regression.at (Invalid inputs): Adjust.
ChangeLog
src/complain.c
src/complain.h
src/parse-gram.c
src/parse-gram.y
src/reader.c
src/scan-gram.c
src/scan-gram.l
src/symtab.c
src/symtab.h
tests/regression.at