Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.5 KiB

  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. #include <stdint.h> // Use the C99 official header
  11. %}
  12. %include <swigarch.i>
  13. /* Exact integral types. */
  14. /* Signed. */
  15. typedef signed char int8_t;
  16. typedef short int int16_t;
  17. typedef int int32_t;
  18. #if defined(SWIGWORDSIZE64)
  19. typedef long int int64_t;
  20. #else
  21. typedef long long int int64_t;
  22. #endif
  23. /* Unsigned. */
  24. typedef unsigned char uint8_t;
  25. typedef unsigned short int uint16_t;
  26. typedef unsigned int uint32_t;
  27. #if defined(SWIGWORDSIZE64)
  28. typedef unsigned long int uint64_t;
  29. #else
  30. typedef unsigned long long int uint64_t;
  31. #endif
  32. /* Small types. */
  33. /* Signed. */
  34. typedef signed char int_least8_t;
  35. typedef short int int_least16_t;
  36. typedef int int_least32_t;
  37. #if defined(SWIGWORDSIZE64)
  38. typedef long int int_least64_t;
  39. #else
  40. typedef long long int int_least64_t;
  41. #endif
  42. /* Unsigned. */
  43. typedef unsigned char uint_least8_t;
  44. typedef unsigned short int uint_least16_t;
  45. typedef unsigned int uint_least32_t;
  46. #if defined(SWIGWORDSIZE64)
  47. typedef unsigned long int uint_least64_t;
  48. #else
  49. typedef unsigned long long int uint_least64_t;
  50. #endif
  51. /* Fast types. */
  52. /* Signed. */
  53. typedef signed char int_fast8_t;
  54. #if defined(SWIGWORDSIZE64)
  55. typedef long int int_fast16_t;
  56. typedef long int int_fast32_t;
  57. typedef long int int_fast64_t;
  58. #else
  59. typedef int int_fast16_t;
  60. typedef int int_fast32_t;
  61. typedef long long int int_fast64_t;
  62. #endif
  63. /* Unsigned. */
  64. typedef unsigned char uint_fast8_t;
  65. #if defined(SWIGWORDSIZE64)
  66. typedef unsigned long int uint_fast16_t;
  67. typedef unsigned long int uint_fast32_t;
  68. typedef unsigned long int uint_fast64_t;
  69. #else
  70. typedef unsigned int uint_fast16_t;
  71. typedef unsigned int uint_fast32_t;
  72. typedef unsigned long long int uint_fast64_t;
  73. #endif
  74. /* Types for `void *' pointers. */
  75. #if defined(SWIGWORDSIZE64)
  76. typedef long int intptr_t;
  77. typedef unsigned long int uintptr_t;
  78. #else
  79. typedef int intptr_t;
  80. typedef unsigned int uintptr_t;
  81. #endif
  82. /* Largest integral types. */
  83. #if defined(SWIGWORDSIZE64)
  84. typedef long int intmax_t;
  85. typedef unsigned long int uintmax_t;
  86. #else
  87. typedef long long int intmax_t;
  88. typedef unsigned long long int uintmax_t;
  89. #endif