Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h

This commit is contained in:
Felipe Oliveira Carvalho
2015-04-22 19:47:53 -03:00
parent 93bf201119
commit caabcae0b7
37 changed files with 168 additions and 176 deletions

View File

@@ -4641,7 +4641,7 @@ int get_list_range(char_u **str, int *num1, int *num2)
long num;
*str = skipwhite(*str);
if (**str == '-' || vim_isdigit(**str)) { /* parse "from" part of range */
if (**str == '-' || ascii_isdigit(**str)) { /* parse "from" part of range */
vim_str2nr(*str, NULL, &len, FALSE, FALSE, &num, NULL);
*str += len;
*num1 = (int)num;
@@ -4681,7 +4681,7 @@ void ex_history(exarg_T *eap)
return;
}
if (!(VIM_ISDIGIT(*arg) || *arg == '-' || *arg == ',')) {
if (!(ascii_isdigit(*arg) || *arg == '-' || *arg == ',')) {
end = arg;
while (ASCII_ISALPHA(*end)
|| vim_strchr((char_u *)":=@>/?", *end) != NULL)