mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Ensure that all uses of <ctype.h> functions are applied to unsigned-char
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
This commit is contained in:
@ -207,8 +207,8 @@ struct re_guts
|
||||
#endif
|
||||
|
||||
#ifdef MULTIBYTE
|
||||
#define ISWORD(c) ((c >= 0 && c <= UCHAR_MAX) && \
|
||||
(isalnum(c) || (c) == '_'))
|
||||
#define ISWORD(c) (((c) >= 0 && (c) <= UCHAR_MAX) && \
|
||||
(isalnum((unsigned char) (c)) || (c) == '_'))
|
||||
#else
|
||||
#define ISWORD(c) (isalnum(c) || (c) == '_')
|
||||
#define ISWORD(c) (isalnum((unsigned char) (c)) || (c) == '_')
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user