mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-13 08:44:08 +03:00
add macro version of ctype.h isascii function
presumably internal code (ungetwc and fputwc) was written assuming a macro implementation existed; otherwise use of isascii is just a pessimization.
This commit is contained in:
parent
7e816a6487
commit
3d7e32d28d
@ -64,6 +64,7 @@ int isascii(int);
|
||||
int toascii(int);
|
||||
#define _tolower(a) ((a)|0x20)
|
||||
#define _toupper(a) ((a)&0x5f)
|
||||
#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128)
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <ctype.h>
|
||||
#undef isascii
|
||||
|
||||
int isascii(int c)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user