0
0
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:
Bram Moolenaar
2019-01-20 15:30:40 +01:00
parent 1f20daa1d7
commit 113e10721f
28 changed files with 88 additions and 52 deletions

View File

@@ -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.