more perl cleaning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
db4f2f71a1
commit
2f1217145a
2 changed files with 5 additions and 12 deletions
|
|
@ -19,13 +19,7 @@ typedef struct SWIGCDATA {
|
|||
* Typemaps for returning binary data
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#if SWIGPERL
|
||||
%typemap(out) SWIGCDATA {
|
||||
ST(argvi) = sv_newmortal();
|
||||
sv_setpvn((SV*)ST(argvi++),$1.data,$1.len);
|
||||
}
|
||||
%typemap(in) (const void *indata, int inlen) = (char *STRING, int LENGTH);
|
||||
#elif SWIGGUILE
|
||||
#if SWIGGUILE
|
||||
%typemap(out) SWIGCDATA {
|
||||
$result = gh_str2scm($1.data,$1.len);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue