Mercurial > vim
comparison src/regexp.c @ 15555:d89c5b339c2a v8.1.0785
patch 8.1.0785: depending on the configuration some functions are unused
commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 20 15:30:40 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Jan 2019 15:45:07 +0100 |
parents | dd725a8ab112 |
children | 639b8318472c |
comparison
equal
deleted
inserted
replaced
15554:496f146a0836 | 15555:d89c5b339c2a |
---|---|
729 */ | 729 */ |
730 int | 730 int |
731 re_multiline(regprog_T *prog) | 731 re_multiline(regprog_T *prog) |
732 { | 732 { |
733 return (prog->regflags & RF_HASNL); | 733 return (prog->regflags & RF_HASNL); |
734 } | |
735 | |
736 /* | |
737 * Return TRUE if compiled regular expression "prog" looks before the start | |
738 * position (pattern contains "\@<=" or "\@<!"). | |
739 */ | |
740 int | |
741 re_lookbehind(regprog_T *prog) | |
742 { | |
743 return (prog->regflags & RF_LOOKBH); | |
744 } | 734 } |
745 | 735 |
746 /* | 736 /* |
747 * Check for an equivalence class name "[=a=]". "pp" points to the '['. | 737 * Check for an equivalence class name "[=a=]". "pp" points to the '['. |
748 * Returns a character representing the class. Zero means that no item was | 738 * Returns a character representing the class. Zero means that no item was |
8204 verbose_leave(); | 8194 verbose_leave(); |
8205 } | 8195 } |
8206 } | 8196 } |
8207 #endif | 8197 #endif |
8208 | 8198 |
8199 #if (defined(FEAT_X11) && (defined(FEAT_TITLE) || defined(FEAT_XCLIPBOARD))) \ | |
8200 || defined(PROTO) | |
8209 /* | 8201 /* |
8210 * Return whether "prog" is currently being executed. | 8202 * Return whether "prog" is currently being executed. |
8211 */ | 8203 */ |
8212 int | 8204 int |
8213 regprog_in_use(regprog_T *prog) | 8205 regprog_in_use(regprog_T *prog) |
8214 { | 8206 { |
8215 return prog->re_in_use; | 8207 return prog->re_in_use; |
8216 } | 8208 } |
8209 #endif | |
8217 | 8210 |
8218 /* | 8211 /* |
8219 * Match a regexp against a string. | 8212 * Match a regexp against a string. |
8220 * "rmp->regprog" is a compiled regexp as returned by vim_regcomp(). | 8213 * "rmp->regprog" is a compiled regexp as returned by vim_regcomp(). |
8221 * Note: "rmp->regprog" may be freed and changed. | 8214 * Note: "rmp->regprog" may be freed and changed. |