Change handling of char[ANY] output typemaps, have it return the null

padding and use t_output_helper.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Kevin Ruland 2005-09-20 14:44:56 +00:00
commit b35cc31dd1

View file

@ -138,8 +138,10 @@ int_typemap(unsigned char);
}
%typemap(argout) char OUTPUT[ANY]
{
size_t len = strnlen($1,$1_dim0);
RETURN_STRINGL( $1, len );
zval *o;
MAKE_STD_ZVAL(o);
ZVAL_STRINGL(o,temp$argnum,$1_dim0);
t_output_helper( &$result, o );
}
%typemap(in,numinputs=0) void **OUTPUT (int force),