summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-27 09:19:41 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-30 14:34:36 +0200
commitb230e2949ef888010c133e4b6f7690f2e1ed2c09 (patch)
tree5a0615890c1292834076ac02e79c19404270881d
parent47d5fe2d45688c376a9646e798ca564e6bb4a6b6 (diff)
downloadcalcurse-b230e2949ef888010c133e4b6f7690f2e1ed2c09.tar.gz
calcurse-b230e2949ef888010c133e4b6f7690f2e1ed2c09.zip
Make *_free() public
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/apoint.c2
-rw-r--r--src/calcurse.h5
-rw-r--r--src/event.c2
-rw-r--r--src/recur.c4
-rw-r--r--src/todo.c2
5 files changed, 10 insertions, 5 deletions
diff --git a/src/apoint.c b/src/apoint.c
index ce872df..291d0d8 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -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);
diff --git a/src/calcurse.h b/src/calcurse.h
index 59e4f1c..0dd7d01 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -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);
diff --git a/src/event.c b/src/event.c
index d135a2c..4f70391 100644
--- a/src/event.c
+++ b/src/event.c
@@ -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);
diff --git a/src/recur.c b/src/recur.c
index f458a66..55151cd 100644
--- a/src/recur.c
+++ b/src/recur.c
@@ -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)
diff --git a/src/todo.c b/src/todo.c
index 5352eb8..191a2ac 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -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);