util: add _mesa_strtod and _mesa_strtof
authorChia-I Wu <olvaffe@gmail.com>
Wed, 20 Aug 2014 06:40:22 +0000 (14:40 +0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Oct 2014 09:26:19 +0000 (02:26 -0700)
commite3f20294799d727107012d40f6c973975084e4e6
tree0078109ef4b6fed9197e3bd2c19dd5502c1966e0
parent2c2ada67206326911a36368015b9501a023bbac8
util: add _mesa_strtod and _mesa_strtof

Both core mesa and glsl have their own wrappers for strtof_l.  Merge
and move them to util/.  They are compiled with a C++ compiler so that
we can make them thread-safe in a following commit.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Kenneth Graunke <kenneth@whiteacpe.org>
12 files changed:
src/glsl/Makefile.sources
src/glsl/glsl_lexer.ll
src/glsl/s_expression.cpp
src/glsl/s_expression.h
src/glsl/strtod.c [deleted file]
src/glsl/strtod.h [deleted file]
src/mesa/main/imports.c
src/mesa/main/imports.h
src/mesa/program/program_lexer.l
src/util/Makefile.sources
src/util/strtod.cpp [new file with mode: 0644]
src/util/strtod.h [new file with mode: 0644]