mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
This commit is contained in:
@@ -82,7 +82,7 @@ static char_u *skip_string(char_u *p)
|
||||
i = 2;
|
||||
if (p[1] == '\\') { /* '\n' or '\000' */
|
||||
++i;
|
||||
while (vim_isdigit(p[i - 1])) /* '\000' */
|
||||
while (ascii_isdigit(p[i - 1])) /* '\000' */
|
||||
++i;
|
||||
}
|
||||
if (p[i] == '\'') { /* check for trailing ' */
|
||||
@@ -1467,7 +1467,7 @@ void parse_cino(buf_T *buf)
|
||||
divider = 0;
|
||||
if (*p == '.') { /* ".5s" means a fraction */
|
||||
fraction = atoi((char *)++p);
|
||||
while (VIM_ISDIGIT(*p)) {
|
||||
while (ascii_isdigit(*p)) {
|
||||
++p;
|
||||
if (divider)
|
||||
divider *= 10;
|
||||
@@ -1673,7 +1673,7 @@ int get_c_indent(void)
|
||||
what = *p++;
|
||||
else if (*p == COM_LEFT || *p == COM_RIGHT)
|
||||
align = *p++;
|
||||
else if (VIM_ISDIGIT(*p) || *p == '-') {
|
||||
else if (ascii_isdigit(*p) || *p == '-') {
|
||||
off = getdigits_int(&p);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user