summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMomtchil Momtchev <momtchil@momtchev.com>2023-04-23 20:37:47 +0200
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2023-05-06 10:54:14 +0100
commite92ffa84ef84429179c2a1a2a075b3c5cb61535f (patch)
treecefc4f24e01d7fb2c420d550e4780e30a083c5c1 /Source
parent1657a0a1ec8dbdded01ab0a225bf290b44ef4a18 (diff)
downloadswig-e92ffa84ef84429179c2a1a2a075b3c5cb61535f.tar.gz
tentative fix for typedef/using declaration to struct typedef
Diffstat (limited to 'Source')
-rw-r--r--Source/Swig/symbol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Swig/symbol.c b/Source/Swig/symbol.c
index 7c7c4d100..934e1ed9e 100644
--- a/Source/Swig/symbol.c
+++ b/Source/Swig/symbol.c
@@ -839,11 +839,13 @@ Node *Swig_symbol_add(const_String_or_char_ptr symname, Node *n) {
/* Hmmm. This appears to be okay. Make sure the symbol table refers to the allow_type node */
+ Setattr(current, symname, td);
if (td != c) {
- Setattr(current, symname, td);
- Setattr(td, "sym:symtab", current_symtab);
+ Setattr(td, "sym:symtab", current_symtab);
Setattr(td, "sym:name", symname);
}
+ Setattr(n, "sym:symtab", current_symtab);
+ Setattr(n, "sym:name", symname);
return n;
}