diff options
author | Murray Cumming <murrayc@murrayc.com> | 2014-03-28 10:23:44 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2014-03-28 10:23:44 +0100 |
commit | f19ae99a9d85936050463fb8f6c5b9bc64c7e2d4 (patch) | |
tree | 159dc4c1e21a3c67916e777a9d69954b9d212a8e | |
parent | b8a81fd9ab5b3326bdab8f18734bd81302c422bf (diff) | |
download | glibmm-f19ae99a9d85936050463fb8f6c5b9bc64c7e2d4.tar.gz |
h2def.py: Handle *_DEPRECATED_IN_* and AVAILABLE_IN_* with 0 digits.
* tools/defs_gen/h2def.py: clean_func(): Use 0-9 instead of just
1-9. clutter's headers showed that this was a problem.
-rwxr-xr-x | tools/defs_gen/h2def.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py index 3d877815..82651fe8 100755 --- a/tools/defs_gen/h2def.py +++ b/tools/defs_gen/h2def.py @@ -305,7 +305,7 @@ def clean_func(buf): buf = pat.sub('', buf) #strip *_DEPRECATED_IN_*_FOR (*): - pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[1-9]_([1-9]*)_FOR\s*\(\S*\)\S*""", re.MULTILINE) + pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[0-9]_([0-9]*)_FOR\s*\(\S*\)\S*""", re.MULTILINE) buf = pat.sub('', buf) #strip *_DEPRECATED* @@ -313,7 +313,7 @@ def clean_func(buf): buf = pat.sub('', buf) #strip *_AVAILABLE_IN_* - pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[1-9]_[1-9]\S*""", re.MULTILINE) + pat = re.compile(r"""[A-Z]+_AVAILABLE_IN_[0-9]_[0-9]\S*""", re.MULTILINE) buf = pat.sub('', buf) #strip *_AVAILABLE_IN_ALL |