summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2012-03-02 18:12:52 +0100
committerMurray Cumming <murrayc@murrayc.com>2012-03-02 18:12:52 +0100
commit9339e4185cc615698f156fd48bbef124b6391d8b (patch)
treed656a3816110b512fde54e2b84de806263857a4e
parent6f92aacd7bca73679bd76d10db1ce65ef7197a29 (diff)
downloadglibmm-9339e4185cc615698f156fd48bbef124b6391d8b.tar.gz
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.
-rw-r--r--ChangeLog7
-rwxr-xr-xtools/defs_gen/h2def.py4
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 435526f0..cc7dcd4f 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 e7be9f64..0a7f560b 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"