more fixes to use %apply and char, unsigned char and others
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ae96b6ec7d
commit
8947229522
1 changed files with 6 additions and 6 deletions
|
|
@ -35,7 +35,7 @@
|
|||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res,"$type",$symname, $argnum);
|
||||
}
|
||||
$1 = %static_cast(buf, $1_ltype);
|
||||
$1 = %reinterpret_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 = %static_cast(buf, $ltype);
|
||||
$result = %reinterpret_cast(buf, $ltype);
|
||||
}
|
||||
%typemap(directorfree,noblock=1) Char *
|
||||
{
|
||||
|
|
@ -415,7 +415,7 @@
|
|||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res,"$type",$symname, $argnum);
|
||||
}
|
||||
$1 = %static_cast(buf, $1_ltype);
|
||||
$1 = %reinterpret_cast(buf, $1_ltype);
|
||||
$2 = %numeric_cast(size - 1, $2_ltype);
|
||||
}
|
||||
%typemap(freearg,noblock=1,match="in") (Char *STRING, size_t LENGTH) {
|
||||
|
|
@ -435,7 +435,7 @@
|
|||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res,"$type",$symname, $argnum);
|
||||
}
|
||||
$1 = %static_cast(buf, $1_ltype);
|
||||
$1 = %reinterpret_cast(buf, $1_ltype);
|
||||
$2 = %numeric_cast(size, $2_ltype);
|
||||
}
|
||||
%typemap(freearg,noblock=1,match="in") (Char *STRING, size_t SIZE) {
|
||||
|
|
@ -457,7 +457,7 @@
|
|||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res,"$type",$symname, $argnum);
|
||||
}
|
||||
$2 = %static_cast(buf, $2_ltype) ;
|
||||
$2 = %reinterpret_cast(buf, $2_ltype) ;
|
||||
$1 = %numeric_cast(size - 1, $1_ltype) ;
|
||||
}
|
||||
%typemap(freearg, noblock=1, match="in") (size_t LENGTH, Char *STRING) {
|
||||
|
|
@ -476,7 +476,7 @@
|
|||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res, "$type",$symname, $argnum);
|
||||
}
|
||||
$2 = %static_cast(buf, $2_ltype) ;
|
||||
$2 = %reinterpret_cast(buf, $2_ltype) ;
|
||||
$1 = %numeric_cast(size, $1_ltype) ;
|
||||
}
|
||||
%typemap(freearg, noblock=1, match="in") (size_t SIZE, Char *STRING) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue