diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-16 00:42:49 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-16 00:42:49 +0000 |
commit | 1c8789198373a52da9e80dc9b2b1ee2b67af61c4 (patch) | |
tree | 980040a8d1828a85428b175eef9f6a4106248309 /eval.c | |
parent | 2a77288e28f2725b5621c239d2393d49f61993e8 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |