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

ruby-changes:18916

From: akr <ko1@a...>
Date: Tue, 22 Feb 2011 21:39:55 +0900 (JST)
Subject: [ruby-changes:18916] Ruby:r30941 (trunk): * ext/openssl/ossl_digest.c: parenthesize macro arguments.

akr	2011-02-22 21:39:43 +0900 (Tue, 22 Feb 2011)

  New Revision: 30941

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

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

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30940)
+++ ChangeLog	(revision 30941)
@@ -1,3 +1,7 @@
+Tue Feb 22 21:39:28 2011  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_digest.c: parenthesize macro arguments.
+
 Tue Feb 22 14:34:26 2011  Shota Fukumori (sora_h) <sorah@t...>
 
 	* lib/test/unit.rb: Fix merging miss.
Index: ext/openssl/ossl_digest.c
===================================================================
--- ext/openssl/ossl_digest.c	(revision 30940)
+++ ext/openssl/ossl_digest.c	(revision 30941)
@@ -11,14 +11,14 @@
 #include "ossl.h"
 
 #define GetDigest(obj, ctx) do { \
-    Data_Get_Struct(obj, EVP_MD_CTX, ctx); \
-    if (!ctx) { \
+    Data_Get_Struct((obj), EVP_MD_CTX, (ctx)); \
+    if (!(ctx)) { \
 	ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \
     } \
 } while (0)
 #define SafeGetDigest(obj, ctx) do { \
-    OSSL_Check_Kind(obj, cDigest); \
-    GetDigest(obj, ctx); \
+    OSSL_Check_Kind((obj), cDigest); \
+    GetDigest((obj), (ctx)); \
 } while (0)
 
 /*

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

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