git.haldean.org expel / b6237a9
record all allocated strings in lexer Haldean Brown 6 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3232 #define TOKEN(x) { yylval->token = x; return x; }
3333 #define TSTRING(token) { \
3434 yylval->string = strdup(yytext); \
35 if (xl_vector_append(&ctx->allocs, yylval->string) != OK) return 0; \
3536 return token; \
3637 }
3738