Use the DOH String instead of a static char array.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-09-19 18:13:53 +00:00
commit 93d3c4b6d2
5 changed files with 24 additions and 27 deletions

View file

@ -833,7 +833,6 @@ public:
SwigType *t = Getattr(n,"type");
String *proc_name = NewString("");
char var_name[256];
String *tm;
String *tm2 = NewString("");;
String *argnum = NewString("0");
@ -854,8 +853,8 @@ public:
f = NewWrapper();
// evaluation function names
strcpy(var_name, Char(Swig_name_wrapper(iname)));
String *var_name = Swig_name_wrapper(iname);
// Build the name for scheme.
Printv(proc_name, iname, NIL);
@ -931,6 +930,7 @@ public:
mname, var_name );
}
Delete(var_name);
Delete(proc_name);
Delete(argnum);
Delete(arg);