[plt-scheme] Eli Barzilay's new FFI stuff
On Sat, 7 Aug 2004 21:22:06 -0400, Eli Barzilay <eli at barzilay.org> wrote:
> On Aug 7, Christopher Armstrong wrote:
> > On Sat, 7 Aug 2004 19:22:54 -0400, Eli Barzilay <eli at barzilay.org> wrote:
> > > You can convert the whole struct to a byte string (which doesn't add
> > > any overhead), then look in that string beyond the header. I'll need
> > > to see if there is any other way to do this.
> >
> > :-( Well, it'll have to do for now. Hmm, I'm getting some error about
> > "undefined identifier: type:" when I try to use (ptr-ref the-string
> > (_bytes o N)) for this purpose. Is that a bug in the _bytes macro?
>
> The (_bytes ...) macro is something that should be used only in a
> (_fun ...) construct. You should use _bytes instead.
Really? But that segfaults... How will it know how many bytes to grab?
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://radix.twistedmatrix.com