X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/cc2235ace2d91338663caeec288743092a6b3aeb..efbc95a7e4fcba4363372df34f183d7db89a85a6:/src/complain.c 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);