more fixes for size_t

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-15 20:56:37 +00:00
commit cd00d0106e
2 changed files with 11 additions and 9 deletions

View file

@ -6,7 +6,7 @@
// Tcl implementation
%types(std::size_t);
%apply unsigned long { std::size_t };
%apply size_t { std::size_t };
%apply const unsigned long& { const std::size_t& };
%types(std::ptrdiff_t);

View file

@ -79,14 +79,14 @@
/* Constant references. Passed by value */
/* Const primitive references. Passed by value */
%typemap(in) const int & (int temp),
const short & (short temp),
const long & (long temp),
const unsigned int & (unsigned int temp),
const unsigned short & (unsigned short temp),
const unsigned long & (unsigned long temp),
const signed char & (signed char temp),
const unsigned char & (unsigned char temp)
%typemap(in) const int & ($basetype temp),
const short & ($basetype temp),
const long & ($basetype temp),
const unsigned int & ($basetype temp),
const unsigned short & ($basetype temp),
const unsigned long & ($basetype temp),
const signed char & ($basetype temp),
const unsigned char & ($basetype temp)
{
long ltemp;
if (Tcl_GetLongFromObj(interp, $input, &ltemp) != TCL_OK) {
@ -464,9 +464,11 @@
%types(size_t);
%apply unsigned long { size_t };
%apply const unsigned long& { const size_t& };
%types(ptrdiff_t);
%apply long { ptrdiff_t };
%apply const long& { const ptrdiff_t& };
/* ------------------------------------------------------------