diff options
author | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:12 +0200 |
---|---|---|
committer | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:59 +0200 |
commit | 0d5f63b18f5766760cf39e82ee11482984e0a938 (patch) | |
tree | e3f74b9b37e7618c92840024077dff43e6d08f0d /tools/defs_gen/h2def.py | |
parent | dce7a844e48a582e42eb2b60eef5c1f2527540ac (diff) | |
parent | d94115843f38967b5e883f5f7d8057882ae364cb (diff) | |
download | glibmm-gir-gmmproc.tar.gz |
Merge branch 'master' into glibmm-gir-gmmprocglibmm-gir-gmmproc
Diffstat (limited to 'tools/defs_gen/h2def.py')
-rwxr-xr-x | tools/defs_gen/h2def.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/defs_gen/h2def.py b/tools/defs_gen/h2def.py index d0cd5a24..1f33771f 100755 --- a/tools/defs_gen/h2def.py +++ b/tools/defs_gen/h2def.py @@ -289,11 +289,11 @@ def clean_func(buf): pat = re.compile(r"""\\\n""", re.MULTILINE) buf = pat.sub('', buf) - # Preprocess directives + # Preprocessor directives pat = re.compile(r"""^[#].*?$""", re.MULTILINE) buf = pat.sub('', buf) - #typedefs, stucts, and enums + #typedefs, structs, and enums pat = re.compile(r"""^(typedef|struct|enum)(\s|.|\n)*?;\s*""", re.MULTILINE) buf = pat.sub('', buf) @@ -307,7 +307,7 @@ def clean_func(buf): buf = pat.sub('', buf) #strip *_DEPRECATED_IN_*_FOR (*): - pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[0-9]_([0-9]*)_FOR\s*\(\S*\)\S*""", re.MULTILINE) + pat = re.compile(r"""[A-Z]+_DEPRECATED_IN_[0-9]_([0-9]*)_FOR\s*\(.*\)\S*""", re.MULTILINE) buf = pat.sub('', buf) #strip *_DEPRECATED* |