diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-02-01 14:24:48 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-02-01 14:24:48 +0100 |
commit | b805eca764fa0a7f0b5693931a2289fc74689f40 (patch) | |
tree | b508397f2716446cb9f529966e1e050af4fbc803 /src/complain.c | |
parent | e6c25014bb566595d7de92696c8f67d63dbcf4a9 (diff) | |
download | bison-b805eca764fa0a7f0b5693931a2289fc74689f40.tar.gz |
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.
Diffstat (limited to 'src/complain.c')
-rw-r--r-- | src/complain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complain.c b/src/complain.c index c6e03d51..5a1b45a4 100644 --- a/src/complain.c +++ b/src/complain.c @@ -89,7 +89,7 @@ error_message (const location *loc, warnings flags, const char *prefix, unsigned pos = 0; if (loc) - pos += location_print (stderr, *loc); + pos += location_print (*loc, stderr); else pos += fprintf (stderr, "%s", current_file ? current_file : program_name); pos += fprintf (stderr, ": "); @@ -117,7 +117,7 @@ error_message (const location *loc, warnings flags, const char *prefix, putc ('\n', stderr); fflush (stderr); if (loc && feature_flag & feature_caret && !(flags & no_caret)) - location_caret (stderr, *loc); + location_caret (*loc, stderr); } } fflush (stderr); |