diff options
author | Akim Demaille <demaille@gostai.com> | 2008-07-29 12:45:21 +0200 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2008-11-07 21:38:23 +0100 |
commit | 56c5eca97359ecc15481c6b9dff8f34c63219d70 (patch) | |
tree | 8785f84d344f0390656792a536c1dc3c60f3d46f /src/location.h | |
parent | 9b9e0a7d46123c50e51f6742eba1bfa0d091b8aa (diff) | |
download | bison-56c5eca97359ecc15481c6b9dff8f34c63219d70.tar.gz |
Locations without columns for command line arguments.
* src/location.c (location_print): Don't display negative columns.
* src/location.h: Document this.
Diffstat (limited to 'src/location.h')
-rw-r--r-- | src/location.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/location.h b/src/location.h index 785947ef..efd256dd 100644 --- a/src/location.h +++ b/src/location.h @@ -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; |