]> git.saurik.com Git - bison.git/commit - ChangeLog
Add comparison operators for C++ location classes. Discussed at
authorJoel E. Denny <jdenny@ces.clemson.edu>
Thu, 22 Jun 2006 19:46:05 +0000 (19:46 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Thu, 22 Jun 2006 19:46:05 +0000 (19:46 +0000)
commit31b2b07ef765e9e8734ca273308094804fcc9763
tree1f6c9e1451ed0a725d1a35cde89b2859b71ff2b4
parent9bc0dd679f19b79f7250d2b16563b590a3b032bb
Add comparison operators for C++ location classes.  Discussed at
<http://lists.gnu.org/archive/html/bison-patches/2006-06/msg00092.html>.
* data/c++.m4 (b4_define_location_comparison): New boolean %define
declaration indicating whether filename_type has an operator==.  If
filename_type is `std::string', it defaults to `1', `0' otherwise.
* data/location.cc: Iff b4_define_location_comparison is `1', add
operator== and operator!= for class position and for class location.

Some minor fixes.
* src/scan-action.l: Remove unused file.
* src/symtab.c (symbol_printer_set): Use printer_location not
destructor_location.
* src/symtab.h (struct symbol): Replace incorrect source comment for
printer members.
* tests/input.at (Incompatible Aliases): Update output with correct
printer location.
ChangeLog
data/c++.m4
data/location.cc
src/scan-action.l [deleted file]
src/symtab.c
src/symtab.h
tests/input.at