/* 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.
#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;
{
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. */
/* Boundary just after the location ends. */
boundary end;
-} location_t;
+} location;
-#define YYLTYPE location_t
+#define YYLTYPE location
-extern location_t const empty_location;
+extern location const empty_location;
-void location_print (FILE *, location_t);
+void location_print (FILE *, location);
#endif /* ! defined LOCATION_H_ */