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

@@ -257,9 +257,9 @@ int cause_errthrow(char_u *mesg, int severe, int *ignore)
/* Skip the extra "Vim " prefix for message "E458". */
tmsg = elem->msg;
if (STRNCMP(tmsg, "Vim E", 5) == 0
&& VIM_ISDIGIT(tmsg[5])
&& VIM_ISDIGIT(tmsg[6])
&& VIM_ISDIGIT(tmsg[7])
&& ascii_isdigit(tmsg[5])
&& ascii_isdigit(tmsg[6])
&& ascii_isdigit(tmsg[7])
&& tmsg[8] == ':'
&& tmsg[9] == ' ')
(*msg_list)->throw_msg = &tmsg[4];
@@ -405,11 +405,11 @@ char_u *get_exception_string(void *value, int type, char_u *cmdname, int *should
for (p = mesg;; p++) {
if (*p == NUL
|| (*p == 'E'
&& VIM_ISDIGIT(p[1])
&& ascii_isdigit(p[1])
&& (p[2] == ':'
|| (VIM_ISDIGIT(p[2])
|| (ascii_isdigit(p[2])
&& (p[3] == ':'
|| (VIM_ISDIGIT(p[3])
|| (ascii_isdigit(p[3])
&& p[4] == ':')))))) {
if (*p == NUL || p == mesg)
STRCAT(val, mesg); /* 'E123' missing or at beginning */