зеркало из https://github.com/github/ruby.git
* ext/openssl/ossl_x509crl.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
627527d718
Коммит
3b17a84e4a
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 15 18:34:27 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_x509crl.c: parenthesize macro arguments.
|
||||
|
||||
Tue Mar 15 09:49:03 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* test/misc/test_ruby_mode.rb(test_singleton_class): Skip for Pending.
|
||||
|
|
|
@ -11,20 +11,20 @@
|
|||
#include "ossl.h"
|
||||
|
||||
#define WrapX509CRL(klass, obj, crl) do { \
|
||||
if (!crl) { \
|
||||
if (!(crl)) { \
|
||||
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
|
||||
} \
|
||||
obj = Data_Wrap_Struct(klass, 0, X509_CRL_free, crl); \
|
||||
(obj) = Data_Wrap_Struct((klass), 0, X509_CRL_free, (crl)); \
|
||||
} while (0)
|
||||
#define GetX509CRL(obj, crl) do { \
|
||||
Data_Get_Struct(obj, X509_CRL, crl); \
|
||||
if (!crl) { \
|
||||
Data_Get_Struct((obj), X509_CRL, (crl)); \
|
||||
if (!(crl)) { \
|
||||
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
|
||||
} \
|
||||
} while (0)
|
||||
#define SafeGetX509CRL(obj, crl) do { \
|
||||
OSSL_Check_Kind(obj, cX509CRL); \
|
||||
GetX509CRL(obj, crl); \
|
||||
OSSL_Check_Kind((obj), cX509CRL); \
|
||||
GetX509CRL((obj), (crl)); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче