size_t fix

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-01 21:12:01 +00:00
commit a87c96ec8e
8 changed files with 8 additions and 23 deletions

View file

@ -437,15 +437,7 @@ $result = C_SCHEME_UNDEFINED;
* ANSI C typemaps
* ------------------------------------------------------------ */
%typemap(in) size_t
%{ if (!C_swig_is_flonum ($input)) {
swig_barf (SWIG_BARF1_BAD_ARGUMENT_TYPE, "Argument #$argnum is not of type 'flonum'");
}
$1 = (size_t) C_flonum_magnitude ($input); %}
%typemap(out) size_t = long;
%typemap(varin) size_t = long;
%typemap(varout) size_t = long;
%typemap(constcode) size_t = long;
%apply unsigned long { size_t };
/* ------------------------------------------------------------
* CHICKEN types

View file

@ -514,7 +514,7 @@ using System.Runtime.InteropServices;
/* Some ANSI C typemaps */
%apply long { size_t };
%apply unsigned long { size_t };
/* csharp keywords */
/* please test and activate */

View file

@ -278,7 +278,7 @@ typedef unsigned long SCM;
/* Some ANSI C typemaps */
%apply long { size_t };
%apply unsigned long { size_t };
/* ------------------------------------------------------------
* String & length

View file

@ -972,7 +972,7 @@
/* Some ANSI C typemaps */
%apply long { size_t };
%apply unsigned long { size_t };
/* java keywords */
/* please test and activate */

View file

@ -743,4 +743,4 @@ FROM BlaBla IMPORT Bla;
/* Some ANSI C typemaps */
%apply long { size_t };
%apply unsigned long { size_t };

View file

@ -499,7 +499,7 @@ deliberate error cos this code looks bogus to me
/* Some ANSI C typemaps */
%apply long { size_t };
%apply unsigned long { size_t };
/* php kewords */
/* please test and activate */

View file

@ -2,5 +2,5 @@
* --- ANSI/Posix C/C++ types ---
* ------------------------------------------------------------ */
%apply long { size_t };
%apply unsigned long { size_t };

View file

@ -462,14 +462,7 @@
* ANSI C typemaps
* ------------------------------------------------------------ */
%typemap(in) size_t (int temp) "if (Tcl_GetIntFromObj(interp,$input,&temp) == TCL_ERROR) return TCL_ERROR;
$1 = (size_t) temp;";
%typemap(out) size_t = long;
%typemap(varin) size_t = long;
%typemap(varout) size_t = long;
%typemap(consttab) size_t = long;
%apply unsigned long { size_t };
/* ------------------------------------------------------------