Lines Matching refs:r
32 [{'orig': r'ElfW\((\w+)\)', 'sub': r'\1__ELF_NATIVE_CLASS_t'},
33 {'orig': r'(libc_freeres_fn)\s*\((\w+)\)', 'sub': r'static void \1__\2 (void)'},
34 {'orig': r'(IMPL)\s*\((\w+), .*\)$', 'sub': r'static void \1__\2 (void) {}'},
35 {'orig': r'__(BEGIN|END)_DECLS', 'sub': r''},
37 {'orig': r'ATTRIBUTE_(CONST|MALLOC|PURE|FORMAT)',
38 'sub': r'__attribute__ ((\1))'},
39 {'orig': r'__THROW', 'sub': r'__attribute__ ((__nothrow__ __LEAF))'},
40 {'orig': r'__THROWNL', 'sub': r'__attribute__ ((__nothrow__))'},
41 {'orig': r'__nonnull \(\(([^)]+)\)\)',
42 'sub': r'__attribute__ ((__nonnull__ \1))'},
43 {'orig': r'([^_])attribute_(\w+)', 'sub': r'\1__attribute__ ((\2))'},
44 {'orig': r'^attribute_(\w+)', 'sub': r'__attribute__ ((\1))'}]
57 self.C_MACROS = [re.sub(r'.*define (\w+).*', r'\1', x[:-1]) for x in op \