aboutsummaryrefslogtreecommitdiff
path: root/vcal.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:19:32 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:19:32 +0100
commit097442ed9e3340344d7fbc021baaf0b11e7ea4fb (patch)
treee86018252bff6a8a9ac5ae2942845ccbb6ba02db /vcal.h
parentVill inte. (diff)
downloadcalp-097442ed9e3340344d7fbc021baaf0b11e7ea4fb.tar.gz
calp-097442ed9e3340344d7fbc021baaf0b11e7ea4fb.tar.xz
Everything broken, again.c++2
Diffstat (limited to 'vcal.h')
-rw-r--r--vcal.h18
1 files changed, 10 insertions, 8 deletions
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 <string>
+
#include <stdlib.h>
-#include "strbuf.h"
+// #include "strbuf.h"
#include "linked_list.h"
#include "trie.h"
#include "linked_list.h"
#include "pair.h"
-typedef pair<strbuf, llist<strbuf> > param_set;
-typedef pair<strbuf, llist<param_set> > content_set;
+typedef pair<std::string, llist<std::string> > param_set;
+typedef pair<std::string, llist<param_set> > content_set;
// typedef pair<strbuf, llist<content_set> > content_line;
// typedef llist<content_set> content_line;
struct content_line {
llist<content_set> 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)