summaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 20:59:27 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-03 20:59:27 +0000
commit66a7040df6897e60ee1a513b95f4b04e687bbf0a (patch)
tree501f486728cc1fd27b24a6227a131ad72684df84 /repl.c
parent7db38904537603dabe960f32fa505e27db89e27b (diff)
Add one global choicestack so we don't need to pass it around
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/repl.c b/repl.c
index 294eebb..bd584eb 100644
--- a/repl.c
+++ b/repl.c
@@ -15,10 +15,9 @@ repl(Term *database)
print("?- ");
Term *query = parse(fd, nil, 1);
Binding *bindings = nil;
- Choicepoint *choicestack = nil;
int success;
FindMore:
- success = evalquery(database, query, &bindings, &choicestack);
+ success = evalquery(database, query, &bindings);
if(success == 0)
print("false.\n");
else{