Minor fix to Octave autodoc generation for functions returning structs

Patch #27

- see also git commit 72ffdb930d
This commit is contained in:
Karl Wette 2013-02-17 15:56:25 +01:00 committed by William S Fulton
commit 52c754a22d
2 changed files with 6 additions and 7 deletions

View file

@ -355,14 +355,10 @@ public:
SwigType *type = Getattr(n, "type");
if (type && Strcmp(type, "void")) {
type = SwigType_base(type);
Node *lookup = Swig_symbol_clookup(type, 0);
if (lookup)
type = Getattr(lookup, "sym:name");
Node *nn = classLookup(Getattr(n, "type"));
String *type_str = nn ? Copy(Getattr(nn, "sym:name")) : SwigType_str(type, 0);
Append(decl_info, "@var{retval} = ");
String *type_str = NewString("");
Printf(type_str, "@var{retval} is of type %s. ", type);
Append(args_str, type_str);
Printf(args_str, "%s@var{retval} is of type %s. ", args_str, type_str);
Delete(type_str);
}