mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_pkcs12.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4960e66ab6
commit
c0c182bf88
2 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Feb 28 16:48:42 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/openssl/ossl_pkcs12.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Mon Feb 28 16:28:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Feb 28 16:28:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (tr_trans): when the hash for multibyte repl is empty,
|
* string.c (tr_trans): when the hash for multibyte repl is empty,
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
#include "ossl.h"
|
#include "ossl.h"
|
||||||
|
|
||||||
#define WrapPKCS12(klass, obj, p12) do { \
|
#define WrapPKCS12(klass, obj, p12) do { \
|
||||||
if(!p12) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
|
if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
|
||||||
obj = Data_Wrap_Struct(klass, 0, PKCS12_free, p12); \
|
(obj) = Data_Wrap_Struct((klass), 0, PKCS12_free, (p12)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define GetPKCS12(obj, p12) do { \
|
#define GetPKCS12(obj, p12) do { \
|
||||||
Data_Get_Struct(obj, PKCS12, p12); \
|
Data_Get_Struct((obj), PKCS12, (p12)); \
|
||||||
if(!p12) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
|
if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define SafeGetPKCS12(obj, p12) do { \
|
#define SafeGetPKCS12(obj, p12) do { \
|
||||||
OSSL_Check_Kind(obj, cPKCS12); \
|
OSSL_Check_Kind((obj), cPKCS12); \
|
||||||
GetPKCS12(obj, p12); \
|
GetPKCS12((obj), (p12)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define ossl_pkcs12_set_key(o,v) rb_iv_set((o), "@key", (v))
|
#define ossl_pkcs12_set_key(o,v) rb_iv_set((o), "@key", (v))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue