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:
parent
4ef70a1cfa
commit
03ad2b8c2e
@ -699,3 +699,9 @@ free_ecmascript_string_list(LIST_OF(struct ecmascript_string_list_item) *list)
|
|||||||
mem_free(item);
|
mem_free(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
elinks_isspace(int c)
|
||||||
|
{
|
||||||
|
return c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r' || c == ' ';
|
||||||
|
}
|
||||||
|
@ -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) \
|
#define skip_space(S) \
|
||||||
do { while (isspace((unsigned char)*(S))) (S)++; } while (0)
|
do { while (isspace((unsigned char)*(S))) (S)++; } while (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user