From: Gonsolo <go...@gm...> - 2010-03-13 00:45:08
|
> We can't use strtof for the same reason we can't (directly) use strtod. > It uses the locale, so that can make it parse numbers incorrectly. All > of the users of _mesa_strtod actually want _mesa_strtof, so the right > fix is to change the existing _mesa_strtod to _mesa_strtof. Some remarks from a beginner: 1. Isn't strtod meant to be a very basic function? Making it dependent on a locale isn't helpful. 2. I see strtod_l is defined in /usr/include/stdlib.h which is part of the package libc6-dev on my Ubuntu system, yet there is no manpage for it. 3. strtod is defined in /usr/include/stdlib.h which is in package libc6-dev, the manpage is in manpages-dev. From my limited view, every function should be defined in some_package, it should be declared in some_package-dev and documented in some_package-doc. Is there any reason for this mess except being "historical"? (Please excuse my ignorance, just a beginner :) ) g |