Eliminate space before "function" when there's no access specifier (just a
cosmetic tweak). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
abcff1089d
commit
37b9370344
1 changed files with 5 additions and 2 deletions
|
|
@ -1570,6 +1570,9 @@ public:
|
|||
Delete(warnmsg);
|
||||
}
|
||||
}
|
||||
if (Cmp(acc, "") != 0) {
|
||||
Append(acc, " ");
|
||||
}
|
||||
if (constructor) {
|
||||
const char * arg0;
|
||||
if (max_num_of_arguments > 0) {
|
||||
|
|
@ -1581,13 +1584,13 @@ public:
|
|||
}
|
||||
SwigType *t = Getattr(current_class, "classtype");
|
||||
String *mangled_type = SwigType_manglestr(SwigType_ltype(t));
|
||||
Printf(output, "\t%s function %s(%s) {\n", acc, methodname, args);
|
||||
Printf(output, "\t%sfunction %s(%s) {\n", acc, methodname, args);
|
||||
Printf(output, "\t\tif (is_resource($%s) && get_resource_type($%s) === '_p%s') {\n", arg0, arg0, mangled_type);
|
||||
Printf(output, "\t\t\t$this->%s=$%s;\n", SWIG_PTR, arg0);
|
||||
Printf(output, "\t\t\treturn;\n");
|
||||
Printf(output, "\t\t}\n");
|
||||
} else {
|
||||
Printf(output, "\t%s function %s(%s) {\n", acc, methodname, args);
|
||||
Printf(output, "\t%sfunction %s(%s) {\n", acc, methodname, args);
|
||||
}
|
||||
Delete(acc);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue