X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b805eca764fa0a7f0b5693931a2289fc74689f40..0bfe22b6d523a359fb2ac8892c6acf85342b54f6:/src/location.c diff --git a/src/location.c b/src/location.c index ecfa60ee..c873dccd 100644 --- a/src/location.c +++ b/src/location.c @@ -96,8 +96,6 @@ 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 (location loc, FILE *out) { @@ -190,7 +188,7 @@ location_caret (location loc, FILE *out) /* Read the actual line. Don't update the offset, so that we keep a pointer to the start of the line. */ { - char c = getc (caret_info.source); + int c = getc (caret_info.source); if (c != EOF) { /* Quote the file, indent by a single column. */ @@ -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';