mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 17:29:54 +10:00
Problem: Linematch used to use strchr to navigate a string, however strchr does not supoprt embedded NULs. Solution: Use `mmfile_t` instead of `char *` in linematch and introduce `strnchr()`. Also remove heap allocations from `matching_char_iwhite()` Fixes: #30505
11 lines
213 B
C
11 lines
213 B
C
#pragma once
|
|
|
|
#include <stddef.h> // IWYU pragma: keep
|
|
|
|
#include "nvim/pos_defs.h" // IWYU pragma: keep
|
|
#include "xdiff/xdiff.h"
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "linematch.h.generated.h"
|
|
#endif
|