From: Neil Roberts Date: Wed, 14 Oct 2009 22:25:04 +0000 (+0100) Subject: mesa: Use _mesa_strtod in the lexer for assembly shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=269f16cd96fdbee5d178130171b4ef40258f61cf;p=mesa.git mesa: Use _mesa_strtod in the lexer for assembly shaders See bug 24531. --- diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l index d2402174816..c2803ff7074 100644 --- a/src/mesa/shader/program_lexer.l +++ b/src/mesa/shader/program_lexer.l @@ -22,6 +22,7 @@ * DEALINGS IN THE SOFTWARE. */ #include "main/glheader.h" +#include "main/imports.h" #include "prog_instruction.h" #include "prog_statevars.h" @@ -318,19 +319,19 @@ ARRAYSHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require return INTEGER; } {num}?{frac}{exp}? { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}"."/[^.] { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}{exp} { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}"."{exp} { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; }