* ext/openssl/ossl_digest.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06aeddaf92
commit
b7af3f6f0c
@ -1,3 +1,7 @@
|
|||||||
|
Tue Feb 22 21:39:28 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/openssl/ossl_digest.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Tue Feb 22 14:34:26 2011 Shota Fukumori (sora_h) <sorah@tubusu.net>
|
Tue Feb 22 14:34:26 2011 Shota Fukumori (sora_h) <sorah@tubusu.net>
|
||||||
|
|
||||||
* lib/test/unit.rb: Fix merging miss.
|
* lib/test/unit.rb: Fix merging miss.
|
||||||
|
@ -11,14 +11,14 @@
|
|||||||
#include "ossl.h"
|
#include "ossl.h"
|
||||||
|
|
||||||
#define GetDigest(obj, ctx) do { \
|
#define GetDigest(obj, ctx) do { \
|
||||||
Data_Get_Struct(obj, EVP_MD_CTX, ctx); \
|
Data_Get_Struct((obj), EVP_MD_CTX, (ctx)); \
|
||||||
if (!ctx) { \
|
if (!(ctx)) { \
|
||||||
ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \
|
ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define SafeGetDigest(obj, ctx) do { \
|
#define SafeGetDigest(obj, ctx) do { \
|
||||||
OSSL_Check_Kind(obj, cDigest); \
|
OSSL_Check_Kind((obj), cDigest); \
|
||||||
GetDigest(obj, ctx); \
|
GetDigest((obj), (ctx)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user