mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 13:53:03 +00:00
Locations without columns for command line arguments.
* src/location.c (location_print): Don't display negative columns.
* src/location.h: Document this.
(cherry picked from commit 56c5eca973)
This commit is contained in:
committed by
Joel E. Denny
parent
015e86a7b2
commit
5d3a1ecbbe
@@ -1,5 +1,5 @@
|
||||
/* Locations for Bison
|
||||
Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -31,9 +31,13 @@ typedef struct
|
||||
If this is INT_MAX, the line number has overflowed. */
|
||||
int line;
|
||||
|
||||
/* The (origin-1) column just after the boundary. This is neither a
|
||||
byte count, nor a character count; it is a column count.
|
||||
If this is INT_MAX, the column number has overflowed. */
|
||||
/* If nonnegative, the (origin-1) column just after the boundary.
|
||||
This is neither a byte count, nor a character count; it is a
|
||||
column count. If this is INT_MAX, the column number has
|
||||
overflowed.
|
||||
|
||||
Meaningless and not displayed if negative.
|
||||
*/
|
||||
int column;
|
||||
|
||||
} boundary;
|
||||
|
||||
Reference in New Issue
Block a user