aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-15 03:09:23 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-15 03:09:23 +0300
commit1b58c86d6856339d71bfc124fc8f48fbd2b09fd0 (patch)
treea638375b37aa294c1b2e4f6f6623345f6b5a4559 /src/parser.y
parent2ef60c2a9520b02256c6f5051468aedbfb69683b (diff)
downloadek-1b58c86d6856339d71bfc124fc8f48fbd2b09fd0.tar.gz
ek-1b58c86d6856339d71bfc124fc8f48fbd2b09fd0.zip
initial working struct call tests pass
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index 4837a53..b120e1b 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -691,11 +691,11 @@ proc
NULL,
src_loc(@$));
- ast_set_flags($$, AST_FLAG_EXTERN);
+ ast_set_flags($$, AST_FLAG_EXTERN | AST_FLAG_NOMANGLE);
}
| "extern" ID "(" opt_decls ")" {
$$ = gen_proc($[ID], $[opt_decls], NULL, NULL, src_loc(@$));
- ast_set_flags($$, AST_FLAG_EXTERN);
+ ast_set_flags($$, AST_FLAG_EXTERN | AST_FLAG_NOMANGLE);
}
member