/*
- * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2012-2013 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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 */