diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-04-02 00:00:00 +0000 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-06-23 11:20:13 +0200 |
commit | da426f7672b9c88658685aaf5cef948e02eb8c01 (patch) | |
tree | 8ebe55c7bc67859ece5316b399409d2f33ed9c42 /giscanner/ast.py | |
parent | 864c9a0aac9c8d588f393f2f0fa9d438bd8baa10 (diff) | |
download | gobject-introspection-da426f7672b9c88658685aaf5cef948e02eb8c01.tar.gz |
Recognize additional basic types from ISO/IEC TS 18661-3:2015.
Recognize additional floating point types from ISO/IEC TS 18661-3:2015,
that are already in use by glibc. This continues work from commit
8cf3e8e5cf6d0d49db359f50c6eb0bc9ca22fbef and fixes issue #201.
* _Float16
* _Float32
* _Float64
* _Float128
* _Float32x
* _Float64x
* _Float128x
Use a single BASIC_TYPE token for basic types, while using its string
representation as a type name. This also fixes incorrect type used
previously for __uint128_t, __int128_t, __uint128, __int128, and
_Float128 (they have been mapped to int and float respectively).
Also avoid mapping bool and _Bool to gboolean as those are distinct
types and generally ABI incompatible. Fixes issue #202.
After this changes, when _Bool, _Float* or _int128 types are used
as a part of public API, g-ir-scanner will produce warning about
unresolved type. This is appropriate given that they are currently
inexpressible in GIRepository format.
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 44ce523c..a1a57cc2 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -309,8 +309,6 @@ type_names['int32_t'] = TYPE_INT32 type_names['uint32_t'] = TYPE_UINT32 type_names['int64_t'] = TYPE_INT64 type_names['uint64_t'] = TYPE_UINT64 -# C99 stdbool -type_names['bool'] = TYPE_BOOLEAN # A few additional GLib type aliases type_names['guchar'] = TYPE_UINT8 |