add_days(&eyear, &emonth, &eday, days);
/* Skip if we already loaded enough info */
- if (!before(&start, year, month, day, 0, 0) &&
- before(&end, eyear, emonth, eday, 24, 0))
+ if (before(&start, year, month, day, 0, 0) &&
+ !before(&end, eyear, emonth, eday, 24, 0))
return;
/* Free uneeded data */
dummy_todos(start, end),
ical_todos(start, end));
+ /* Verify events and todos*/
+ //for (event_t *cur = EVENTS; cur; cur = cur->next)
+ // if (!cur->cal)
+ // error("Missing cal in event '%s'", cur->name);
+ //for (todo_t *cur = TODOS; cur; cur = cur->next)
+ // if (!cur->cal)
+ // error("Missing cal in todo '%s'", cur->name);
}
/* Config parser */