From 097442ed9e3340344d7fbc021baaf0b11e7ea4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 23 Feb 2019 21:19:32 +0100 Subject: Everything broken, again. --- vcal.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'vcal.h') diff --git a/vcal.h b/vcal.h index 5ec20f17..2af64cd5 100644 --- a/vcal.h +++ b/vcal.h @@ -1,31 +1,33 @@ #ifndef VCAL_H #define VCAL_H +#include + #include -#include "strbuf.h" +// #include "strbuf.h" #include "linked_list.h" #include "trie.h" #include "linked_list.h" #include "pair.h" -typedef pair > param_set; -typedef pair > content_set; +typedef pair > param_set; +typedef pair > content_set; // typedef pair > content_line; // typedef llist content_line; struct content_line { llist data; - content_line (strbuf* key, strbuf* val); + content_line (std::string* key, std::string* val); - void push_value (strbuf* s) { + void push_value (std::string* s) { auto cs = new content_set(); cs->key = s; this->data.push(cs); } - strbuf* cur_val () { + std::string* cur_val () { return this->data.peek()->key; } @@ -51,7 +53,7 @@ struct content_line { } private: - strbuf* key; + std::string* key; }; /* @@ -99,7 +101,7 @@ struct vcomponent { ~vcomponent (); - void push_kv (strbuf* key, strbuf* val); + void push_kv (std::string* key, std::string* val); }; // #define FCHILD(v) GET(VECT(vcomponent))(&(v)->components, 0) -- cgit v1.2.3