From ef82689edd12da051c8a715f871c3dc00743803e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 21:42:58 -0400 Subject: np: parse: Allocate new PIIR stack into work desc Signed-off-by: Ian Moffett --- src/sys/np/core/np_parse.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sys/np') diff --git a/src/sys/np/core/np_parse.c b/src/sys/np/core/np_parse.c index 81c5a8d..fd35e3c 100644 --- a/src/sys/np/core/np_parse.c +++ b/src/sys/np/core/np_parse.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -348,6 +349,13 @@ parse_work(struct np_work *work) return -ENOMEM; } + /* Initialize PIIR */ + error = piir_stack_new(work, &work->piir_stack); + if (error < 0) { + pr_error("failed to alloc PIIR stack\n"); + return error; + } + while (error == 0) { error = lex_nom(work, &tok); if (error == LEX_EOF) { -- cgit v1.2.3