Removed varin typemaps for SWIGTYPE[] (dimensionless arrays).

These were useless as they just produced a setter that gave a runtime error.
Exposes some missing varin SWIGTYPE[ANY] typemaps - they show up in the test-suite.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-06-01 22:59:10 +00:00
commit a951a86659
5 changed files with 2 additions and 17 deletions

View file

@ -226,7 +226,7 @@
%typemap(varin) long long "$1 = ($1_ltype) strtoll(SvPV($input, PL_na), 0, 0);";
%typemap(varin) unsigned long long "$1 = ($1_ltype) strtoull(SvPV($input, PL_na), 0, 0);";
%typemap(varin) SWIGTYPE *, SWIGTYPE [] {
%typemap(varin) SWIGTYPE * {
if (SWIG_ConvertPtr($input, (void **) &$1, $1_descriptor,0) < 0) {
croak("Type error in argument $argnum of $symname. Expected $1_mangle");
}
@ -325,8 +325,6 @@
%typemap(varin) char [ANY]
"strncpy($1, (char *) SvPV(sv,PL_na), $1_dim0);";
%typemap(varin) SWIGTYPE [] "croak(\"Value is read-only.\");";
%typemap(varin) enum SWIGTYPE
"$1 = ($1_type) SvIV($input);";