mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* encoding.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c7608c0b1
commit
864f60b837
2 changed files with 5 additions and 1 deletions
|
@ -1556,7 +1556,7 @@ Init_Encoding(void)
|
|||
/* locale insensitive ctype functions */
|
||||
|
||||
#define ctype_test(c, ctype) \
|
||||
(rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), ctype))
|
||||
(rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), (ctype)))
|
||||
|
||||
int rb_isalnum(int c) { return ctype_test(c, ONIGENC_CTYPE_ALNUM); }
|
||||
int rb_isalpha(int c) { return ctype_test(c, ONIGENC_CTYPE_ALPHA); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue