for clarity and for easier maintainance. pyrun.swg almost the same than 1.3.20, therefore there will be compatible again. code generated is reduced by the use and reuse of %fragments. as usual, all the test-suite is compiling and a much bigger "test project" too. with the new typemaps definition should be much eaiser and uniform add stl/std and user types. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
17 lines
511 B
Text
17 lines
511 B
Text
|
|
/* ------------------------------------------------------------
|
|
* --- ANSI/Posix C/C++ types ---
|
|
* ------------------------------------------------------------ */
|
|
|
|
%apply unsigned long { size_t };
|
|
%apply const unsigned long& { const size_t& };
|
|
%apply long { ptrdiff_t };
|
|
%apply const long& { const ptrdiff_t& };
|
|
|
|
#ifdef __cplusplus
|
|
%apply unsigned long { std::size_t };
|
|
%apply const unsigned long& { const std::size_t& };
|
|
%apply long { std::ptrdiff_t };
|
|
%apply const long& { const std::ptrdiff_t& };
|
|
#endif
|
|
|