[glibmm] h2def.py: strip G_DECLARE_FINAL_TYPE macro call
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] h2def.py: strip G_DECLARE_FINAL_TYPE macro call
- Date: Tue, 5 Apr 2016 15:48:11 +0000 (UTC)
commit 2a9a2c19f147c0c10480e050f19cf8dece693460
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Apr 2 21:38:41 2016 +0200
h2def.py: strip G_DECLARE_FINAL_TYPE macro call
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 513ecf8..20b3185 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]