summaryrefslogtreecommitdiff
path: root/MLKReader.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-14 21:20:51 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-14 21:20:51 +0200
commit46f08b33eab0a26bee84d3aa294dedcd04222dee (patch)
tree157d91efb46fd9cef7579d543d5ab6c2088f8b10 /MLKReader.m
parentef4ac7a8a6e7957e65ff729cce7e9905a8b369f5 (diff)
Add classes MLKError and MLKStream.
Diffstat (limited to 'MLKReader.m')
-rw-r--r--MLKReader.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/MLKReader.m b/MLKReader.m
index 5fc8d24..9664784 100644
--- a/MLKReader.m
+++ b/MLKReader.m
@@ -25,6 +25,7 @@
#import "MLKEnvironment.h"
#import "MLKPackage.h"
#import "MLKClosure.h"
+#import "MLKStream.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSString.h>
@@ -128,13 +129,13 @@
escaped = !escaped;
else if ([readtable isTerminatingMacroCharacter:ch])
{
- [stream unreadChar];
+ [stream unreadChar:ch];
break;
}
else if ([readtable isWhitespaceCharacter:ch])
{
if (preserveWhitespace)
- [stream unreadChar];
+ [stream unreadChar:ch];
break;
}
else if ([readtable isInvalidCharacter:ch])