chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Fix #566 and simplify/improve flonum print


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Fix #566 and simplify/improve flonum printing code
Date: Sun, 1 Dec 2013 17:35:04 +0100
User-agent: Mutt/1.4.2.3i

On Sun, Dec 01, 2013 at 11:31:31AM -0500, John Cowan wrote:
> Peter Bex <address@hidden> scripsit:
> 
> > However, I've tested all three Windows builds, and they all behave
> > equally well (or better) with s[n]printf() instead of gcvt().  We no
> > longer have a MSVC build, so the original problem probably was there,
> 
> As of Visual C++ 2005, Microsoft deprecated all the functions in the C
> Runtime Library that aren't part of ISO C.  So snprintf, which is part
> of Posix but not ISO C, appears as _snprintf.  This is a general problem
> which we'll have to solve if we ever want a VC++ build.  In some cases,
> like gcvt, the original function survives in deprecated form, but _gcvt
> is recommended.  This is all in the name of avoiding namespace pollution,
> a silly concern on Windows with its monstrous <windows.h> file.

We'll fix that when we get to it.  I think there may be other calls
like it which don't work as-is.  We could fix it in chicken.h by
aliasing it to C_snprintf or do it some other way.

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

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