X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7d6bad195977b0204fc8406cac57cf5a4f1c769b..fea2516636dfcf73e92c24b68804ffe7666086c1:/src/location.c diff --git a/src/location.c b/src/location.c index d06f4fae..662b2a12 100644 --- a/src/location.c +++ b/src/location.c @@ -96,10 +96,8 @@ location_compute (location *loc, boundary *cur, char const *token, size_t size) } -/* 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; @@ -161,7 +159,7 @@ cleanup_caret () } 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. */ @@ -221,7 +219,7 @@ void 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';