From cf8c7f754d2cc421b98d15e471a0033228d0930c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 1 Nov 2012 19:06:58 -0300 Subject: [PATCH] tools/: rename free_edit to free_edits Makes it clearer that it's not about freeing just a single edit record. --- tools/ant-gui/ant-gui.c | 2 +- tools/libant/edit.c | 4 ++-- tools/libant/libant.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ant-gui/ant-gui.c b/tools/ant-gui/ant-gui.c index 7d70274..58a20f6 100644 --- a/tools/ant-gui/ant-gui.c +++ b/tools/ant-gui/ant-gui.c @@ -186,7 +186,7 @@ static void *generate(const char *path) fprintf(stderr, "%s\n", err); exit(1); } - free_edit(edits); + free_edits(edits); return res; } diff --git a/tools/libant/edit.c b/tools/libant/edit.c index 080584f..d8e4a3d 100644 --- a/tools/libant/edit.c +++ b/tools/libant/edit.c @@ -321,7 +321,7 @@ struct edit *text2edit(const char *s, const char **error) return edits; if (error) *error = err; - free_edit(edits); + free_edits(edits); return NULL; } @@ -329,7 +329,7 @@ struct edit *text2edit(const char *s, const char **error) /* ----- Free edit list ---------------------------------------------------- */ -void free_edit(struct edit *e) +void free_edits(struct edit *e) { struct edit *next; diff --git a/tools/libant/libant.h b/tools/libant/libant.h index 4094832..3a9882f 100644 --- a/tools/libant/libant.h +++ b/tools/libant/libant.h @@ -70,7 +70,7 @@ int char_height(const struct font *font, char c); struct edit *text2edit(const char *s, const char **error); char *edit2text(const struct edit *e); -void free_edit(struct edit *e); +void free_edits(struct edit *e); void add_font_dir(const char *name);