[Mesa-dev] [PATCHv3 01/16] util: add _mesa_strtod and _mesa_strtof

Kenneth Graunke kenneth at whitecape.org
Wed Aug 20 12:06:56 PDT 2014


On Wednesday, August 20, 2014 02:40:22 PM Chia-I Wu wrote:
> 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 at lunarg.com>
> ---
>  src/glsl/Makefile.sources        |  3 +-
>  src/glsl/glsl_lexer.ll           | 12 +++---
>  src/glsl/s_expression.cpp        |  2 +-
>  src/glsl/s_expression.h          |  2 +-
>  src/glsl/strtod.c                | 79 ---------------------------------------
>  src/glsl/strtod.h                | 46 -----------------------
>  src/mesa/main/imports.c          | 19 ----------
>  src/mesa/main/imports.h          |  3 --
>  src/mesa/program/program_lexer.l |  1 +
>  src/util/Makefile.sources        |  3 +-
>  src/util/strtod.cpp              | 81 ++++++++++++++++++++++++++++++++++++++++
>  src/util/strtod.h                | 46 +++++++++++++++++++++++
>  12 files changed, 139 insertions(+), 158 deletions(-)
>  delete mode 100644 src/glsl/strtod.c
>  delete mode 100644 src/glsl/strtod.h
>  create mode 100644 src/util/strtod.cpp
>  create mode 100644 src/util/strtod.h

Patches 1-4 are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140820/5af7fa5a/attachment.sig>


More information about the mesa-dev mailing list