summaryrefslogtreecommitdiff
path: root/src/parser/parser_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parser_core.c')
-rw-r--r--src/parser/parser_core.c14
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)