[glibmm] tools: h2def.py: Handle *_DEPRECATED_IN_*_FOR (*)
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] tools: h2def.py: Handle *_DEPRECATED_IN_*_FOR (*)
- Date: Fri, 20 Sep 2013 09:19:49 +0000 (UTC)
commit 6b343fa4d93211836a6206d561b1d42716504e82
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Sep 20 11:19:12 2013 +0200
tools: h2def.py: Handle *_DEPRECATED_IN_*_FOR (*)
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 9c90770..3ffbd7c 100755
--- a/tools/defs_gen/h2def.py
+++ b/tools/defs_gen/h2def.py
@@ -304,6 +304,10 @@ def clean_func(buf):
pat = re.compile(r"""G_GNUC_WARN_UNUSED_RESULT|G_INLINE_FUNC""", re.MULTILINE)
buf = pat.sub('', buf)
+ #strip *_DEPRECATED_IN_*_FOR (*):
+ pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[1-9]_([1-9]*)_FOR \(\S*\)\S*""", re.MULTILINE)
+ buf = pat.sub('', buf)
+
#strip *_DEPRECATED*
pat = re.compile(r"""[A-Z]+_DEPRECATED\S*""", re.MULTILINE)
buf = pat.sub('', buf)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]