mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
refactor: add pure attribute to pure functions (#18165)
This will allow the compilers that support the pure attribute to make further optimizations.
This commit is contained in:
@@ -4969,6 +4969,7 @@ char_u *check_help_lang(char_u *arg)
|
||||
///
|
||||
/// @return a heuristic indicating how well the given string matches.
|
||||
int help_heuristic(char_u *matched_string, int offset, int wrong_case)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
int num_letters;
|
||||
char_u *p;
|
||||
|
Reference in New Issue
Block a user