mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,7 @@
|
|||
Sat Dec 11 09:24:57 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* encoding.c: parenthesize macro arguments.
|
||||
|
||||
Sat Dec 11 08:12:48 2010 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/openssl/ossl.c, ext/openssl/ossl_pkey_rsa.c: Document RSA, RSA
|
||||
|
|
|
@ -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
Reference in a new issue