X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/064e42b0aca1db0ca84b06b01cac5a40f3016591..b9278c7d174c1be5d7482343c5e433f428657ed0:/src/location.h?ds=sidebyside diff --git a/src/location.h b/src/location.h index 369125b7..7026d82f 100644 --- a/src/location.h +++ b/src/location.h @@ -102,6 +102,13 @@ void location_compute (location *loc, characters. */ unsigned location_print (FILE *out, location loc); +/* Free any allocated ressources and close any open file handles that are + left-over by the usage of location_caret. */ +void cleanup_caret (void); + +/* Output to OUT the line and caret corresponding to location LOC. */ +void location_caret (FILE *out, location loc); + /* Return -1, 0, 1, depending whether a is before, equal, or after b. */ static inline int