[glibmm] h2def.py: strip G_DECLARE_FINAL_TYPE macro call



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]