From 464110afe0599efa5b876eb398769cdbf2a0c1df Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Mon, 24 Jan 2022 00:00:05 +0000 Subject: Rework the lexer to lex from either a string or bio. This allows multiline dfn's. --- functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index c8bff78..207daeb 100644 --- a/functions.c +++ b/functions.c @@ -144,7 +144,7 @@ runfunc(Function f, Array *left, Array *right) omega->undefined = 0; incref(right); - Datum *dfnres = evalline(f.dfn, 0); + Datum *dfnres = evalline(f.dfn, nil, 0); popdfnframe(); result = (*dfnres).array; /* TODO what if the evaluation failed */ }else if(f.type == FunctypePrim){ -- cgit v1.2.3