diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-01 23:39:00 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-01 23:39:00 +0200 |
commit | 7539f8c8804849294e100c5442e0397f4f4d2c40 (patch) | |
tree | 129fa0bb0f18604bd378724794c855e8e4d230dc /src/parse.h | |
parent | Start moving to scheme structs. (diff) | |
download | calp-7539f8c8804849294e100c5442e0397f4f4d2c40.tar.gz calp-7539f8c8804849294e100c5442e0397f4f4d2c40.tar.xz |
Disabled bunch of old stuff, new stuff kinda builds.
Diffstat (limited to 'src/parse.h')
-rw-r--r-- | src/parse.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/parse.h b/src/parse.h index a7e97ec8..a5169dd7 100644 --- a/src/parse.h +++ b/src/parse.h @@ -5,7 +5,7 @@ #include <stdlib.h> #include "strbuf.h" -#include "vcal.h" +// #include "vcal.h" // #define TYPE vcomponent // #include "linked_list.h" @@ -51,8 +51,8 @@ typedef struct { * context stacks used since ICS files form a tree. key_stack is * only for sequrity purposes. */ - LLIST(strbuf) key_stack; - LLIST(vcomponent) comp_stack; + // LLIST(strbuf) key_stack; + // LLIST(vcomponent) comp_stack; /* Number for unfolded lines * TODO remove this @@ -82,18 +82,7 @@ FREE_F(parse_ctx); * Once It has parsed a full line it calls handel_kv. Which build my * actuall datastructure. */ -int parse_file(char* filename, FILE* f, vcomponent* cal); - -/* - * Called whenever parse_file finishes a line. Copies the contents of - * ctx and the current content_line into the object stack, stored in - * ctx. - */ -int handle_kv( - strbuf* key, - content_line* cline, - parse_ctx* ctx - ); +int parse_file(char* filename, FILE* f, SCM cal); /* * Input |