diff options
-rwxr-xr-x | tools/defs_gen/h2def.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py index 3201f417..1f8b306f 100755 --- a/tools/defs_gen/h2def.py +++ b/tools/defs_gen/h2def.py @@ -324,6 +324,10 @@ def clean_func(buf): pat = re.compile(r"""GDK_DECLARE_INTERNAL_TYPE\s*\(.*?\)""", re.MULTILINE) buf = pat.sub('', buf) + #strip G_DEFINE_AUTOPTR_CLEANUP_FUNC (*) + pat = re.compile(r"""G_DEFINE_AUTOPTR_CLEANUP_FUNC\s*\(.*?\)""", re.MULTILINE) + buf = pat.sub('', buf) + #we are not stripping G_GNUC_INTERNAL #extern "C" |