From dd502bfae0a19b7992a7cab55f2ae3096c93896c 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/SWIG@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pymisctypes.swg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/python/pymisctypes.swg b/Lib/python/pymisctypes.swg index d782abb8a..001f7b285 100644 --- a/Lib/python/pymisctypes.swg +++ b/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 + +