X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/69b8cc095fe57c413d9584c05372511389fe2505..b09a18c50d221b54e6bc94e03deb65ecd52c4288:/src/location.h?ds=inline diff --git a/src/location.h b/src/location.h index f4fbb2f8..b03f6d0e 100644 --- a/src/location.h +++ b/src/location.h @@ -1,5 +1,5 @@ /* Locations for Bison - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -15,17 +15,19 @@ You should have received a copy of the GNU General Public License along with Bison; see the file COPYING. If not, write to - the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ #ifndef LOCATION_H_ # define LOCATION_H_ +# include "uniqstr.h" + /* A boundary between two characters. */ typedef struct { /* The name of the file that contains the boundary. */ - char const *file; + uniqstr file; /* The (origin-1) line that contains the boundary. */ int line; @@ -42,7 +44,7 @@ equal_boundaries (boundary a, boundary b) { return (a.column == b.column && a.line == b.line - && a.file == b.file); + && UNIQSTR_EQ (a.file, b.file)); } /* A location, that is, a region of source code. */