mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-25 19:10:18 +02:00
tools/: rename free_edit to free_edits
Makes it clearer that it's not about freeing just a single edit record.
This commit is contained in:
parent
1e7fb38c04
commit
cf8c7f754d
@ -186,7 +186,7 @@ static void *generate(const char *path)
|
|||||||
fprintf(stderr, "%s\n", err);
|
fprintf(stderr, "%s\n", err);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
free_edit(edits);
|
free_edits(edits);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ struct edit *text2edit(const char *s, const char **error)
|
|||||||
return edits;
|
return edits;
|
||||||
if (error)
|
if (error)
|
||||||
*error = err;
|
*error = err;
|
||||||
free_edit(edits);
|
free_edits(edits);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ struct edit *text2edit(const char *s, const char **error)
|
|||||||
/* ----- Free edit list ---------------------------------------------------- */
|
/* ----- Free edit list ---------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
void free_edit(struct edit *e)
|
void free_edits(struct edit *e)
|
||||||
{
|
{
|
||||||
struct edit *next;
|
struct edit *next;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ int char_height(const struct font *font, char c);
|
|||||||
|
|
||||||
struct edit *text2edit(const char *s, const char **error);
|
struct edit *text2edit(const char *s, const char **error);
|
||||||
char *edit2text(const struct edit *e);
|
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);
|
void add_font_dir(const char *name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user