74f8d948bc
- backport r12814 from trunk (#753321) - use scm_to_utf8_string instead of SCM_STRING_CHARS in guile bindings (#752054) - improve Octave compatibility (#679948) Signed-off-by: Adam Tkac <atkac@redhat.com>
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);
|
|
}
|