summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2016-04-02 21:38:41 +0200
committerMarcin Kolny <marcin.kolny@gmail.com>2016-04-05 17:47:50 +0200
commit2a9a2c19f147c0c10480e050f19cf8dece693460 (patch)
tree25622e8f9d0e060ecc936c8593d49476887bb41b
parentc6f84f00990e9f0234fe216dd384e2fd41da16fd (diff)
downloadglibmm-2a9a2c19f147c0c10480e050f19cf8dece693460.tar.gz
h2def.py: strip G_DECLARE_FINAL_TYPE macro call
-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"