> 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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to