location: pass the location first

* src/location.h, src/location.c (location_print): For consistency
with other data structures and other location_* routines, pass the
location argument first.
* src/complain.c: Adjust.
(location_caret): Likewise.
* src/parse-gram.y: Adjust.
This commit is contained in:
Akim Demaille
2013-02-01 14:24:48 +01:00
parent e6c25014bb
commit b805eca764
4 changed files with 7 additions and 7 deletions

View File

@@ -40,7 +40,7 @@
static YYLTYPE lloc_default (YYLTYPE const *, int);
#define YY_LOCATION_PRINT(File, Loc) \
location_print (File, Loc)
location_print (Loc, File)
static void version_check (location const *loc, char const *version);