Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-24 Thread felix winkelmann
On 7/22/05, Daniel B. Faken [EMAIL PROTECTED] wrote: OK. From what I see in chicken.h, we have: # define C_alloca alloca #define C_alloc(n) ((C_word *)C_alloca((n) * sizeof(C_word))) And as I undestand, alloca() is the same as allocating things on the

Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-22 Thread felix winkelmann
On 7/21/05, Daniel B. Faken [EMAIL PROTECTED] wrote: On a related note: is it OK to call C_alloc() to construct data to be passed via CHICKEN_invoke()? Yes, that should work. The manual entry for C_alloc() says ..Note that stack-allocated data objects have to be passed to Scheme callback

Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-22 Thread Daniel B. Faken
On Fri, 22 Jul 2005, felix winkelmann wrote: On 7/21/05, Daniel B. Faken [EMAIL PROTECTED] wrote: On a related note: is it OK to call C_alloc() to construct data to be passed via CHICKEN_invoke()? Yes, that should work. The manual entry for C_alloc() says ..Note that