diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-03 19:20:46 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-03 19:20:46 -0400 |
commit | b7c88d4a4d9e06a2984eb0812db407e3f49a629a (patch) | |
tree | 2eb91b09069c0f61cd1221cbc1065cbf24b3df3b /src/sys/np/core | |
parent | aaa5a270cae3be855806ffacca93d76a5b1663b8 (diff) |
np: parse: Add symbol list
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/np/core')
-rw-r--r-- | src/sys/np/core/np_parse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sys/np/core/np_parse.c b/src/sys/np/core/np_parse.c index b7b854b..0605a64 100644 --- a/src/sys/np/core/np_parse.c +++ b/src/sys/np/core/np_parse.c @@ -38,8 +38,8 @@ #include <sys/param.h> #include <np/lex.h> #include <np/parse.h> -#include <np/piir.h> #include <os/np.h> +#include <np/piir.h> #include <lib/ptrbox.h> #define MAX_BEGIN_DEPTH 8 @@ -369,6 +369,13 @@ parse_work(struct np_work *work) return error; } + /* Initialize the symbol list */ + error = symlist_init(work, &work->symlist); + if (error < 0) { + pr_error("failed to alloc symlist\n"); + return error; + } + while (error == 0) { error = lex_nom(work, &tok); if (error == LEX_EOF) { |