28 lines
674 B
Diff
28 lines
674 B
Diff
|
Index: Source/Swig/stype.c
|
||
|
===================================================================
|
||
|
--- Source/Swig/stype.c (revision 12813)
|
||
|
+++ Source/Swig/stype.c (revision 12814)
|
||
|
@@ -823,7 +823,8 @@
|
||
|
Insert(result, 0, "(");
|
||
|
Append(result, ")");
|
||
|
}
|
||
|
- isreference = 1;
|
||
|
+ if (!isfunction)
|
||
|
+ isreference = 1;
|
||
|
} else if (SwigType_isarray(element)) {
|
||
|
DOH *size;
|
||
|
if (firstarray && !isreference) {
|
||
|
@@ -869,10 +870,8 @@
|
||
|
cast = NewStringf("(%s)", result);
|
||
|
}
|
||
|
if (name) {
|
||
|
- if (!isfunction) {
|
||
|
- if (isreference) {
|
||
|
- Append(cast, "*");
|
||
|
- }
|
||
|
+ if (isreference) {
|
||
|
+ Append(cast, "*");
|
||
|
}
|
||
|
Append(cast, name);
|
||
|
}
|