aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2014-04-01 13:27:29 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-02 18:52:16 -0300
commit38ff389496f91d4b00ea822e44999186b0f62f61 (patch)
tree84b01234e33bcd295042750d1ad8bdeeb67a6980 /src/misc2.c
parentec51b04a89f222d0a5504687dbc4d1d070a19398 (diff)
downloadrneovim-38ff389496f91d4b00ea822e44999186b0f62f61.tar.gz
rneovim-38ff389496f91d4b00ea822e44999186b0f62f61.tar.bz2
rneovim-38ff389496f91d4b00ea822e44999186b0f62f61.zip
remove HAVE_STRPBRK
strpbrk is a C99 standard function.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c19
1 files changed, 0 insertions, 19 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.
*/