diff options
author | Marek Olšák <[email protected]> | 2016-10-07 04:49:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-31 11:53:38 +0100 |
commit | 47e17586924f6858a29b1bf81cbcba0dd0b21617 (patch) | |
tree | a78c197a85a2c05a558fc7e4b12d0f84f376c73d /src/compiler/glsl/glcpp/glcpp-lex.l | |
parent | 6608dbf540c3724f8cc20619ef3ffb23257dc721 (diff) |
glcpp: use the linear allocator for most objects
v2: cosmetic changes
Tested-by: Edmondo Tommasina <[email protected]> (v1)
Reviewed-by: Nicolai Hähnle <[email protected]> (v1)
Diffstat (limited to 'src/compiler/glsl/glcpp/glcpp-lex.l')
-rw-r--r-- | src/compiler/glsl/glcpp/glcpp-lex.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-lex.l b/src/compiler/glsl/glcpp/glcpp-lex.l index d09441aac88..f4a68767010 100644 --- a/src/compiler/glsl/glcpp/glcpp-lex.l +++ b/src/compiler/glsl/glcpp/glcpp-lex.l @@ -101,7 +101,7 @@ void glcpp_set_column (int column_no , yyscan_t yyscanner); #define RETURN_STRING_TOKEN(token) \ do { \ if (! parser->skipping) { \ - yylval->str = ralloc_strdup (yyextra, yytext); \ + yylval->str = linear_strdup(yyextra->linalloc, yytext); \ RETURN_TOKEN_NEVER_SKIP (token); \ } \ } while(0) |