diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/misc2.c | 19 | ||||
-rw-r--r-- | src/proto.h | 4 | ||||
-rw-r--r-- | src/vim.h | 2 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/misc2.c b/src/misc2.c index c4d93ca1f0..cefcc568cc 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1411,25 +1411,6 @@ char_u *vim_strrchr(char_u *string, int c) } /* - * Vim's version of strpbrk(), in case it's missing. - * Don't generate a prototype for this, causes problems when it's not used. - */ -# ifndef HAVE_STRPBRK -# ifdef vim_strpbrk -# undef vim_strpbrk -# endif -char_u *vim_strpbrk(char_u *s, char_u *charset) -{ - while (*s) { - if (vim_strchr(charset, *s) != NULL) - return s; - mb_ptr_adv(s); - } - return NULL; -} -# endif - -/* * Vim has its own isspace() function, because on some machines isspace() * can't handle characters above 128. */ diff --git a/src/proto.h b/src/proto.h index c0617ac951..8089d3c02b 100644 --- a/src/proto.h +++ b/src/proto.h @@ -42,10 +42,6 @@ vim_snprintf(char *, size_t, char *, ...); int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs); -#ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */ -char_u *vim_strpbrk(char_u *s, char_u *charset); -#endif - /* Ugly solution for "BalloonEval" not being defined while it's used in some * .pro files. */ # define BalloonEval int @@ -1071,9 +1071,7 @@ typedef enum { #define STRCAT(d, s) strcat((char *)(d), (char *)(s)) #define STRNCAT(d, s, n) strncat((char *)(d), (char *)(s), (size_t)(n)) -#ifdef HAVE_STRPBRK # define vim_strpbrk(s, cs) (char_u *)strpbrk((char *)(s), (char *)(cs)) -#endif #define MSG(s) msg((char_u *)(s)) #define MSG_ATTR(s, attr) msg_attr((char_u *)(s), (attr)) |