--- Kaloian Doganov <[EMAIL PROTECTED]> 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


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to