third_party: Update waf to version 2.0.17
[samba.git] / third_party / waf / waflib / Tools / c_preproc.py
index c2c239baa260a622ac71fc9306b343a26e61a235..68e5f5aea294e62b4981c0f88403fbf1fac8a9df 100644 (file)
@@ -75,13 +75,13 @@ re_lines = re.compile(
        re.IGNORECASE | re.MULTILINE)
 """Match #include lines"""
 
-re_mac = re.compile("^[a-zA-Z_]\w*")
+re_mac = re.compile(r"^[a-zA-Z_]\w*")
 """Match macro definitions"""
 
 re_fun = re.compile('^[a-zA-Z_][a-zA-Z0-9_]*[(]')
 """Match macro functions"""
 
-re_pragma_once = re.compile('^\s*once\s*', re.IGNORECASE)
+re_pragma_once = re.compile(r'^\s*once\s*', re.IGNORECASE)
 """Match #pragma once statements"""
 
 re_nl = re.compile('\\\\\r*\n', re.MULTILINE)
@@ -146,7 +146,7 @@ def repl(m):
 
 prec = {}
 """
-Operator precendence rules required for parsing expressions of the form::
+Operator precedence rules required for parsing expressions of the form::
 
        #if 1 && 2 != 0
 """
@@ -660,7 +660,7 @@ def extract_macro(txt):
                        # empty define, assign an empty token
                        return (v, [[], [('T','')]])
 
-re_include = re.compile('^\s*(<(?:.*)>|"(?:.*)")')
+re_include = re.compile(r'^\s*(<(?:.*)>|"(?:.*)")')
 def extract_include(txt, defs):
        """
        Process a line in the form::