summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2023-05-06 11:36:30 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2023-05-06 11:36:30 +0100
commite0c7f81ba58489f25764e7b52884c81758c4a41c (patch)
treec41961e19486668ada1db23c5e94ad40fd8e6357 /Source
parent87690113cd3883e25a8d7040054d008fccf9b5c2 (diff)
parent65be8812959aa0d2e9805e31549bbeac0cc89691 (diff)
downloadswig-e0c7f81ba58489f25764e7b52884c81758c4a41c.tar.gz
Merge branch 'typedef-namespace'
* typedef-namespace: Partial revert of previous commit for typedefs add an unit test tentative fix for typedef/using declaration to struct typedef Conflicts: CHANGES.current
Diffstat (limited to 'Source')
-rw-r--r--Source/Swig/symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Swig/symbol.c b/Source/Swig/symbol.c
index 7c7c4d100..8e24c9ec7 100644
--- a/Source/Swig/symbol.c
+++ b/Source/Swig/symbol.c
@@ -839,10 +839,10 @@ 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 */
- if (td != c) {
+ Setattr(n, "sym:symtab", current_symtab);
+ Setattr(n, "sym:name", symname);
+ if (td == n) {
Setattr(current, symname, td);
- Setattr(td, "sym:symtab", current_symtab);
- Setattr(td, "sym:name", symname);
}
return n;
}