Mark 'externc' storage for variables
This commit is contained in:
parent
d47970e2fd
commit
befc9bc1f0
3 changed files with 14 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue