Subject:
Re: [ruby-ffi] Re: Pointer Freeing Bug
From:
Jon
Date:
1/6/10 4:28 PM
To:
ruby-ffi@googlegroups.com

> 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


Is size_t portable across FFI impls?

Jon