1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[utf] Own definition of isspace. Refs #249

This commit is contained in:
Witold Filipczyk 2023-07-31 23:23:25 +02:00
parent 4ef70a1cfa
commit 03ad2b8c2e
2 changed files with 10 additions and 0 deletions

View File

@ -699,3 +699,9 @@ free_ecmascript_string_list(LIST_OF(struct ecmascript_string_list_item) *list)
mem_free(item);
}
}
int
elinks_isspace(int c)
{
return c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r' || c == ' ';
}

View File

@ -124,6 +124,10 @@ char * c_strcasestr(const char *haystack, const char *needle);
/** @} */
int elinks_isspace(int c);
#undef isspace
#define isspace elinks_isspace
#define skip_space(S) \
do { while (isspace((unsigned char)*(S))) (S)++; } while (0)