chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] minor documentation fix


From: felix winkelmann
Subject: Re: [Chicken-users] minor documentation fix
Date: Mon, 25 Jul 2005 08:30:20 +0200

On 7/22/05, Daniel B. Faken <address@hidden> wrote:
> Hi,
> 
>   The manual entry for (define-foreign-record) should indicate that, when
> using the (TYPENAME FOREIGNNAME) version of NAME, the FOREIGNNAME should
> be quoted.
>   I actually only figured this out by vague recollection of other
> FFI behaviour, since if you try to compile this (as I did at first):
>   (define-foreign-record (CRrectf CRrectf) (GLfloat x1) (GLfloat x2)
> (GLfloat y1) (GLfloat y2))
> 
>  ..the chicken compiler hangs!  (presumably in an infinite recursion)
>  - but if you quote the foreignname it works fine.
> 

Thanks. It is handled internally, now:

172c172
<   (let ([fname (if (pair? name) (cadr name) (sprintf "struct ~A" name))]
---
>   (let ([fname (if (pair? name) (->string (cadr name)) (sprintf "struct ~A" 
> name))]

(chicken-ffi-macros.scm)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]