summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-28 08:04:01 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-28 08:04:01 +0000
commitdf2c9d366da788ca90018d5ee26f7c9a531be26c (patch)
tree21b3ec36f59a1a26822b7f251a99c2928648541b
parentcd2085aae7e34613978b372bf554aa94d8ffa3af (diff)
downloadswig-df2c9d366da788ca90018d5ee26f7c9a531be26c.tar.gz
Remove some useless code
-rw-r--r--CHANGES.current5
-rw-r--r--Source/Modules/go.cxx3
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGES.current b/CHANGES.current
index f6b301024..2fd55ba86 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -6,7 +6,10 @@ Version 3.0.1 (in progress)
===========================
2014-03-28: wsfulton
- [Java C# D Go] Fix for usage of snprintf in Lua runtime which Visual Studio does not have.
+ [Java C# D Go] Fixes for C enums used in an API and the definition of the enum
+ has not been parsed. For D, this fixes a segfault in SWIG. The other languages
+ now produce code that compiles, although the definition of the enum is needed
+ in order to use the enum properly from the target language.
2014-03-23: v-for-vandal
[Lua] Fix for usage of snprintf in Lua runtime which Visual Studio does not have.
diff --git a/Source/Modules/go.cxx b/Source/Modules/go.cxx
index f94921fba..a6a74ccac 100644
--- a/Source/Modules/go.cxx
+++ b/Source/Modules/go.cxx
@@ -4787,14 +4787,11 @@ private:
ret = NewString("_Complex double ");
} else if (is_interface) {
SwigType *t = SwigType_typedef_resolve_all(type);
- SwigType_strip_qualifiers(t);
if (SwigType_ispointer(t)) {
SwigType_del_pointer(t);
- SwigType_strip_qualifiers(t);
}
if (SwigType_isreference(t)) {
SwigType_del_reference(t);
- SwigType_strip_qualifiers(t);
}
SwigType_add_pointer(t);
ret = SwigType_lstr(t, name);