mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe7425bb0c
commit
fd641fbf95
2 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Mar 13 18:11:28 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
|
||||
|
||||
Sun Mar 13 16:07:58 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
|
||||
|
|
|
@ -11,20 +11,20 @@
|
|||
#include "ossl.h"
|
||||
|
||||
#define WrapX509Attr(klass, obj, attr) do { \
|
||||
if (!attr) { \
|
||||
if (!(attr)) { \
|
||||
ossl_raise(rb_eRuntimeError, "ATTR wasn't initialized!"); \
|
||||
} \
|
||||
obj = Data_Wrap_Struct(klass, 0, X509_ATTRIBUTE_free, attr); \
|
||||
(obj) = Data_Wrap_Struct((klass), 0, X509_ATTRIBUTE_free, (attr)); \
|
||||
} while (0)
|
||||
#define GetX509Attr(obj, attr) do { \
|
||||
Data_Get_Struct(obj, X509_ATTRIBUTE, attr); \
|
||||
if (!attr) { \
|
||||
Data_Get_Struct((obj), X509_ATTRIBUTE, (attr)); \
|
||||
if (!(attr)) { \
|
||||
ossl_raise(rb_eRuntimeError, "ATTR wasn't initialized!"); \
|
||||
} \
|
||||
} while (0)
|
||||
#define SafeGetX509Attr(obj, attr) do { \
|
||||
OSSL_Check_Kind(obj, cX509Attr); \
|
||||
GetX509Attr(obj, attr); \
|
||||
OSSL_Check_Kind((obj), cX509Attr); \
|
||||
GetX509Attr((obj), (attr)); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue