diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 20:59:27 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 20:59:27 +0000 |
commit | 66a7040df6897e60ee1a513b95f4b04e687bbf0a (patch) | |
tree | 501f486728cc1fd27b24a6227a131ad72684df84 /repl.c | |
parent | 7db38904537603dabe960f32fa505e27db89e27b (diff) |
Add one global choicestack so we don't need to pass it around
Diffstat (limited to 'repl.c')
-rw-r--r-- | repl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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{ |