Commit 47e17586 authored by Marek Olšák's avatar Marek Olšák

glcpp: use the linear allocator for most objects

v2: cosmetic changes

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> (v1)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
parent 6608dbf5
......@@ -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)
......
This diff is collapsed.
......@@ -181,6 +181,7 @@ typedef void (*glcpp_extension_iterator)(
bool es);
struct glcpp_parser {
void *linalloc;
yyscan_t scanner;
struct hash_table *defines;
active_list_t *active;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment