From 48da622d4ad0b4acfe9005dd318ac3f20b4e8672 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 22 Jul 2021 21:54:46 +0000 Subject: Big commit changing the way the system is loaded at startup. 1) The loader and system modules are loaded by the C directly into the user module 2) The system module is then loaded with the loader from the user module 3) The loader module is then loaded with the loader from the user module 4) The repl is then loaded with the loader from the loader module 5) The user module is cleared --- fns.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fns.h') diff --git a/fns.h b/fns.h index f3d9ebd..e2785ac 100644 --- a/fns.h +++ b/fns.h @@ -69,9 +69,10 @@ void reposition(Term *, vlong); /* module.c */ void initmodules(void); -Module *parsemodule(char *); +int addtousermod(char *); Module *getmodule(Rune *); Module *addemptymodule(Rune *); +void removemodule(Rune *); Clause *appendclause(Clause *, Clause *); Predicate *appendpredicate(Predicate *, Predicate *); Operator *getoperator(Rune *, Module *); -- cgit v1.2.3