diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-25 04:12:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 20:12:47 -0600 |
commit | c58219413514caf035ac52eb85b84b1ff31d4722 (patch) | |
tree | 1db3c26ab8a0c05653213736742f8fd6626b9c70 /src/nvim/ex_cmds.c | |
parent | 933274c438107adadde5ff854340ed1fae18d3fe (diff) | |
download | rneovim-c58219413514caf035ac52eb85b84b1ff31d4722.tar.gz rneovim-c58219413514caf035ac52eb85b84b1ff31d4722.tar.bz2 rneovim-c58219413514caf035ac52eb85b84b1ff31d4722.zip |
refactor: add pure attribute to pure functions (#18165)
This will allow the compilers that support the pure attribute to make
further optimizations.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index e16537c192..5e0dac5e55 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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; |