Mark 'externc' storage for variables

This commit is contained in:
Seth R Johnson 2019-04-23 19:26:53 -04:00
commit befc9bc1f0
3 changed files with 14 additions and 2 deletions

View file

@ -3133,8 +3133,7 @@ c_declaration : c_decl {
Setattr($$,"name",$2);
appendChild($$,n);
while (n) {
SwigType *decl = Getattr(n,"decl");
if (SwigType_isfunction(decl) && !Equal(Getattr(n, "storage"), "typedef")) {
if (!Equal(Getattr(n, "storage"), "typedef")) {
Setattr(n,"storage","externc");
}
n = nextSibling(n);