Re: [Chicken-users] FFI Question

2006-05-08 Thread Heath Johns
Thank you, Thomas and Felix, for answering my question :) Heath On 07/05/06, felix winkelmann <[EMAIL PROTECTED]> wrote: On 5/4/06, Heath Johns <[EMAIL PROTECTED]> wrote: > I've got a noob question: Why does this segfault? Should I be doing > this differently? I'm using 2.3 stable on linux.

Re: [Chicken-users] FFI Question

2006-05-07 Thread felix winkelmann
On 5/4/06, Heath Johns <[EMAIL PROTECTED]> wrote: I've got a noob question: Why does this segfault? Should I be doing this differently? I'm using 2.3 stable on linux... Hi! No noob question at all. You've found a genuine bug: the result type conversion didn't do the right thing for null po

Re: [Chicken-users] FFI Question

2006-05-07 Thread Thomas Chust
On Wed, 3 May 2006, Heath Johns wrote: Hey there, nice scheme you've got here folks :) I've got a noob question: Why does this segfault? Should I be doing this differently? I'm using 2.3 stable on linux... [...] Hello, try using c-string* instead of c-string as the return type of nothing.

[Chicken-users] FFI Question

2006-05-07 Thread Heath Johns
Hey there, nice scheme you've got here folks :) I've got a noob question: Why does this segfault? Should I be doing this differently? I'm using 2.3 stable on linux... -- #> char* nothing(); void bob() { printf("%p\n", nothing()); } <# (foreign-saf