summaryrefslogtreecommitdiff
path: root/MLKStream.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-09 10:22:19 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-09 10:22:19 +0200
commite2b78839c16f05cd3c0eb83063bcc449e93fe616 (patch)
tree08596832702f6203738f63997849c061ee0ccb0d /MLKStream.m
parent28f00343ce1fa21f4559bac70e58b723e2d59a6b (diff)
parentf24fe15610e9d5bd3457bcb7567dc723672ffb04 (diff)
Merge mulk_benkard@ssh.phx.nearlyfreespeech.net:/home/htdocs/code/mulklisp
Diffstat (limited to 'MLKStream.m')
-rw-r--r--MLKStream.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/MLKStream.m b/MLKStream.m
index e0090d0..6448bdc 100644
--- a/MLKStream.m
+++ b/MLKStream.m
@@ -22,6 +22,9 @@
#import <Foundation/NSException.h>
+#include <unistd.h>
+#include <stdlib.h>
+
@implementation MLKStream
-(MLKStream *) init;
@@ -66,7 +69,7 @@
-(unichar) readChar
{
uint8_t *buffer;
- int i;
+ size_t i;
unichar retval;
if (_charCached)
@@ -92,7 +95,7 @@
//NSLog (@"%@", _input);
- buffer = realloc (buffer, i+1);
+ buffer = (uint8_t *) realloc (buffer, i+1);
bytes_read = [_input read:(buffer+i) maxLength:1];
//NSLog (@"%d bytes read", bytes_read);