/* Locations for Bison
- Copyright (C) 2002, 2005-2012 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005-2013 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
}
-/* Output to OUT the location LOC.
- Warning: it uses quotearg's slot 3. */
unsigned
-location_print (FILE *out, location loc)
+location_print (location loc, FILE *out)
{
unsigned res = 0;
int end_col = 0 != loc.end.column ? loc.end.column - 1 : 0;
}
void
-location_caret (FILE *out, location loc)
+location_caret (location loc, FILE *out)
{
/* FIXME: find a way to support multifile locations, and only open once each
file. That would make the procedure future-proof. */
boundary_set_from_string (boundary *bound, char *loc_str)
{
/* Must search in reverse since the file name field may
- * contain `.' or `:'. */
+ * contain '.' or ':'. */
char *delim = strrchr (loc_str, '.');
aver (delim);
*delim = '\0';