lists.zerezo.com



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

***BOGO*** Re: [Mingw-users] strtod is not C99-compatible



Brian Dessent wrote:
> Ramiro Polla wrote:
> 
>> Is it possible that a function to replace strtod() with a C99-compliant
>> implementation be made the same way it was done with snprintf? And then
>> one would have to call _strtod to get the original MSVCRT version.
> 
> This is really the kind of thing that gnulib excels at.  You just add
> the strtod module to your project and you get a working replacement
> strtod() that is guaranteed standards-compliant, on any of many dozens
> of platforms, with fallback to the native target's underlying strtod()
> if it is non-broken.

Only if you're happy with the licensing terms of gnulib, which often are 
GPL -- or possibly LGPL (the gnulib strtod module is LGPL).  Depending 
on legal advice, sometimes not even LGPL is acceptable (my employer bans 
the use of LGPL libraries, unless dynamically linked.  For gnulib, it's 
always a static link, so no-go).

Mingw(-runtime) provides viral free implementations of (certain) 
functions in libmingwex, for precisely these reasons.  And the purpose 
of libmingwex itself is to improve C99 compliance of the mingw compile 
system -- not tell users "go use this [L]GPL module from this other 
library".

Don't get me wrong, I'm a fan of copyleft. But avoiding copyleft seems 
to be a theme for mingw and the related runtimes, for several good reasons.

--
Chuck


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users