Subject:
[ruby-ffi] Re: Pointer Freeing Bug
From:
JEG2
Date:
1/6/10 3:12 PM
To:
ruby-ffi

On Jan 6, 2:43 pm, JEG2 <ja...@graysoftinc.com> wrote:
> It seems to work, but I wasn't sure how to define the size_t
> parameter.  I assumed it's an unsigned long and defined it as such:
>
>     func :name    => :malloc,
>          :args    => :ulong,
>          :returns => :pointer
>
> Can I really count on that though?  Is it portable?

Ah, FFI does support size_t.  It's just not listed here:

http://wiki.github.com/ffi/ffi/types

I've switched to using that.

James Edward Gray II