* ext/fiddle/conversions.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c6e6380665
commit
8f59ed795d
@ -1,3 +1,7 @@
|
|||||||
|
Mon Feb 14 21:04:01 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/fiddle/conversions.h: parenthesize macro arguments.
|
||||||
|
|
||||||
Mon Feb 14 18:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Mon Feb 14 18:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* win32/setup.mak (USE_RUBYGEMS): fixed r30835. It didn't work on
|
* win32/setup.mak (USE_RUBYGEMS): fixed r30835. It didn't work on
|
||||||
|
@ -25,9 +25,9 @@ ffi_type * int_to_ffi_type(int type);
|
|||||||
void value_to_generic(int type, VALUE src, fiddle_generic * dst);
|
void value_to_generic(int type, VALUE src, fiddle_generic * dst);
|
||||||
VALUE generic_to_value(VALUE rettype, fiddle_generic retval);
|
VALUE generic_to_value(VALUE rettype, fiddle_generic retval);
|
||||||
|
|
||||||
#define VALUE2GENERIC(_type, _src, _dst) value_to_generic(_type, _src, _dst)
|
#define VALUE2GENERIC(_type, _src, _dst) value_to_generic((_type), (_src), (_dst))
|
||||||
#define INT2FFI_TYPE(_type) int_to_ffi_type(_type)
|
#define INT2FFI_TYPE(_type) int_to_ffi_type(_type)
|
||||||
#define GENERIC2VALUE(_type, _retval) generic_to_value(_type, _retval)
|
#define GENERIC2VALUE(_type, _retval) generic_to_value((_type), (_retval))
|
||||||
|
|
||||||
#if SIZEOF_VOIDP == SIZEOF_LONG
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
||||||
# define PTR2NUM(x) (ULONG2NUM((unsigned long)(x)))
|
# define PTR2NUM(x) (ULONG2NUM((unsigned long)(x)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user