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:
parent
91a076f516
commit
b35cc31dd1
1 changed files with 4 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue