From 4dfffd4dd5314f3b113d064613a4170c09516a55 Mon Sep 17 00:00:00 2001 From: memento Date: Sat, 29 Jun 2024 15:29:30 -0500 Subject: [PATCH] (fix) secp256k1 haeder dir for c-binding compilation --- cm_library_cffi_headers/compose_cffi_headers.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cm_library_cffi_headers/compose_cffi_headers.py b/cm_library_cffi_headers/compose_cffi_headers.py index 576beb1d..dfeb7a7b 100644 --- a/cm_library_cffi_headers/compose_cffi_headers.py +++ b/cm_library_cffi_headers/compose_cffi_headers.py @@ -18,11 +18,7 @@ def remove_c_includes(lines): def remove_special_defines(lines, defines): - return [ - line - for line in lines - if all(f'#define {define}' not in line for define in defines) - ] + return [line for line in lines if not any(f'#define {define}' in line for define in defines)] def apply_cffi_defines_syntax(lines): return [re.sub(r'#\s*define\s+(\w+).*', r'#define \1 ...', line) for line in lines]