mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
style: rename cleanup_caret as caret_free
* src/location.c, src/location.h, src/main.c: here.
This commit is contained in:
@@ -150,7 +150,7 @@ struct caret_info
|
|||||||
static struct caret_info caret_info = { NULL, 1, 0 };
|
static struct caret_info caret_info = { NULL, 1, 0 };
|
||||||
|
|
||||||
void
|
void
|
||||||
cleanup_caret ()
|
caret_free ()
|
||||||
{
|
{
|
||||||
if (caret_info.source)
|
if (caret_info.source)
|
||||||
fclose (caret_info.source);
|
fclose (caret_info.source);
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ unsigned location_print (location loc, FILE *out);
|
|||||||
|
|
||||||
/* Free any allocated resources and close any open file handles that are
|
/* Free any allocated resources and close any open file handles that are
|
||||||
left-over by the usage of location_caret. */
|
left-over by the usage of location_caret. */
|
||||||
void cleanup_caret (void);
|
void caret_free (void);
|
||||||
|
|
||||||
/* Output to OUT the line and caret corresponding to location LOC. */
|
/* Output to OUT the line and caret corresponding to location LOC. */
|
||||||
void location_caret (location loc, FILE *out);
|
void location_caret (location loc, FILE *out);
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ main (int argc, char *argv[])
|
|||||||
timevar_stop (tv_total);
|
timevar_stop (tv_total);
|
||||||
timevar_print (stderr);
|
timevar_print (stderr);
|
||||||
|
|
||||||
cleanup_caret ();
|
caret_free ();
|
||||||
|
|
||||||
/* Fix input file now, even if there are errors: that's less
|
/* Fix input file now, even if there are errors: that's less
|
||||||
warnings in the following runs. */
|
warnings in the following runs. */
|
||||||
|
|||||||
Reference in New Issue
Block a user