aboutsummaryrefslogtreecommitdiff
path: root/calendar.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-09 00:19:58 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-09 00:19:58 +0100
commitc374807e9d73014ce57eacbbaa56e05460288368 (patch)
treeaf9974aa6b03c9e25c9e42c108d9f25277665b41 /calendar.c
parentFix minor memmory error. (diff)
downloadcalp-c374807e9d73014ce57eacbbaa56e05460288368.tar.gz
calp-c374807e9d73014ce57eacbbaa56e05460288368.tar.xz
Extend parsing to handle tree's of vcomponents.
Diffstat (limited to 'calendar.c')
-rw-r--r--calendar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/calendar.c b/calendar.c
index 477de492..fef4ab28 100644
--- a/calendar.c
+++ b/calendar.c
@@ -70,10 +70,7 @@ int parse_dir(vcomponent* cal, char* path) {
exit (1);
}
- /* TODO currently the hedaers cal is overwritten each
- * iteration (not really, since I don't save any headers).
- * Preferably, a special case is made for vdir structures
- * which can assume that all headers are equal. */
+ // TODO complete path
parse_file(fname, f, cal);
fclose(f);
@@ -115,6 +112,7 @@ int read_vcalendar(vcomponent* cal, char* path) {
exit (1);
}
+ // TODO absolute path
parse_file(path, f, cal);
fclose(f);
break;