mesa: Use _mesa_strtod in the lexer for assembly shaders
See bug 24531.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include "main/glheader.h"
|
#include "main/glheader.h"
|
||||||
|
#include "main/imports.h"
|
||||||
#include "prog_instruction.h"
|
#include "prog_instruction.h"
|
||||||
#include "prog_statevars.h"
|
#include "prog_statevars.h"
|
||||||
|
|
||||||
@@ -318,19 +319,19 @@ ARRAYSHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require
|
|||||||
return INTEGER;
|
return INTEGER;
|
||||||
}
|
}
|
||||||
{num}?{frac}{exp}? {
|
{num}?{frac}{exp}? {
|
||||||
yylval->real = strtod(yytext, NULL);
|
yylval->real = _mesa_strtod(yytext, NULL);
|
||||||
return REAL;
|
return REAL;
|
||||||
}
|
}
|
||||||
{num}"."/[^.] {
|
{num}"."/[^.] {
|
||||||
yylval->real = strtod(yytext, NULL);
|
yylval->real = _mesa_strtod(yytext, NULL);
|
||||||
return REAL;
|
return REAL;
|
||||||
}
|
}
|
||||||
{num}{exp} {
|
{num}{exp} {
|
||||||
yylval->real = strtod(yytext, NULL);
|
yylval->real = _mesa_strtod(yytext, NULL);
|
||||||
return REAL;
|
return REAL;
|
||||||
}
|
}
|
||||||
{num}"."{exp} {
|
{num}"."{exp} {
|
||||||
yylval->real = strtod(yytext, NULL);
|
yylval->real = _mesa_strtod(yytext, NULL);
|
||||||
return REAL;
|
return REAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user