guile-user
[Top][All Lists]
Advanced

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

Re: (fcntl fd F_GETLK ...) from Guile


From: Mike Gran
Subject: Re: (fcntl fd F_GETLK ...) from Guile
Date: Tue, 11 Sep 2007 09:03:00 -0700 (PDT)

--- Kaloian Doganov <address@hidden> wrote:

> I've just managed to backport your example to Guile 1.6.x. and come
> up
> with the following table of correspondence:
> 
> Guile 1.8.x            Guile 1.6.x
> --------------         -----------
> scm_is_integer         SCM_INUMP
> scm_is_true            SCM_NFALSEP
> scm_to_int             SCM_INUM
> scm_to_int32           SCM_INUM
> scm_from_int           SCM_MAKINUM
> scm_from_int32         SCM_MAKINUM
> scm_to_short (x)       scm_num2short (x, 0, NULL)
> scm_from_short         scm_short2num
> 

That appears correct.

> Not sure whether it is correct, but works for the trivial examples I
> run for now.  I don't know what to do with scm_to_int64 and
> scm_from_int64, though.

For many machines 64bits is long long integers. Try scm_num2long_long
and scm_long_long2num.

-Mike Gran




reply via email to

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