diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-25 03:31:25 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-25 03:34:26 -0400 |
commit | 0925afcfcfd3fb024a35d10ee8f584b67bdc9000 (patch) | |
tree | 999657edcf798635ee1712d02cbc48808bdad385 /src | |
parent | 98fcf66b7ac1d36c29b9e1a2c1f18366d62d8184 (diff) | |
download | rneovim-0925afcfcfd3fb024a35d10ee8f584b67bdc9000.tar.gz rneovim-0925afcfcfd3fb024a35d10ee8f584b67bdc9000.tar.bz2 rneovim-0925afcfcfd3fb024a35d10ee8f584b67bdc9000.zip |
regexp: add function attributes
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/regexp_nfa.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 787d6380e9..c0129a00fb 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -3932,13 +3932,13 @@ state_in_list ( // Add "state" and possibly what follows to state list ".". // Returns "subs_arg", possibly copied into temp_subs. // Returns NULL when recursiveness is too deep. -static regsubs_T * -addstate ( - nfa_list_T *l, /* runtime state list */ - nfa_state_T *state, /* state to update */ - regsubs_T *subs_arg, /* pointers to subexpressions */ - nfa_pim_T *pim, /* postponed look-behind match */ - int off_arg) /* byte offset, when -1 go to next line */ +static regsubs_T *addstate( + nfa_list_T *l, // runtime state list + nfa_state_T *state, // state to update + regsubs_T *subs_arg, // pointers to subexpressions + nfa_pim_T *pim, // postponed look-behind match + int off_arg) // byte offset, when -1 go to next line + FUNC_ATTR_NONNULL_ARG(1, 2) FUNC_ATTR_WARN_UNUSED_RESULT { int subidx; int off = off_arg; @@ -4339,6 +4339,7 @@ static regsubs_T *addstate_here( nfa_pim_T *pim, // postponed look-behind match int *ip ) + FUNC_ATTR_NONNULL_ARG(1, 2, 5) FUNC_ATTR_WARN_UNUSED_RESULT { int tlen = l->n; int count; |