diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-04 09:41:44 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-04 09:41:44 +0000 |
commit | e395327e8e1d3250fbd222f72573a948b301f331 (patch) | |
tree | b239f1e3c0937bee463ac02e4a31a6a9224f0e27 /include/ruby/ruby.h | |
parent | 386e2d94d86428560b85a01ae9bd128f12cef229 (diff) | |
download | ruby-e395327e8e1d3250fbd222f72573a948b301f331.tar.gz |
parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 8addc09bc7..3f28837281 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -982,17 +982,17 @@ int rb_toupper(int c); #ifndef ISPRINT #define ISASCII(c) rb_isascii((unsigned char)(c)) #undef ISPRINT -#define ISPRINT(c) rb_isprint((unsigned char)c) -#define ISSPACE(c) rb_isspace((unsigned char)c) -#define ISUPPER(c) rb_isupper((unsigned char)c) -#define ISLOWER(c) rb_islower((unsigned char)c) -#define ISALNUM(c) rb_isalnum((unsigned char)c) -#define ISALPHA(c) rb_isalpha((unsigned char)c) -#define ISDIGIT(c) rb_isdigit((unsigned char)c) -#define ISXDIGIT(c) rb_isxdigit((unsigned char)c) -#endif -#define TOUPPER(c) rb_toupper((unsigned char)c) -#define TOLOWER(c) rb_tolower((unsigned char)c) +#define ISPRINT(c) rb_isprint((unsigned char)(c)) +#define ISSPACE(c) rb_isspace((unsigned char)(c)) +#define ISUPPER(c) rb_isupper((unsigned char)(c)) +#define ISLOWER(c) rb_islower((unsigned char)(c)) +#define ISALNUM(c) rb_isalnum((unsigned char)(c)) +#define ISALPHA(c) rb_isalpha((unsigned char)(c)) +#define ISDIGIT(c) rb_isdigit((unsigned char)(c)) +#define ISXDIGIT(c) rb_isxdigit((unsigned char)(c)) +#endif +#define TOUPPER(c) rb_toupper((unsigned char)(c)) +#define TOLOWER(c) rb_tolower((unsigned char)(c)) int st_strcasecmp(const char *s1, const char *s2); int st_strncasecmp(const char *s1, const char *s2, size_t n); |