diff options
Diffstat (limited to 'src/lib/main.c')
| -rw-r--r-- | src/lib/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |