remove HAVE_STRPBRK

strpbrk is a C99 standard function.
This commit is contained in:
oni-link
2014-04-01 13:27:29 +02:00
committed by Thiago de Arruda
parent ec51b04a89
commit 38ff389496
4 changed files with 0 additions and 26 deletions

View File

@@ -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.