Use the DOH String instead of a static char array.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
05fd4e3fea
commit
3403303a40
5 changed files with 24 additions and 27 deletions
|
|
@ -1591,7 +1591,6 @@ public:
|
|||
|
||||
Parm *p;
|
||||
int i;
|
||||
char wname[256];
|
||||
char source[64];
|
||||
Wrapper *f;
|
||||
String *parse_args;
|
||||
|
|
@ -1657,11 +1656,9 @@ public:
|
|||
((num_arguments == 1) && (num_required == 1) && Getattr(l,"self"))) allow_kwargs = 0;
|
||||
varargs = emit_isvarargs(l);
|
||||
|
||||
String *nw = Swig_name_wrapper(iname);
|
||||
strcpy(wname,Char(nw));
|
||||
Delete(nw);
|
||||
String *wname = Swig_name_wrapper(iname);
|
||||
if (overname) {
|
||||
strcat(wname,Char(overname));
|
||||
Append(wname, overname);
|
||||
}
|
||||
|
||||
if (!allow_kwargs || Getattr(n,"sym:overloaded")) {
|
||||
|
|
@ -2176,6 +2173,7 @@ public:
|
|||
Delete(cleanup);
|
||||
Delete(outarg);
|
||||
Delete(kwargs);
|
||||
Delete(wname);
|
||||
DelWrapper(f);
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue