summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-20 15:30:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-20 15:30:40 +0100
commit113e10721f42fc2500b63fe95193f8665658a90c (patch)
tree4395acb733cc8d7a798df8f4a91c5c1afa084841 /src/regexp.c
parent1f20daa1d784e2d8ae13db5b9c8abbb648dd2a03 (diff)
downloadvim-git-113e10721f42fc2500b63fe95193f8665658a90c.tar.gz
patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/regexp.c b/src/regexp.c
index accd10c50..71bcd6cca 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -734,16 +734,6 @@ re_multiline(regprog_T *prog)
}
/*
- * 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
* recognized. Otherwise "pp" is advanced to after the item.
@@ -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.