mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
627527d718
commit
3b17a84e4a
2 changed files with 10 additions and 6 deletions
|
@ -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>
|
Tue Mar 15 09:49:03 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* test/misc/test_ruby_mode.rb(test_singleton_class): Skip for Pending.
|
* test/misc/test_ruby_mode.rb(test_singleton_class): Skip for Pending.
|
||||||
|
|
|
@ -11,20 +11,20 @@
|
||||||
#include "ossl.h"
|
#include "ossl.h"
|
||||||
|
|
||||||
#define WrapX509CRL(klass, obj, crl) do { \
|
#define WrapX509CRL(klass, obj, crl) do { \
|
||||||
if (!crl) { \
|
if (!(crl)) { \
|
||||||
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
|
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)
|
} while (0)
|
||||||
#define GetX509CRL(obj, crl) do { \
|
#define GetX509CRL(obj, crl) do { \
|
||||||
Data_Get_Struct(obj, X509_CRL, crl); \
|
Data_Get_Struct((obj), X509_CRL, (crl)); \
|
||||||
if (!crl) { \
|
if (!(crl)) { \
|
||||||
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
|
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define SafeGetX509CRL(obj, crl) do { \
|
#define SafeGetX509CRL(obj, crl) do { \
|
||||||
OSSL_Check_Kind(obj, cX509CRL); \
|
OSSL_Check_Kind((obj), cX509CRL); \
|
||||||
GetX509CRL(obj, crl); \
|
GetX509CRL((obj), (crl)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue