[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scheme integer from C
From: |
Rob Browning |
Subject: |
Re: scheme integer from C |
Date: |
Sun, 11 May 2003 10:22:42 -0500 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) |
"Dr. Peter Ivanyi" <address@hidden> writes:
> How do I create a scheme integer in C from a C integer? Do I still
> have to use the gh_ interface? The documantation mentions the
> SCM_MAKEINUM, but it says that there is no overflow check. So
> what is the correct way to create a scheme integer with overflow
> check, etc?
You probably want the scm_FOO2num functions. See libguile/numbers.h.
i.e. scm_long2num, scm_ulong2num, etc.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4