From 44ab8a339c78bcc3460d44b2f435116f21faa60a Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Mon, 5 Jul 2021 16:27:38 +0000 Subject: First step on modules. Still very very rough. --- repl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repl.c') diff --git a/repl.c b/repl.c index bf08164..4269f8e 100644 --- a/repl.c +++ b/repl.c @@ -8,7 +8,7 @@ Rune parsefindmore(int); void -repl(Term *database) +repl(void) { int fd = 0; /* Standard input */ while(1){ @@ -19,7 +19,7 @@ repl(Term *database) goalstack = nil; /* should free old choicestack and goalstack */ int success; FindMore: - success = evalquery(database, query, &bindings); + success = evalquery(query, &bindings); if(success == 0) print("false.\n"); else{ -- cgit v1.2.3