[glibmm] h2def.py: Handle GLIB_AVAILABLE_IN_ALL



commit d8cb9ddc7f1e0184ab3a08abf54ba540b527c624
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 19 11:13:28 2013 +0100

    h2def.py: Handle GLIB_AVAILABLE_IN_ALL
    
        * tools/defs_gen/h2def.py: Do not just ignore
        functions prefixed with GLIB_AVAILABLE_IN_ALL.
        This handles the latest glib/gio/gactiongroup.h file.
    
        However, we still need to handle the new
        GLIB_DEPRECATED_IN_2_36_FOR(old_func) form
        now used in glib/gio/gioschedule.h.

 ChangeLog               |   12 ++++++++++++
 tools/defs_gen/h2def.py |    4 ++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5ab7772..ec8069e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2013-03-19  Murray Cumming  <murrayc murrayc com>
 
+       h2def.py: Handle GLIB_AVAILABLE_IN_ALL
+
+       * tools/defs_gen/h2def.py: Do not just ignore
+       functions prefixed with GLIB_AVAILABLE_IN_ALL.
+       This handles the latest glib/gio/gactiongroup.h file.
+
+       However, we still need to handle the new
+       GLIB_DEPRECATED_IN_2_36_FOR(old_func) form
+       now used in glib/gio/gioschedule.h.
+
+2013-03-19  Murray Cumming  <murrayc murrayc com>
+
        Regenereated the -enums.defs files.
 
        * gio/src/gio_enums.xml:
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py
index 0a7f560..8f5e018 100755
--- a/tools/defs_gen/h2def.py
+++ b/tools/defs_gen/h2def.py
@@ -312,6 +312,10 @@ def clean_func(buf):
     pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[1-9]_[1-9]\S*""", re.MULTILINE)
     buf = pat.sub('', buf)
 
+    #strip *_AVAILABLE_IN_ALL
+    pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_ALL\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]