update: removed const modifier on token value

following steps on the parsing process can change its content
This commit is contained in:
2026-02-10 09:24:18 +01:00
parent 609a644fa9
commit 63dd69b01c

View File

@@ -15,7 +15,7 @@
static t_token *tokenize(const char *line, size_t *start);
static t_token_type get_token_type(const char *str);
static t_token *token_new(t_token_type type, const char *text);
static t_token *token_new(t_token_type type, char *text);
static void token_clear(t_token *token);
static t_token *read_token(t_token_type type, const char *line, size_t *i);
static t_token *read_word(const char *line, size_t *i);
@@ -97,7 +97,7 @@ static t_token_type get_token_type(
static t_token *token_new(
t_token_type type,
const char *text)
char *text)
{
t_token *token;