1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-06 22:10:53 +00:00

[utf] Own definition of isspace. Refs #249

This commit is contained in:
Witold Filipczyk 2023-07-31 23:23:25 +02:00
parent c76feed20e
commit 4036ba1a31
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)