diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 09:29:42 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 09:29:42 +0200 |
| commit | 454d439575489934791c04329df6e82e56dabf54 (patch) | |
| tree | 3beaa9ec4eec1e95898d26d77f88cceaff5978d9 /src/lexer/token.c | |
| parent | cde465358750ef03b66655edcbef468a4a2f210b (diff) | |
| download | minishell-454d439575489934791c04329df6e82e56dabf54.tar.gz minishell-454d439575489934791c04329df6e82e56dabf54.tar.bz2 minishell-454d439575489934791c04329df6e82e56dabf54.zip | |
Renaming e_token_tag -> e_tok
Diffstat (limited to 'src/lexer/token.c')
| -rw-r--r-- | src/lexer/token.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lexer/token.c b/src/lexer/token.c index 43971de..9904351 100644 --- a/src/lexer/token.c +++ b/src/lexer/token.c @@ -12,7 +12,7 @@ #include "lexer.h" -t_token *token_new(enum e_token_tag tag, char *content) +t_token *token_new(enum e_tok tag, char *content) { size_t len; @@ -22,7 +22,7 @@ t_token *token_new(enum e_token_tag tag, char *content) return (token_new_until(tag, content, len)); } -t_token *token_new_until(enum e_token_tag tag, char *content, int n) +t_token *token_new_until(enum e_tok tag, char *content, int n) { t_token *token; @@ -56,12 +56,12 @@ void token_destroy_lst2(t_ftlst *tokens1, t_ftlst *tokens2) ft_lstdestroy(&tokens2, (void (*)(void*))token_destroy); } -enum e_token_tag token_tag(t_ftlst *token_lst) +enum e_tok token_tag(t_ftlst *token_lst) { return (((t_token*)token_lst->data)->tag); } -void token_set_tag(t_ftlst *token_lst, enum e_token_tag tag) +void token_set_tag(t_ftlst *token_lst, enum e_tok tag) { ((t_token*)token_lst->data)->tag = tag; } |
