summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-16 00:42:49 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-16 00:42:49 +0000
commit1c8789198373a52da9e80dc9b2b1ee2b67af61c4 (patch)
tree980040a8d1828a85428b175eef9f6a4106248309 /eval.c
parent2a77288e28f2725b5621c239d2393d49f61993e8 (diff)
Make operators local to each module, and implement some more correct prettyprint code, used by write_term
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index b300d11..13718ab 100644
--- a/eval.c
+++ b/eval.c
@@ -49,7 +49,7 @@ evalquery(Term *query, Binding **resultbindings)
continue;
if(debug)
- print("Working goal: %S:%S\n", module->name, prettyprint(goal, 0, 0, 0));
+ print("Working goal: %S:%S\n", module->name, prettyprint(goal, 0, 0, 0, nil));
Binding *bindings = nil;
Clause *clause = nil;
@@ -63,7 +63,7 @@ evalquery(Term *query, Binding **resultbindings)
}else{
Predicate *pred = findpredicate(module->predicates, goal);
if(pred == nil){
- print("No predicate matches: %S:%S\n", module->name, prettyprint(goal, 0, 0, 0));
+ print("No predicate matches: %S:%S\n", module->name, prettyprint(goal, 0, 0, 0, nil));
goto Backtrack;
}