Use generic lists for generic day items.

Use the new generic list implementation instead of "next" pointers in
day_item type variables. Includes some cleanups and fixes.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-14 13:47:45 +02:00
parent bf431d6cd9
commit 153c638d1d
2 changed files with 86 additions and 99 deletions

View File

@@ -291,7 +291,6 @@ struct day_items_nb {
/* Generic item description (to hold appointments, events...). */
struct day_item {
struct day_item *next;
long start; /* seconds since 1 jan 1970 */
long appt_dur; /* appointment duration in seconds */
int type; /* (recursive or normal) event or appointment */