From a0782973b1f63136e43ec1c7883fbee2bd014dcb Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 11 Aug 2017 19:49:58 -0400 Subject: [PATCH] Added notes --- runtime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index cb575194..2d53e64c 100644 --- a/runtime.c +++ b/runtime.c @@ -5768,7 +5768,11 @@ void Cyc_io_read_token(void *data, object cont, object port) // - if a read is needed // - if token length exceeds mem_buf length // will need to figure something out, maybe copy out to another malloc'd buffer - // in those cases + // in those cases. I think that might be the best strategy, to malloc then realloc. + // in this case we need the following: + // - token buffer + // - start index (for tokens in mem_buf) + // - end index (for tokens in token buf, 0 if token buf is empty) _read_error(data, p, "Unhandled input sequence"); }