ruby-changes:19085
From: akr <ko1@a...>
Date: Fri, 18 Mar 2011 20:45:51 +0900 (JST)
Subject: [ruby-changes:19085] Ruby:r31124 (trunk): * ext/openssl/ossl_x509req.c: parenthesize macro arguments.
akr 2011-03-18 20:45:43 +0900 (Fri, 18 Mar 2011) New Revision: 31124 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31124 Log: * ext/openssl/ossl_x509req.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_x509req.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31123) +++ ChangeLog (revision 31124) @@ -1,3 +1,7 @@ +Fri Mar 18 20:44:36 2011 Tanaka Akira <akr@f...> + + * ext/openssl/ossl_x509req.c: parenthesize macro arguments. + Fri Mar 18 08:48:06 2011 Oleg Shaldybin <oleg.shaldybin@g...> * lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp @@ -15,7 +19,7 @@ * include/ruby/ruby.h (rb_funcall_passing_block): add prototype. a patch by James M. Lawrence at [ruby-core:35501] -Wed Mar 16 08:40:39 2011 Tanaka Akira <akr@f...> +Wed Mar 17 06:23:31 2011 Tanaka Akira <akr@f...> * ext/openssl/ossl_x509name.c: parenthesize macro arguments. Index: ext/openssl/ossl_x509req.c =================================================================== --- ext/openssl/ossl_x509req.c (revision 31123) +++ ext/openssl/ossl_x509req.c (revision 31124) @@ -11,20 +11,20 @@ #include "ossl.h" #define WrapX509Req(klass, obj, req) do { \ - if (!req) { \ + if (!(req)) { \ ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \ } \ - obj = Data_Wrap_Struct(klass, 0, X509_REQ_free, req); \ + (obj) = Data_Wrap_Struct((klass), 0, X509_REQ_free, (req)); \ } while (0) #define GetX509Req(obj, req) do { \ - Data_Get_Struct(obj, X509_REQ, req); \ - if (!req) { \ + Data_Get_Struct((obj), X509_REQ, (req)); \ + if (!(req)) { \ ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \ } \ } while (0) #define SafeGetX509Req(obj, req) do { \ - OSSL_Check_Kind(obj, cX509Req); \ - GetX509Req(obj, req); \ + OSSL_Check_Kind((obj), cX509Req); \ + GetX509Req((obj), (req)); \ } while (0) /* -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/