Missing char[] typemaps added

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-06-15 20:07:49 +00:00
commit 0901b50f9d

View file

@ -186,6 +186,16 @@ namespace std {
else $1[0] = 0;
}
%typemap(memberin) char [] {
if ($input) strcpy($1,$input);
else $1[0] = 0;
}
%typemap(globalin) char [] {
if ($input) strcpy($1,$input);
else $1[0] = 0;
}
/* memberin typemap for arrays. */
%typemap(memberin) SWIGTYPE [ANY] {