X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/432a008d34bdf2178f293d144066ee64977c59f9..fec5f3c0cc2c50a779dafb928fda105c1782446b:/src/location.c diff --git a/src/location.c b/src/location.c index 66b9ffa6..dd4bd043 100644 --- a/src/location.c +++ b/src/location.c @@ -1,6 +1,6 @@ /* Locations for Bison - Copyright (C) 2002, 2005-2012 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -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. */