[Top][All Lists]

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

Re: [Chicken-users] typedef question

From: Peter Keller
Subject: Re: [Chicken-users] typedef question
Date: Mon, 30 Sep 2002 18:09:27 -0500
User-agent: Mutt/1.2i

On Mon, Sep 30, 2002 at 09:07:40AM +0200, Felix wrote:
> Peter Keller wrote:
> > Are these two equivalent?
> > 
> > (define-foreign-type size_t unsigned-int)
> > (define-foreign-type size_t "unsigned int")
> > 
> Yep. But using the former will work properly
> when arguments of this type are passed directly
> as arguments to foreign functions (for example).
> The latter can only be used indirectly (i.e.
> when wrapped inside a `pointer'.

As an addendum, how come unsigned-long-long doesn't exist?  I'm wanting
to represent a dev_t under linux, and it is an unsigned long long type.
I'd write:
(define-foreign-type dev_t unsigned-long-long) 
if it did exist.



reply via email to

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