mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(tests): filter out lines with __typeof__ keyword (#32524)
Problem: On 32-bit architectures, musl libc makes heavy use of __typeof__ as part of its __REDIR macro for optional backwards compatibility with 32-bit time_t values. Unfortunately, the __typeof__ keyword is not supported by the LuaJIT C parser. Solution: Filter out the keyword in filter_complex_blocks.
This commit is contained in:
@ -146,6 +146,8 @@ local function filter_complex_blocks(body)
|
||||
or string.find(line, 'value_init_')
|
||||
or string.find(line, 'UUID_NULL') -- static const uuid_t UUID_NULL = {...}
|
||||
or string.find(line, 'inline _Bool')
|
||||
-- used by musl libc headers on 32-bit arches via __REDIR marco
|
||||
or string.find(line, '__typeof__')
|
||||
-- used by macOS headers
|
||||
or string.find(line, 'typedef enum : ')
|
||||
or string.find(line, 'mach_vm_range_recipe')
|
||||
|
Reference in New Issue
Block a user