~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Lib/python/pymisctypes.swg

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-01-10 09:48:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050110094852-axi555axhj1brbwq
Tags: 1.3.22-5ubuntu2
Build using python2.4 and pike7.6. Closes: #4146.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* ------------------------------------------------------------
 
3
 * --- ANSI/Posix C/C++ types ---
 
4
 * ------------------------------------------------------------ */
 
5
 
 
6
%apply unsigned long { size_t };
 
7
%apply const unsigned long& { const size_t& };
 
8
%apply unsigned long& { size_t& };
 
9
%apply long { ptrdiff_t };
 
10
%apply const long& { const ptrdiff_t& };
 
11
%apply long& { ptrdiff_t& };
 
12
 
 
13
#ifdef __cplusplus
 
14
%apply unsigned long { std::size_t };
 
15
%apply const unsigned long& { const std::size_t& };
 
16
%apply unsigned long& { std::size_t& };
 
17
%apply long { std::ptrdiff_t };
 
18
%apply const long& { const std::ptrdiff_t& };
 
19
%apply long& { std::ptrdiff_t& };
 
20
#endif
 
21