* ext/openssl/ossl_engine.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-02-23 13:05:32 +00:00
Родитель fb2f540ad7
Коммит 92729ad473
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Wed Feb 23 22:05:13 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_engine.c: parenthesize macro arguments.
Tue Feb 22 23:15:17 2011 Shota Fukumori (sora_h) <sorah@tubusu.net> Tue Feb 22 23:15:17 2011 Shota Fukumori (sora_h) <sorah@tubusu.net>
* lib/test/unit.rb: Fix --ruby option doesn't effect. * lib/test/unit.rb: Fix --ruby option doesn't effect.

Просмотреть файл

@ -13,20 +13,20 @@
#if defined(OSSL_ENGINE_ENABLED) #if defined(OSSL_ENGINE_ENABLED)
#define WrapEngine(klass, obj, engine) do { \ #define WrapEngine(klass, obj, engine) do { \
if (!engine) { \ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \ } \
obj = Data_Wrap_Struct(klass, 0, ENGINE_free, engine); \ (obj) = Data_Wrap_Struct((klass), 0, ENGINE_free, (engine)); \
} while(0) } while(0)
#define GetEngine(obj, engine) do { \ #define GetEngine(obj, engine) do { \
Data_Get_Struct(obj, ENGINE, engine); \ Data_Get_Struct((obj), ENGINE, (engine)); \
if (!engine) { \ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \ } \
} while (0) } while (0)
#define SafeGetEngine(obj, engine) do { \ #define SafeGetEngine(obj, engine) do { \
OSSL_Check_Kind(obj, cEngine); \ OSSL_Check_Kind((obj), cEngine); \
GetPKCS7(obj, engine); \ GetPKCS7((obj), (engine)); \
} while (0) } while (0)
/* /*