Fixed two test cases.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Art Yerkes 2003-06-06 01:42:57 +00:00
commit 10af7694d7
2 changed files with 3 additions and 1 deletions

View file

@ -61,7 +61,6 @@ namespace std {
%extend {
T *to_array() {
T *array = new T[self->size() + 1];
array[self->size()] = T();
for( int i = 0; i < self->size(); i++ )
array[i] = (*self)[i];
return array;

View file

@ -130,6 +130,9 @@
temp = ($*1_ltype) MZ_TO_C($input);
$1 = &temp;
}
%typemap(varin) C_NAME & {
$1 = MZ_TO_C($input);
}
%typemap(outv) C_NAME {
$1 = MZ_TO_C($input);
}