summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-04-27 19:04:49 +0200
committerArmin Rigo <arigo@tunes.org>2015-04-27 19:04:49 +0200
commitc2e5599b1a13c88984f95751da37affba5a0ea07 (patch)
tree52a141ccc24bafd69330e2c20d19e6fbd84d2918 /cffi
parent091258879b6fab45c155fc5ccf3625172b8ea240 (diff)
downloadcffi-c2e5599b1a13c88984f95751da37affba5a0ea07.tar.gz
Test and fix: the new types like "int_least8_t" were actually not
available because model.py didn't list them
Diffstat (limited to 'cffi')
-rw-r--r--cffi/model.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/cffi/model.py b/cffi/model.py
index dc0fa4a..a6b28c7 100644
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -102,8 +102,26 @@ class PrimitiveType(BaseType):
'uint32_t': 'i',
'int64_t': 'i',
'uint64_t': 'i',
+ 'int_least8_t': 'i',
+ 'uint_least8_t': 'i',
+ 'int_least16_t': 'i',
+ 'uint_least16_t': 'i',
+ 'int_least32_t': 'i',
+ 'uint_least32_t': 'i',
+ 'int_least64_t': 'i',
+ 'uint_least64_t': 'i',
+ 'int_fast8_t': 'i',
+ 'uint_fast8_t': 'i',
+ 'int_fast16_t': 'i',
+ 'uint_fast16_t': 'i',
+ 'int_fast32_t': 'i',
+ 'uint_fast32_t': 'i',
+ 'int_fast64_t': 'i',
+ 'uint_fast64_t': 'i',
'intptr_t': 'i',
'uintptr_t': 'i',
+ 'intmax_t': 'i',
+ 'uintmax_t': 'i',
'ptrdiff_t': 'i',
'size_t': 'i',
'ssize_t': 'i',