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

@@ -100,14 +100,14 @@ void location_compute (location *loc,
/* Print location to file. Return number of actually printed
characters. */
unsigned location_print (FILE *out, location loc);
unsigned location_print (location loc, FILE *out);
/* Free any allocated ressources and close any open file handles that are
left-over by the usage of location_caret. */
void cleanup_caret (void);
/* Output to OUT the line and caret corresponding to location LOC. */
void location_caret (FILE *out, location loc);
void location_caret (location loc, FILE *out);
/* Return -1, 0, 1, depending whether a is before, equal, or
after b. */