diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2023-05-05 23:23:42 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2023-05-06 11:13:23 +0100 |
commit | 65be8812959aa0d2e9805e31549bbeac0cc89691 (patch) | |
tree | 0f7d8762c507517905f5344f57db725e96c263eb /Source | |
parent | 33b483492008b05b0625efb62cebb9ad5ae0638f (diff) | |
download | swig-65be8812959aa0d2e9805e31549bbeac0cc89691.tar.gz |
Partial revert of previous commit for typedefs
Setting current symbol table for a typedef seems wrong.
No difference to test-suite though.
Testcase rename for C++11 testing and minor adjustments.
Issue #2550
Closes #2551
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Swig/symbol.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Swig/symbol.c b/Source/Swig/symbol.c index 934e1ed9e..8e24c9ec7 100644 --- a/Source/Swig/symbol.c +++ b/Source/Swig/symbol.c @@ -839,13 +839,11 @@ 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(td, "sym:symtab", current_symtab); - Setattr(td, "sym:name", symname); - } Setattr(n, "sym:symtab", current_symtab); Setattr(n, "sym:name", symname); + if (td == n) { + Setattr(current, symname, td); + } return n; } |