[前][次][番号順一覧][スレッド一覧]

ruby-changes:3389

From: ko1@a...
Date: 4 Jan 2008 18:41:52 +0900
Subject: [ruby-changes:3389] akr - Ruby:r14882 (trunk): parenthesize macro arguments.

akr	2008-01-04 18:41:44 +0900 (Fri, 04 Jan 2008)

  New Revision: 14882

  Modified files:
    trunk/include/ruby/ruby.h

  Log:
    parenthesize macro arguments.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=14882&r2=14881&diff_format=u

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 14881)
+++ include/ruby/ruby.h	(revision 14882)
@@ -982,17 +982,17 @@
 #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)
+#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 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]