blob: 14fe6195e23e561e8e769a44af0e6812e66096f2 [file] [log] [blame]
William S Fulton49be05f2006-03-07 00:14:10 +00001/* -----------------------------------------------------------------------------
William S Fulton49be05f2006-03-07 00:14:10 +00002 * stdint.i
3 *
4 * SWIG library file for ISO C99 types: 7.18 Integer types <stdint.h>
5 * ----------------------------------------------------------------------------- */
Marcelo Matusda1f4a02005-11-21 20:27:24 +00006
7%{
Marcelo Matus38a72d82006-01-22 00:02:38 +00008#include <stdint.h> // Use the C99 official header
Marcelo Matusda1f4a02005-11-21 20:27:24 +00009%}
10
Marcelo Matusd79b9fc2005-12-01 07:00:24 +000011%include <swigarch.i>
Marcelo Matusda1f4a02005-11-21 20:27:24 +000012
13/* Exact integral types. */
14
15/* Signed. */
16
17typedef signed char int8_t;
18typedef short int int16_t;
19typedef int int32_t;
Marcelo Matus81502782005-12-01 06:54:05 +000020#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000021typedef long int int64_t;
22#else
23typedef long long int int64_t;
24#endif
25
26/* Unsigned. */
27typedef unsigned char uint8_t;
28typedef unsigned short int uint16_t;
29typedef unsigned int uint32_t;
Marcelo Matus81502782005-12-01 06:54:05 +000030#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000031typedef unsigned long int uint64_t;
32#else
33typedef unsigned long long int uint64_t;
34#endif
35
36
37/* Small types. */
38
39/* Signed. */
40typedef signed char int_least8_t;
41typedef short int int_least16_t;
42typedef int int_least32_t;
Marcelo Matus81502782005-12-01 06:54:05 +000043#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000044typedef long int int_least64_t;
45#else
46typedef long long int int_least64_t;
47#endif
48
49/* Unsigned. */
50typedef unsigned char uint_least8_t;
51typedef unsigned short int uint_least16_t;
52typedef unsigned int uint_least32_t;
Marcelo Matus81502782005-12-01 06:54:05 +000053#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000054typedef unsigned long int uint_least64_t;
55#else
56typedef unsigned long long int uint_least64_t;
57#endif
58
59
60/* Fast types. */
61
62/* Signed. */
63typedef signed char int_fast8_t;
Marcelo Matus81502782005-12-01 06:54:05 +000064#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000065typedef long int int_fast16_t;
66typedef long int int_fast32_t;
67typedef long int int_fast64_t;
68#else
69typedef int int_fast16_t;
70typedef int int_fast32_t;
71typedef long long int int_fast64_t;
72#endif
73
74/* Unsigned. */
75typedef unsigned char uint_fast8_t;
Marcelo Matus81502782005-12-01 06:54:05 +000076#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000077typedef unsigned long int uint_fast16_t;
78typedef unsigned long int uint_fast32_t;
79typedef unsigned long int uint_fast64_t;
80#else
81typedef unsigned int uint_fast16_t;
82typedef unsigned int uint_fast32_t;
83typedef unsigned long long int uint_fast64_t;
84#endif
85
86
87/* Types for `void *' pointers. */
Marcelo Matus81502782005-12-01 06:54:05 +000088#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000089typedef long int intptr_t;
90typedef unsigned long int uintptr_t;
91#else
92typedef int intptr_t;
93typedef unsigned int uintptr_t;
94#endif
95
96
97/* Largest integral types. */
Marcelo Matus81502782005-12-01 06:54:05 +000098#if defined(SWIGWORDSIZE64)
Marcelo Matusda1f4a02005-11-21 20:27:24 +000099typedef long int intmax_t;
100typedef unsigned long int uintmax_t;
101#else
102typedef long long int intmax_t;
103typedef unsigned long long int uintmax_t;
104#endif
105
106