aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
commitd5a5ce02552c4d58c34226eaa0b9c71743630a32 (patch)
treecd73d4fbcf95913da90a2195e99b7cb369f16b17 /parse.c
parentAdd closedir. (diff)
downloadcalp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.gz
calp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.xz
Bunch of renames + macros.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index cd85ec53..f71e264d 100644
--- a/parse.c
+++ b/parse.c
@@ -17,7 +17,7 @@
int parse_file(FILE* f, vcalendar* cal) {
int segments = 1;
string str;
- init_string (&str, segments * SEGSIZE);
+ strbuf_init_1 (&str, segments * SEGSIZE);
part_context p_ctx = p_key;
scope_context s_ctx = s_none;
@@ -30,7 +30,7 @@ int parse_file(FILE* f, vcalendar* cal) {
NEW(vevent, ev, /**/ 100);
content_line cline;
- init_content_line (&cline, keylen, vallen);
+ content_line_init_2 (&cline, keylen, vallen);
char c;
while ( (c = fgetc(f)) != EOF) {