1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl_x509req.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-18 11:45:43 +00:00
parent c7837ed8d3
commit 022b3368da
2 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Fri Mar 18 20:44:36 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509req.c: parenthesize macro arguments.
Fri Mar 18 08:48:06 2011 Oleg Shaldybin <oleg.shaldybin@gmail.com>
* lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp
@ -15,7 +19,7 @@ Fri Mar 18 00:54:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@fsij.org>
Wed Mar 17 06:23:31 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509name.c: parenthesize macro arguments.

View file

@ -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)
/*