aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:09:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:09:30 +0100
commit1b71eb8175de976045406035420f62c79a2fc91e (patch)
treea3c5bcd98b50628fbb7ca735bf810f5c30900e3a /strbuf.h
parentEven more work. (diff)
downloadcalp-1b71eb8175de976045406035420f62c79a2fc91e.tar.gz
calp-1b71eb8175de976045406035420f62c79a2fc91e.tar.xz
Vill inte.
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 24dd8328..73f5f1dd 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -1,6 +1,8 @@
#ifndef STRBUF_H
#define STRBUF_H
+#include <iostream>
+
#include <stdlib.h>
#include "macro.h"
@@ -33,8 +35,11 @@ struct strbuf {
{ return ! (*this == other); }
bool operator!=(const char* other)
{ return ! (*this == other); }
+
};
+std::ostream& operator<<(std::ostream&, strbuf&);
+
/*
* Init strbuf to size of 0
* Doesnt't call malloc.