summaryrefslogtreecommitdiff
path: root/tools/defs_gen/h2def.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/defs_gen/h2def.py')
-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 513ecf86..20b31856 100755
--- a/tools/defs_gen/h2def.py
+++ b/tools/defs_gen/h2def.py
@@ -322,6 +322,10 @@ def clean_func(buf):
pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_ALL\S*""", re.MULTILINE)
buf = pat.sub('', buf)
+ #strip G_DECLARE_FINAL_TYPE (*)
+ pat = re.compile(r"""G_DECLARE_FINAL_TYPE\s*\(.*?\)""", re.MULTILINE)
+ buf = pat.sub('', buf)
+
#we are not stripping G_GNUC_INTERNAL
#extern "C"