Subject: [ruby-ffi] Missing type: uintptr_t |
From: galdor |
Date: 2/9/10 2:29 AM |
To: ruby-ffi |
Hi,
It seems the type uintptr_t isn't supported by ruby-ffi. intptr_t is
supported by :__intptr_t (should be renamed, it's a bit awkward), but
there is neither :uintptr_t nor :__uintptr_t.
I added the following function to FFI:
def self.get_types
type_map = TypeDefs if type_map.nil?
type_map.keys
end
And when called, I get:
[:char, :uchar, :int8, :uint8, :short, :ushort, :int16, :uint16, :int, :uint, :int32, :uint32, :long, :ulong, :int64, :uint64, :long_long, :ulong_long, :float, :double, :pointer, :void, :string, :buffer_in, :buffer_out, :buffer_inout, :varargs, :enum, :bool, :char_array]
I don't know where the problem is, but if someone had an idea to
get :uintptr_t, it would be helpful :)
Regards,
Nicolas Martyanoff