aboutsummaryrefslogtreecommitdiff
path: root/src/lexer/token.c
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-06-13 13:00:17 +0200
committernass1pro <nass1pro@gmail.com>2020-06-13 13:00:17 +0200
commitcfb618b6e385a861db7f62141a5f13f211ca6f48 (patch)
treef7f58c01cab975a3c31878acffd0ff194c4c96c3 /src/lexer/token.c
parent38b4378cd29601395affad7832f15f6d71b7d6df (diff)
downloadminishell-cfb618b6e385a861db7f62141a5f13f211ca6f48.tar.gz
minishell-cfb618b6e385a861db7f62141a5f13f211ca6f48.tar.bz2
minishell-cfb618b6e385a861db7f62141a5f13f211ca6f48.zip
Update of token_ferif_stick
Diffstat (limited to 'src/lexer/token.c')
-rw-r--r--src/lexer/token.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lexer/token.c b/src/lexer/token.c
index 6c6a184..490c7b1 100644
--- a/src/lexer/token.c
+++ b/src/lexer/token.c
@@ -12,9 +12,9 @@
#include "lexer.h"
-t_token *token_new(enum e_token_tag tag, char *content)
+t_token *token_new(enum e_token_tag tag, char *content)
{
- t_token *token;
+ t_token *token;
if (content == NULL
|| (token = (t_token*)malloc(sizeof(t_token))) == NULL)
@@ -28,7 +28,7 @@ t_token *token_new(enum e_token_tag tag, char *content)
return token;
}
-void token_destroy(t_token *token)
+void token_destroy(t_token *token)
{
free(token->content);
free(token);