cal_load(YEAR, MONTH, DAY, 1);
/* Debug */
+#ifdef DEBUG_CALS
for (event_t *e = EVENTS; e; e = e->next)
debug("event: %04d-%02d-%02d %02d:%02d: %s - %s",
e->start.year, e->start.month, e->start.day,
debug("todo: %04d-%02d-%02d %02d:%02d: %s - %s",
e->start.year, e->start.month, e->start.day,
e->start.hour, e->start.min, e->name, e->desc);
+#endif
}
/* Load events and todos */
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);
+#ifdef DEBUG_CALS
+ 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);
+#endif
}
/* Config parser */