update: removed const modifier on token value
following steps on the parsing process can change its content
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
static t_token *tokenize(const char *line, size_t *start);
|
static t_token *tokenize(const char *line, size_t *start);
|
||||||
static t_token_type get_token_type(const char *str);
|
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 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_token(t_token_type type, const char *line, size_t *i);
|
||||||
static t_token *read_word(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(
|
static t_token *token_new(
|
||||||
t_token_type type,
|
t_token_type type,
|
||||||
const char *text)
|
char *text)
|
||||||
{
|
{
|
||||||
t_token *token;
|
t_token *token;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user