From c85de58a2047c4858825d03977e490db6168fbe3 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Fri, 23 Jul 2021 00:50:18 +0000 Subject: Simplify parsing a bit, and make sure the prolog loader calls read_term with the correct module to pick up the correct operators --- streams.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'streams.c') diff --git a/streams.c b/streams.c index 5706566..4b4b965 100644 --- a/streams.c +++ b/streams.c @@ -217,14 +217,14 @@ canreposition(Term *t) } int -readterm(Term *stream, Term **term) +readterm(Term *stream, Term **term, Module *mod) { Stream *s = getstream(stream); if(s == nil){ *term = existenceerror(L"stream", stream); return 1; } - *term = parse(0, s->bio, 1); + *term = parse(s->bio, mod); return 0; } -- cgit v1.2.3