From a3b85c9737b509fd2a792b65aa2365b9bcc9fe6a Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Tue, 27 Jan 2026 12:33:58 +0000 Subject: Support for more attributes --- src/parser/parser_core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/parser/parser_core.c') diff --git a/src/parser/parser_core.c b/src/parser/parser_core.c index d575693..ac578a1 100644 --- a/src/parser/parser_core.c +++ b/src/parser/parser_core.c @@ -516,6 +516,20 @@ ASTNode *parse_program_nodes(ParserContext *ctx, Lexer *l) } } + if (s && s->type == NODE_STRUCT) + { + s->strct.is_export = attr_export; + s->strct.is_packed = attr_packed || s->strct.is_packed; + if (attr_align) + { + s->strct.align = attr_align; + } + if (attr_deprecated && s->strct.name) + { + register_deprecated_func(ctx, s->strct.name, deprecated_msg); + } + } + if (s) { if (!h) -- cgit v1.2.3