зеркало из https://github.com/github/ruby.git
* ext/openssl/ossl_ns_spki.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
715dc8355c
Коммит
92ba80cc4a
|
@ -1,3 +1,7 @@
|
|||
Sun Feb 27 13:16:48 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_ns_spki.c: parenthesize macro arguments.
|
||||
|
||||
Sat Feb 26 17:07:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* lib/date.rb: [Feature #4257]
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
#include "ossl.h"
|
||||
|
||||
#define WrapSPKI(klass, obj, spki) do { \
|
||||
if (!spki) { \
|
||||
if (!(spki)) { \
|
||||
ossl_raise(rb_eRuntimeError, "SPKI wasn't initialized!"); \
|
||||
} \
|
||||
obj = Data_Wrap_Struct(klass, 0, NETSCAPE_SPKI_free, spki); \
|
||||
(obj) = Data_Wrap_Struct((klass), 0, NETSCAPE_SPKI_free, (spki)); \
|
||||
} while (0)
|
||||
#define GetSPKI(obj, spki) do { \
|
||||
Data_Get_Struct(obj, NETSCAPE_SPKI, spki); \
|
||||
if (!spki) { \
|
||||
Data_Get_Struct((obj), NETSCAPE_SPKI, (spki)); \
|
||||
if (!(spki)) { \
|
||||
ossl_raise(rb_eRuntimeError, "SPKI wasn't initialized!"); \
|
||||
} \
|
||||
} while (0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче