]> git.saurik.com Git - bison.git/commit - src/muscle_tab.c
Fix strange %define locations for default values.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 3 Apr 2009 07:13:36 +0000 (03:13 -0400)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 3 Apr 2009 07:56:58 +0000 (03:56 -0400)
commit580c075d7f6a06d84149fd789a42528371621b7d
treee6237e22ed4b84d0e4c8d43378c4aee5c247fe3f
parent5d3a1ecbbe1d0a97d12c1699c720c3ce7c079a3a
Fix strange %define locations for default values.

Reported by Akim Demaille at
<http://lists.gnu.org/archive/html/bug-bison/2007-12/msg00001.html>
and discussed again starting at
<http://lists.gnu.org/archive/html/bison-patches/2008-11/msg00102.html>.
* data/bison.m4 (b4_percent_define_default): Leave syncline blank
because location information is bogus.
Use angle brackets to delimit fake file name because square brackets
look like over-quoted m4.  Choose a better fake file name.
Use negative line numbers.
* src/muscle_tab.c (muscle_percent_define_default): Likewise.
* src/location.c (location_print): If line for a boundary is negative,
only print that boundary's file name.
* src/location.h: Document that.
* tests/skeletons.at (%define Boolean variables: invalid skeleton
defaults): Update output.
ChangeLog
data/bison.m4
src/location.c
src/location.h
src/muscle_tab.c
tests/skeletons.at