Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | |
2 | /* ------------------------------------------------------------ | |
3 | * --- ANSI/Posix C/C++ types --- | |
4 | * ------------------------------------------------------------ */ | |
5 | ||
6 | %types(size_t); | |
7 | %apply unsigned long { size_t }; | |
8 | %apply const unsigned long& { const size_t& }; | |
9 | %apply unsigned long& { size_t& }; | |
10 | ||
11 | %types(ptrdiff_t); | |
12 | %apply long { ptrdiff_t }; | |
13 | %apply const long& { const ptrdiff_t& }; | |
14 | %apply long& { ptrdiff_t& }; | |
15 | ||
16 | #ifdef __cplusplus | |
17 | %types(std::size_t); | |
18 | %apply unsigned long { std::size_t }; | |
19 | %apply const unsigned long& { const std::size_t& }; | |
20 | %apply unsigned long& { std::size_t& }; | |
21 | ||
22 | %types(std::ptrdiff_t); | |
23 | %apply long { std::ptrdiff_t }; | |
24 | %apply const long& { const std::ptrdiff_t& }; | |
25 | %apply long& { std::ptrdiff_t& }; | |
26 | #endif | |
27 | ||
28 | ||
29 |