From 9075e91263f6cd74d33d0e078ba9ab77a95f1083 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 10 Sep 2026 21:10:18 +0000 Subject: Work in progress changes for the module system. I am only committing to save my work somewhere, but it doesn't work yet. FossilOrigin-Name: 45400ea0e451183f360a3d0cbb14f262cbec2e62167bad732fd396ed0ce4acaf --- src/lib/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/main.c') diff --git a/src/lib/main.c b/src/lib/main.c index afb99e9..d25ad99 100644 --- a/src/lib/main.c +++ b/src/lib/main.c @@ -39,7 +39,9 @@ aplwc_new(struct aplwc_fns fns, enum aplwc_rc *rcp) aplwc->modules = NULL; aplwc->fns = fns; + aplwc->symtab = NULL; memory_init(aplwc); + keyword_init(aplwc); rc = aplwc_load_module(aplwc, "Boot", (const char *)boot_src, boot_src_len); end: @@ -123,7 +125,7 @@ aplwc_read(struct aplwc *aplwc, const char *linestr, AplwcLine *lineptr) goto end; MEMPTR(1, tokens); - if((aplwc->last_error = check_tokens(tokens)) != APLWC_OK) + if((aplwc->last_error = check_tokens(NULL, tokens)) != APLWC_OK) goto end; if((line = memory_alloc_aplwc_line(aplwc)) == NULL) -- cgit v1.2.3