diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-27 12:33:58 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-27 12:33:58 +0000 |
| commit | a3b85c9737b509fd2a792b65aa2365b9bcc9fe6a (patch) | |
| tree | 829577514fc4f0436e61c523eb1082afe891bcbf /src/parser/parser_core.c | |
| parent | b40fc44f799b4810981d37d9030ca69d768cc0b2 (diff) | |
Support for more attributes
Diffstat (limited to 'src/parser/parser_core.c')
| -rw-r--r-- | src/parser/parser_core.c | 14 |
1 files changed, 14 insertions, 0 deletions
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) |
