1/* ----------------------------------------------------------------------------- 2 * See the LICENSE file for information on copyright, usage and redistribution 3 * of SWIG, and the README file for authors - http://www.swig.org/release.html. 4 * 5 * stdint.i 6 * 7 * SWIG library file for ISO C99 types: 7.18 Integer types <stdint.h> 8 * ----------------------------------------------------------------------------- */ 9 10%{ 11#include <stdint.h> // Use the C99 official header 12%} 13 14%include <swigarch.i> 15 16/* Exact integral types. */ 17 18/* Signed. */ 19 20typedef signed char int8_t; 21typedef short int int16_t; 22typedef int int32_t; 23#if defined(SWIGWORDSIZE64) 24typedef long int int64_t; 25#else 26typedef long long int int64_t; 27#endif 28 29/* Unsigned. */ 30typedef unsigned char uint8_t; 31typedef unsigned short int uint16_t; 32typedef unsigned int uint32_t; 33#if defined(SWIGWORDSIZE64) 34typedef unsigned long int uint64_t; 35#else 36typedef unsigned long long int uint64_t; 37#endif 38 39 40/* Small types. */ 41 42/* Signed. */ 43typedef signed char int_least8_t; 44typedef short int int_least16_t; 45typedef int int_least32_t; 46#if defined(SWIGWORDSIZE64) 47typedef long int int_least64_t; 48#else 49typedef long long int int_least64_t; 50#endif 51 52/* Unsigned. */ 53typedef unsigned char uint_least8_t; 54typedef unsigned short int uint_least16_t; 55typedef unsigned int uint_least32_t; 56#if defined(SWIGWORDSIZE64) 57typedef unsigned long int uint_least64_t; 58#else 59typedef unsigned long long int uint_least64_t; 60#endif 61 62 63/* Fast types. */ 64 65/* Signed. */ 66typedef signed char int_fast8_t; 67#if defined(SWIGWORDSIZE64) 68typedef long int int_fast16_t; 69typedef long int int_fast32_t; 70typedef long int int_fast64_t; 71#else 72typedef int int_fast16_t; 73typedef int int_fast32_t; 74typedef long long int int_fast64_t; 75#endif 76 77/* Unsigned. */ 78typedef unsigned char uint_fast8_t; 79#if defined(SWIGWORDSIZE64) 80typedef unsigned long int uint_fast16_t; 81typedef unsigned long int uint_fast32_t; 82typedef unsigned long int uint_fast64_t; 83#else 84typedef unsigned int uint_fast16_t; 85typedef unsigned int uint_fast32_t; 86typedef unsigned long long int uint_fast64_t; 87#endif 88 89 90/* Types for `void *' pointers. */ 91#if defined(SWIGWORDSIZE64) 92typedef long int intptr_t; 93typedef unsigned long int uintptr_t; 94#else 95typedef int intptr_t; 96typedef unsigned int uintptr_t; 97#endif 98 99 100/* Largest integral types. */ 101#if defined(SWIGWORDSIZE64) 102typedef long int intmax_t; 103typedef unsigned long int uintmax_t; 104#else 105typedef long long int intmax_t; 106typedef unsigned long long int uintmax_t; 107#endif 108 109 110