aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-24 21:46:01 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-24 21:47:25 +0800
commit321db867d5aeb818e60fb9d6a2fd6dba37a42d2e (patch)
tree609a1ce7a23252dde39452ee7ea6666d59bb43c3
parent843d9223a14c599fda1b2abf1e7072be738fb831 (diff)
downloadrneovim-321db867d5aeb818e60fb9d6a2fd6dba37a42d2e.tar.gz
rneovim-321db867d5aeb818e60fb9d6a2fd6dba37a42d2e.tar.bz2
rneovim-321db867d5aeb818e60fb9d6a2fd6dba37a42d2e.zip
vim-patch:8.2.4808: unused item in engine struct
Problem: Unused item in engine struct. Solution: Remove "expr". Add comment with tags. https://github.com/vim/vim/commit/33d3ce640c63366e26b84c8d6f5798187a258ee2
-rw-r--r--src/nvim/regexp_defs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/regexp_defs.h b/src/nvim/regexp_defs.h
index 913cfb2074..decc832051 100644
--- a/src/nvim/regexp_defs.h
+++ b/src/nvim/regexp_defs.h
@@ -157,12 +157,15 @@ struct reg_extmatch {
};
struct regengine {
+ /// bt_regcomp or nfa_regcomp
regprog_T *(*regcomp)(char_u *, int);
+ /// bt_regfree or nfa_regfree
void (*regfree)(regprog_T *);
+ /// bt_regexec_nl or nfa_regexec_nl
int (*regexec_nl)(regmatch_T *, char_u *, colnr_T, bool);
- long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T,
- proftime_T *, int *);
- char_u *expr;
+ /// bt_regexec_mult or nfa_regexec_mult
+ long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T, proftime_T *, int *);
+ // char_u *expr;
};
#endif // NVIM_REGEXP_DEFS_H