summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-07-23 10:20:20 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-07-23 10:20:20 +0200
commitbf25f268889925b7df58ea459cdd8756a340e476 (patch)
tree74b71910d5db8837eb448be82be95457549c209e
parentcd2612904a7566c3886b93fff61c30c934a49c17 (diff)
downloadglibmm-bf25f268889925b7df58ea459cdd8756a340e476.tar.gz
gmmproc: Make h2def.py recognize G_DEFINE_AUTOPTR_CLEANUP_FUNC
-rwxr-xr-xtools/defs_gen/h2def.py4
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"