mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
remove HAVE_STRPBRK
strpbrk is a C99 standard function.
This commit is contained in:

committed by
Thiago de Arruda

parent
ec51b04a89
commit
38ff389496
19
src/misc2.c
19
src/misc2.c
@@ -1410,25 +1410,6 @@ char_u *vim_strrchr(char_u *string, int c)
|
||||
return retval;
|
||||
}
|
||||
|
||||
/*
|
||||
* 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.
|
||||
|
Reference in New Issue
Block a user