diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 21:19:32 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 21:19:32 +0100 |
commit | 097442ed9e3340344d7fbc021baaf0b11e7ea4fb (patch) | |
tree | e86018252bff6a8a9ac5ae2942845ccbb6ba02db /parse.h | |
parent | Vill inte. (diff) | |
download | calp-097442ed9e3340344d7fbc021baaf0b11e7ea4fb.tar.gz calp-097442ed9e3340344d7fbc021baaf0b11e7ea4fb.tar.xz |
Everything broken, again.c++2
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,10 +1,12 @@ #ifndef PARSE_H #define PARSE_H +#include <string> + #include <stdio.h> #include <stdlib.h> -#include "strbuf.h" +// #include "strbuf.h" #include "vcal.h" // #define TYPE vcomponent @@ -28,7 +30,7 @@ typedef enum { */ struct parse_ctx { char* filename; - llist<strbuf> key_stack; + llist<std::string> key_stack; llist<vcomponent> comp_stack; /* Number for unfolded lines */ @@ -39,7 +41,7 @@ struct parse_ctx { int pline; int pcolumn; - strbuf str; + std::string str; parse_ctx (const char* filename); @@ -47,7 +49,7 @@ struct parse_ctx { }; int handle_kv( - strbuf* key, + std::string* key, // content_line* cline, parse_ctx* ctx ); |