[glibmm] h2def.py: Remove *_DEPRECATED_IN_*_*_FOR(*) prefixes with white space



commit 08c5ed000e70e98e8d6f154373f3387024cb1612
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Feb 20 18:17:39 2015 +0100

    h2def.py: Remove *_DEPRECATED_IN_*_*_FOR(*) prefixes with white space
    
    * tools/defs_gen/h2def.py: A *_DEPRECATED_IN_*_*_FOR(*) prefix before a
    function prototype may contain white space within the parenthesis.
    Remove such prefixes, otherwise the function prototype is not found.

 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 d0cd5a2..1f33771 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*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]