cosmetics and remove extra freearg typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-28 22:38:49 +00:00
commit 03d7aba73c

View file

@ -54,7 +54,7 @@
if (SWIG_IsNewObj(res$argnum)) %delete($1); if (SWIG_IsNewObj(res$argnum)) %delete($1);
} }
#else #else
%typemap(in, noblock=1) const SWIGTYPE & (void *argp) { %typemap(in,noblock=1) const SWIGTYPE & (void *argp) {
if (!SWIG_IsOK(SWIG_ConvertPtr($input, &argp, $descriptor, %convertptr_flags))) { if (!SWIG_IsOK(SWIG_ConvertPtr($input, &argp, $descriptor, %convertptr_flags))) {
%argument_fail(SWIG_TypeError, "$type", $argnum); %argument_fail(SWIG_TypeError, "$type", $argnum);
} }
@ -92,9 +92,9 @@
$1 = *(%reinterpret_cast(argp, $&ltype)); $1 = *(%reinterpret_cast(argp, $&ltype));
} }
} }
%typemap(freearg) SWIGTYPE "";
#endif #endif
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* --- Output arguments --- * --- Output arguments ---
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */