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:
parent
54ac86798a
commit
88a08fdfc8
2 changed files with 12 additions and 1 deletions
|
|
@ -5,5 +5,12 @@
|
||||||
//
|
//
|
||||||
// Tcl implementation
|
// 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& };
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -462,8 +462,12 @@
|
||||||
* ANSI C typemaps
|
* ANSI C typemaps
|
||||||
* ------------------------------------------------------------ */
|
* ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
%types(size_t);
|
||||||
%apply unsigned long { size_t };
|
%apply unsigned long { size_t };
|
||||||
|
|
||||||
|
%types(ptrdiff_t);
|
||||||
|
%apply long { ptrdiff_t };
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------
|
/* ------------------------------------------------------------
|
||||||
* Typechecking rules
|
* Typechecking rules
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue