diff options
author | Armin Rigo <arigo@tunes.org> | 2015-04-27 19:04:49 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-04-27 19:04:49 +0200 |
commit | c2e5599b1a13c88984f95751da37affba5a0ea07 (patch) | |
tree | 52a141ccc24bafd69330e2c20d19e6fbd84d2918 /cffi | |
parent | 091258879b6fab45c155fc5ccf3625172b8ea240 (diff) | |
download | cffi-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.py | 18 |
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', |