fix changes in 1.3 to better support %apply, it didn't compile with python before

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-05-03 23:08:15 +00:00
commit f95d974620

View file

@ -35,7 +35,7 @@
if (!SWIG_IsOK(res)) {
%argument_fail(res,"$type",$symname, $argnum);
}
$1 = ($1_type)buf;
$1 = %static_cast(buf, $1_ltype);
}
%typemap(freearg,noblock=1,match="in") Char *, const Char * {
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
@ -174,7 +174,7 @@
if (alloc == SWIG_NEWOBJ) {
swig_acquire_ownership_array(buf);
}
$result = ($1_type)buf;
$result = %static_cast(buf, $ltype);
}
%typemap(directorfree,noblock=1) Char *
{