[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: check for C99-compliant snprintf - call for volunteers
From: |
Bruno Haible |
Subject: |
Re: check for C99-compliant snprintf - call for volunteers |
Date: |
Tue, 6 Mar 2007 02:09:01 +0100 |
User-agent: |
KMail/1.5.4 |
Daniel Jacobowitz wrote:
> What GDB wants to print in hex floating isn't a host double but a
> target double; if we cast to host double or long double, then in some
> circumstances we lose precision.
For this, in general, you could probably use gnulib's vasnprintf.c source
with a lot of #ifdefs. And especially the code that does the actual
conversion for 'a' and 'A' is unusable if 'double' is not the same as the
target 'double'.
Using snprintfv seems better for you - there you can redefine each directive's
execution independently.
> Anyway, I'm stalled for a while on snprintfv
Why? Paolo presented a nice plan [1]. It only needs to be executed.
Bruno
[1] http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00426.html
Re: check for C99-compliant snprintf - call for volunteers, Ralf Wildenhues, 2007/03/05
Re: check for C99-compliant snprintf - call for volunteers, Albert Chin, 2007/03/07