From da426f7672b9c88658685aaf5cef948e02eb8c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Mon, 2 Apr 2018 00:00:00 +0000 Subject: 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. --- giscanner/ast.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'giscanner/ast.py') 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 -- cgit v1.2.1