diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-23 00:50:18 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-23 00:50:18 +0000 |
commit | c85de58a2047c4858825d03977e490db6168fbe3 (patch) | |
tree | 8856e5d3e8ac67ca9404bd6b0541d3652f37973d /builtins.c | |
parent | 43f65cbe02b3a2512c3a797862196d693b3a9f11 (diff) |
Simplify parsing a bit, and make sure the prolog loader calls read_term with the correct module to pick up the correct operators
Diffstat (limited to 'builtins.c')
-rw-r--r-- | builtins.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -893,7 +893,6 @@ int builtinreadterm(Term *goal, Binding **bindings, Module *module) { USED(bindings); - USED(module); Term *stream = goal->children; Term *term = stream->next; @@ -911,7 +910,7 @@ builtinreadterm(Term *goal, Binding **bindings, Module *module) Throw(permissionerror(L"input", L"binary_stream", stream)); Term *realterm; - int error = readterm(stream, &realterm); + int error = readterm(stream, &realterm, module); if(error) Throw(realterm); @@ -942,7 +941,7 @@ builtinreadterm(Term *goal, Binding **bindings, Module *module) varsnames = varsandnames(uniquevars); singlevars = singletons(allvars); } - + Term *op; for(op = options; op->tag == CompoundTerm; op = op->children->next){ Term *opkey = op->children->children; |