iris

small scheme interpreter
git clone git://git.2f30.org/iris
Log | Files | Refs | LICENSE

commit d6ad4d53dceda07f082f57c68440e5f02b3b99e2
parent 64509b011f5f1942d0fa5e264d35721bdbb4baf5
Author: sin <sin@2f30.org>
Date:   Fri,  9 May 2014 13:44:32 +0100

Clarify semantics in extractstring()

Diffstat:
Mlexer.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lexer.c b/lexer.c @@ -17,6 +17,7 @@ extractstring(struct tok *tok) { if (tok->s == NULL) return NULL; + /* In this case, tok->s is null-terminated */ if (tok->e == NULL) return strdup(tok->s); return strndup(tok->s, tok->e - tok->s);