summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/include/IO
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 14:07:01 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 14:07:01 +0200
commit0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 (patch)
treea9038fce4cf81556fbdd5589caee8f4e9bfc5185 /src/user/lib/fwik/include/IO
parent499ca6c243b05da176a2d4bd9a2317f0b28afc7f (diff)
downloadTCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.tar.gz
TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.zip
Added string class for FWIK.
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; }
};