mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.0785: depending on the configuration some functions are unused
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
This commit is contained in:
13
src/regexp.c
13
src/regexp.c
@@ -733,16 +733,6 @@ re_multiline(regprog_T *prog)
|
||||
return (prog->regflags & RF_HASNL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if compiled regular expression "prog" looks before the start
|
||||
* position (pattern contains "\@<=" or "\@<!").
|
||||
*/
|
||||
int
|
||||
re_lookbehind(regprog_T *prog)
|
||||
{
|
||||
return (prog->regflags & RF_LOOKBH);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check for an equivalence class name "[=a=]". "pp" points to the '['.
|
||||
* Returns a character representing the class. Zero means that no item was
|
||||
@@ -8206,6 +8196,8 @@ report_re_switch(char_u *pat)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (defined(FEAT_X11) && (defined(FEAT_TITLE) || defined(FEAT_XCLIPBOARD))) \
|
||||
|| defined(PROTO)
|
||||
/*
|
||||
* Return whether "prog" is currently being executed.
|
||||
*/
|
||||
@@ -8214,6 +8206,7 @@ regprog_in_use(regprog_T *prog)
|
||||
{
|
||||
return prog->re_in_use;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Match a regexp against a string.
|
||||
|
Reference in New Issue
Block a user