summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-10-10 18:08:37 -0400
committerColin Walters <walters@verbum.org>2015-10-10 18:08:37 -0400
commit2907b172fe9d1cb0648deff12bddc810141638ad (patch)
tree8c31c053c9a85558447b81909cc76815a1e7ec87
parentdf21d1f362a810f48a23b7c121bf09ce398539c7 (diff)
downloadgobject-introspection-2907b172fe9d1cb0648deff12bddc810141638ad.tar.gz
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
-rw-r--r--giscanner/transformer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index d1fddaf1..fdb87f94 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(