[glibmm] h2defs.py: Ignore the new GDK_AVAILABLE_IN_* macros.



commit 9339e4185cc615698f156fd48bbef124b6391d8b
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 2 18:12:52 2012 +0100

    h2defs.py: Ignore the new GDK_AVAILABLE_IN_* macros.
    
    * tools/defs_gen/h2def.py: Strip these macros so we can actually
    parse the latest headers.

 ChangeLog               |    7 +++++++
 tools/defs_gen/h2def.py |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 435526f..cc7dcd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-02  Murray Cumming  <murrayc murrayc com>
+
+	h2defs.py: Ignore the new GDK_AVAILABLE_IN_* macros.
+
+	* tools/defs_gen/h2def.py: Strip these macros so we can actually
+	parse the latest headers.
+
 2012-03-01  Josà Alburquerque  <jaalburquerque gmail com>
 
 	gmmproc: Allow destructors to be documented.
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py
index e7be9f6..0a7f560 100755
--- a/tools/defs_gen/h2def.py
+++ b/tools/defs_gen/h2def.py
@@ -308,6 +308,10 @@ def clean_func(buf):
     pat = re.compile(r"""[A-Z]+_DEPRECATED\S*""", re.MULTILINE)
     buf = pat.sub('', buf)
 
+    #strip *_AVAILABLE_IN_*
+    pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[1-9]_[1-9]\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]