Make *_free() public
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
47d5fe2d45
commit
b230e2949e
@ -54,7 +54,7 @@ void apoint_free_bkp(void)
|
||||
erase_note(&bkp_cut_apoint.note);
|
||||
}
|
||||
|
||||
static void apoint_free(struct apoint *apt)
|
||||
void apoint_free(struct apoint *apt)
|
||||
{
|
||||
mem_free(apt->mesg);
|
||||
erase_note(&apt->note);
|
||||
|
@ -591,6 +591,7 @@ enum save_display {
|
||||
/* apoint.c */
|
||||
extern llist_ts_t alist_p;
|
||||
void apoint_free_bkp(void);
|
||||
void apoint_free(struct apoint *);
|
||||
void apoint_llist_init(void);
|
||||
void apoint_llist_free(void);
|
||||
void apoint_hilt_set(int);
|
||||
@ -686,6 +687,7 @@ void dmon_stop(void);
|
||||
/* event.c */
|
||||
extern llist_t eventlist;
|
||||
void event_free_bkp(void);
|
||||
void event_free(struct event *);
|
||||
void event_llist_init(void);
|
||||
void event_llist_free(void);
|
||||
struct event *event_new(char *, char *, long, int);
|
||||
@ -846,6 +848,8 @@ extern llist_ts_t recur_alist_p;
|
||||
extern llist_t recur_elist;
|
||||
void recur_event_free_bkp(void);
|
||||
void recur_apoint_free_bkp(void);
|
||||
void recur_event_free(struct recur_event *);
|
||||
void recur_apoint_free(struct recur_apoint *);
|
||||
void recur_apoint_llist_init(void);
|
||||
void recur_apoint_llist_free(void);
|
||||
void recur_event_llist_free(void);
|
||||
@ -905,6 +909,7 @@ void todo_chg_priority(struct todo *, int);
|
||||
void todo_update_panel(int);
|
||||
void todo_edit_note(struct todo *, const char *);
|
||||
void todo_view_note(struct todo *, const char *);
|
||||
void todo_free(struct todo *);
|
||||
void todo_init_list(void);
|
||||
void todo_free_list(void);
|
||||
|
||||
|
@ -53,7 +53,7 @@ void event_free_bkp(void)
|
||||
erase_note(&bkp_cut_event.note);
|
||||
}
|
||||
|
||||
static void event_free(struct event *ev)
|
||||
void event_free(struct event *ev)
|
||||
{
|
||||
mem_free(ev->mesg);
|
||||
erase_note(&ev->note);
|
||||
|
@ -157,7 +157,7 @@ void recur_apoint_llist_init(void)
|
||||
LLIST_TS_INIT(&recur_alist_p);
|
||||
}
|
||||
|
||||
static void recur_apoint_free(struct recur_apoint *rapt)
|
||||
void recur_apoint_free(struct recur_apoint *rapt)
|
||||
{
|
||||
mem_free(rapt->mesg);
|
||||
if (rapt->note)
|
||||
@ -168,7 +168,7 @@ static void recur_apoint_free(struct recur_apoint *rapt)
|
||||
mem_free(rapt);
|
||||
}
|
||||
|
||||
static void recur_event_free(struct recur_event *rev)
|
||||
void recur_event_free(struct recur_event *rev)
|
||||
{
|
||||
mem_free(rev->mesg);
|
||||
if (rev->note)
|
||||
|
@ -344,7 +344,7 @@ void todo_view_note(struct todo *i, const char *pager)
|
||||
view_note(i->note, pager);
|
||||
}
|
||||
|
||||
static void todo_free(struct todo *todo)
|
||||
void todo_free(struct todo *todo)
|
||||
{
|
||||
mem_free(todo->mesg);
|
||||
erase_note(&todo->note);
|
||||
|
Loading…
x
Reference in New Issue
Block a user