improved support for size_t/ptrdiff_t

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6725 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-13 01:26:50 +00:00
commit 88a08fdfc8
2 changed files with 12 additions and 1 deletions

View file

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

View file

@ -462,8 +462,12 @@
* ANSI C typemaps
* ------------------------------------------------------------ */
%types(size_t);
%apply unsigned long { size_t };
%types(ptrdiff_t);
%apply long { ptrdiff_t };
/* ------------------------------------------------------------
* Typechecking rules