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:
parent
b40f47a7fd
commit
cd00d0106e
2 changed files with 11 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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, <emp) != 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& };
|
||||
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue