diff options
author | Murray Cumming <murrayc@murrayc.com> | 2012-03-02 18:12:52 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2012-03-02 18:12:52 +0100 |
commit | 9339e4185cc615698f156fd48bbef124b6391d8b (patch) | |
tree | d656a3816110b512fde54e2b84de806263857a4e | |
parent | 6f92aacd7bca73679bd76d10db1ce65ef7197a29 (diff) | |
download | glibmm-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-- | ChangeLog | 7 | ||||
-rwxr-xr-x | tools/defs_gen/h2def.py | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -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" |