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

ruby-changes:19089

From: akr <ko1@a...>
Date: Sat, 19 Mar 2011 12:31:07 +0900 (JST)
Subject: [ruby-changes:19089] Ruby:r31128 (trunk): * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.

akr	2011-03-19 12:30:59 +0900 (Sat, 19 Mar 2011)

  New Revision: 31128

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31128

  Log:
    * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_x509revoked.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31127)
+++ ChangeLog	(revision 31128)
@@ -1,3 +1,7 @@
+Sat Mar 19 12:30:25 2011  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
+
 Fri Mar 18 20:44:36 2011  Tanaka Akira  <akr@f...>
 
 	* ext/openssl/ossl_x509req.c: parenthesize macro arguments.
Index: ext/openssl/ossl_x509revoked.c
===================================================================
--- ext/openssl/ossl_x509revoked.c	(revision 31127)
+++ ext/openssl/ossl_x509revoked.c	(revision 31128)
@@ -11,20 +11,20 @@
 #include "ossl.h"
 
 #define WrapX509Rev(klass, obj, rev) do { \
-    if (!rev) { \
+    if (!(rev)) { \
 	ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
     } \
-    obj = Data_Wrap_Struct(klass, 0, X509_REVOKED_free, rev); \
+    (obj) = Data_Wrap_Struct((klass), 0, X509_REVOKED_free, (rev)); \
 } while (0)
 #define GetX509Rev(obj, rev) do { \
-    Data_Get_Struct(obj, X509_REVOKED, rev); \
-    if (!rev) { \
+    Data_Get_Struct((obj), X509_REVOKED, (rev)); \
+    if (!(rev)) { \
 	ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
     } \
 } while (0)
 #define SafeGetX509Rev(obj, rev) do { \
-    OSSL_Check_Kind(obj, cX509Rev); \
-    GetX509Rev(obj, rev); \
+    OSSL_Check_Kind((obj), cX509Rev); \
+    GetX509Rev((obj), (rev)); \
 } while (0)
 
 /*

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

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