projects
/
vim
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77fc0b0
)
patch 8.2.4808: unused item in engine struct
v8.2.4808
author
Bram Moolenaar
<Bram@vim.org>
Sat, 23 Apr 2022 09:41:35 +0000
(10:41 +0100)
committer
Bram Moolenaar
<Bram@vim.org>
Sat, 23 Apr 2022 09:41:35 +0000
(10:41 +0100)
Problem: Unused item in engine struct.
Solution: Remove "expr". Add comment with tags.
src/regexp.h
patch
|
blob
|
history
src/version.c
patch
|
blob
|
history
diff --git
a/src/regexp.h
b/src/regexp.h
index a8bc82248d28961fa6231cbe8c5d73a11c37cd56..c2a15b08cc3cacb465330cb94284b34e3a3242e5 100644
(file)
--- a/
src/regexp.h
+++ b/
src/regexp.h
@@
-166,11
+166,15
@@
typedef struct
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, int);
+ // 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;
+
//char_u
*expr;
};
#endif // _REGEXP_H
diff --git
a/src/version.c
b/src/version.c
index a2452d3aa96398613e1e775f6bb8e9ecfc21b808..7ec4c8a03329d260ea52bd8f0773635a3f48e25e 100644
(file)
--- a/
src/version.c
+++ b/
src/version.c
@@
-746,6
+746,8
@@
static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4808,
/**/
4807,
/**/