diff options
author | Vladimir Kalinin <vkalinin@opendesign.com> | 2013-12-17 12:14:33 +0400 |
---|---|---|
committer | Vladimir Kalinin <vkalinin@opendesign.com> | 2013-12-17 12:14:33 +0400 |
commit | 25689857eb7ae8d1027dc8550686005807ed0641 (patch) | |
tree | a597af60b682bc35428347672c0333615501bb2b | |
parent | 1dca0af0241475c11a842e4dd4c16ff7b367a962 (diff) | |
download | swig-25689857eb7ae8d1027dc8550686005807ed0641.tar.gz |
Language::addSymbol fix, to handle classes correctly
-rw-r--r-- | Source/Modules/lang.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index 78c37dbb9..be83b5069 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -3049,12 +3049,6 @@ int Language::addSymbol(const String *s, const Node *n, const_String_or_char_ptr // New scope which has not been added by the target language - lazily created. symbols = NewHash(); Setattr(symtabs, scope, symbols); - - // Add the new scope as a symbol in the top level scope. - // Alternatively the target language must add it in before attempting to add symbols into the scope. - const_String_or_char_ptr top_scope = ""; - Hash *topscope_symbols = Getattr(symtabs, top_scope); - Setattr(topscope_symbols, scope, NewHash()); } else { Node *c = Getattr(symbols, s); if (c && (c != n)) { |