summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/include/IO
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/fwik/include/IO')
-rw-r--r--src/user/lib/fwik/include/IO/IOStream.h4
-rw-r--r--src/user/lib/fwik/include/IO/Term.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/user/lib/fwik/include/IO/IOStream.h b/src/user/lib/fwik/include/IO/IOStream.h
index e9ae246..e381cf5 100644
--- a/src/user/lib/fwik/include/IO/IOStream.h
+++ b/src/user/lib/fwik/include/IO/IOStream.h
@@ -3,6 +3,8 @@
#include "Term.h"
+#include <String.h>
+
class IOStream {
public:
Term *term;
@@ -12,7 +14,7 @@ class IOStream {
void print(char* str);
void printf(char* fmt, ...);
- char* readln();
+ String readln();
IOStream &operator<<(char* s) {
print(s);
diff --git a/src/user/lib/fwik/include/IO/Term.h b/src/user/lib/fwik/include/IO/Term.h
index cf90789..4fd9306 100644
--- a/src/user/lib/fwik/include/IO/Term.h
+++ b/src/user/lib/fwik/include/IO/Term.h
@@ -3,6 +3,7 @@
#include <stdio.h>
#include "Node.h"
+#include <String.h>
#include <readline.h>
@@ -22,8 +23,8 @@ class Term : public Node {
virtual void print(char *s);
virtual void printf(char* fmt, ...);
virtual void vprintf(char* fmt, va_list ap);
- virtual char* readln();
- char* readline();
+ virtual String readln();
+ String readline();
virtual Term* as_term() { return this; }
};