summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-10-28 19:56:41 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-10-28 19:56:43 +0400
commit9076ff19faba9c5f1d5fa50acc3d892faafe9a14 (patch)
tree18e47b9d76eb195a3496e86a88ffab6a64392030
parent24d6578b4aaa0280cf0ad5ee410425894507c803 (diff)
downloadgobject-introspection-9076ff19faba9c5f1d5fa50acc3d892faafe9a14.tar.gz
giscanner.ast: map uintptr_t and intptr_t
Those types should map by definition to guintptr and gintptr. They are fairly common in Rust cbindgen projects, which maps usize->uintptr_t for ex. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--giscanner/ast.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index c94ee768..b760c71d 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -344,6 +344,8 @@ type_names['FILE*'] = TYPE_ANY
# integers it's easy enough to expand them.
type_names['size_t'] = type_names['gsize']
type_names['ssize_t'] = type_names['gssize']
+type_names['uintptr_t'] = type_names['guintptr']
+type_names['intptr_t'] = type_names['gintptr']
type_names['time_t'] = TYPE_LONG
type_names['off_t'] = type_names['gsize']
type_names['pid_t'] = TYPE_INT