mesa: Use _mesa_strtod in the lexer for assembly shaders

See bug 24531.
This commit is contained in:
Neil Roberts
2009-10-14 23:25:04 +01:00
committed by Brian Paul
parent 31f7e8efb2
commit 269f16cd96

View File

@@ -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;
}