/* Locations for Bison
- Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
static inline void
boundary_set (boundary *b, const char *f, int l, int c)
{
- b->file = f;
- b->line = l;
- b->column = c;
+ b->file = f;
+ b->line = l;
+ b->column = c;
}
/* Return nonzero if A and B are equal boundaries. */
#define YYLTYPE location
+#define EMPTY_LOCATION_INIT {{NULL, 0, 0}, {NULL, 0, 0}}
extern location const empty_location;
/* Set *LOC and adjust scanner cursor to account for token TOKEN of
void location_print (FILE *out, location loc);
+/* LOC_STR must be formatted as `file:line.column', it will be modified. */
+void boundary_set_from_string (boundary *bound, char *loc_str);
+
#endif /* ! defined LOCATION_H_ */