[gobject-introspection] transformer: Strip out GLib _autoptr typedefs
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] transformer: Strip out GLib _autoptr typedefs
- Date: Sun, 11 Oct 2015 14:40:08 +0000 (UTC)
commit 2907b172fe9d1cb0648deff12bddc810141638ad
Author: Colin Walters <walters verbum org>
Date: Sat Oct 10 18:08:37 2015 -0400
transformer: Strip out GLib _autoptr typedefs
They're just internal bits for users of C, shouldn't be part of the
API.
https://bugzilla.gnome.org/show_bug.cgi?id=755882
giscanner/transformer.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index d1fddaf..fdb87f9 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -617,6 +617,9 @@ raise ValueError."""
target = ast.TYPE_ANY
if name in ast.type_names:
return None
+ # https://bugzilla.gnome.org/show_bug.cgi?id=755882
+ if name.endswith('_autoptr'):
+ return None
return ast.Alias(name, target, ctype=symbol.ident)
else:
raise NotImplementedError(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]