aboutsummaryrefslogtreecommitdiff
path: root/Source/Modules/utils.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Modules/utils.cxx')
-rw-r--r--Source/Modules/utils.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/Modules/utils.cxx b/Source/Modules/utils.cxx
index 2964ed3a6..2d956c4c8 100644
--- a/Source/Modules/utils.cxx
+++ b/Source/Modules/utils.cxx
@@ -4,14 +4,14 @@
* terms also apply to certain portions of SWIG. The full details of the SWIG
* license and copyrights can be found in the LICENSE and COPYRIGHT files
* included with the SWIG source code as distributed by the SWIG developers
- * and at http://www.swig.org/legal.html.
+ * and at https://www.swig.org/legal.html.
*
* utils.cxx
*
* Various utility functions.
* ----------------------------------------------------------------------------- */
-#include <swigmod.h>
+#include "swigmod.h"
int is_public(Node *n) {
String *access = Getattr(n, "access");
@@ -66,7 +66,11 @@ int is_non_virtual_protected_access(Node *n) {
return result;
}
-/* Clean overloaded list. Removes templates, ignored, and errors */
+/* -----------------------------------------------------------------------------
+ * clean_overloaded()
+ *
+ * Clean overloaded list. Removes templates, ignored, and errors.
+ * ----------------------------------------------------------------------------- */
void clean_overloaded(Node *n) {
Node *nn = Getattr(n, "sym:overloaded");
@@ -89,6 +93,7 @@ void clean_overloaded(Node *n) {
Delattr(nn, "sym:previousSibling");
Delattr(nn, "sym:nextSibling");
Delattr(nn, "sym:overloaded");
+ Delattr(nn, "sym:overname");
nn = ns;
continue;
} else {
@@ -102,6 +107,8 @@ void clean_overloaded(Node *n) {
if (Getattr(n, "sym:overloaded"))
Delattr(n, "sym:overloaded");
}
+
+ Swig_symbol_fix_overname(Getattr(n, "sym:overloaded"));
}
/* -----------------------------------------------------------------------------
@@ -115,6 +122,7 @@ void Swig_set_max_hash_expand(int count) {
SetMaxHashExpand(count);
}
+
extern "C" {
/* -----------------------------------------------------------------------------