[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed getitimer and setitimer functions
From: |
Rob Browning |
Subject: |
Re: proposed getitimer and setitimer functions |
Date: |
29 Jul 2001 16:32:39 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
(Another message that postdrop dropped on 09 Jul 2001 11:27:14 -0500.
Resending now.)
Martin Grabmueller <address@hidden> writes:
> I have a comment about the code above. You are passing NULL to
> scm_num2long because you checked with SCM_VALIDATE_NUMBER before.
> This is not correct, because SCM_VALIDATE_NUMBER allows inexact
> numbers and bignums. scm_num2long will throw an out-of-range error
> when given an inexact number or one that does not fit into a long
> variable, thus passing NULL as the caller's name to scm_out_of_range.
> I don't know what happens when NULL is given as a function name, but I
> suppose it will be at least less informative than passing FUNC_NAME.
Is there any documentation for the VALIDATE functions anywhere? It
looks like SCM_VALIDATE_LONG_COPY does what I want, but I wanted to be
sure.
Thanks
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD
- Re: proposed getitimer and setitimer functions, (continued)
Re: proposed getitimer and setitimer functions, Rob Browning, 2001/07/09
Re: proposed getitimer and setitimer functions, Martin Grabmueller, 2001/07/07
Re: proposed getitimer and setitimer functions, Rob Browning, 2001/07/29