From d4992f8f26bcc297d2c1939b536cdf3ac9b6323c Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 7 Nov 2004 02:22:29 +0000 Subject: [PATCH] add missing %types git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pymisctypes.swg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SWIG/Lib/python/pymisctypes.swg b/SWIG/Lib/python/pymisctypes.swg index d782abb8a..001f7b285 100644 --- a/SWIG/Lib/python/pymisctypes.swg +++ b/SWIG/Lib/python/pymisctypes.swg @@ -3,21 +3,27 @@ * --- ANSI/Posix C/C++ types --- * ------------------------------------------------------------ */ +%types(size_t); %apply unsigned long { size_t }; %apply const unsigned long& { const size_t& }; %apply unsigned long& { size_t& }; +%types(ptrdiff_t); %apply long { ptrdiff_t }; %apply const long& { const ptrdiff_t& }; %apply long& { ptrdiff_t& }; #ifdef __cplusplus +%types(std::size_t); %apply unsigned long { std::size_t }; %apply const unsigned long& { const std::size_t& }; %apply unsigned long& { std::size_t& }; +%types(std::ptrdiff_t); %apply long { std::ptrdiff_t }; %apply const long& { const std::ptrdiff_t& }; %apply long& { std::ptrdiff_t& }; #endif + +