norme
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
int check_operators(t_token *t, char *input, int *i, int *t_i);
|
||||
|
||||
enum e_in_quote_state
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
int fill_token(t_token *t, char *input, int *i, int *t_i);
|
||||
|
||||
static t_token *alloc_token(size_t content_len);
|
||||
@@ -21,7 +22,7 @@ t_token *input_to_tokens(char *input)
|
||||
t_token *t_head;
|
||||
t_token *t_tmp;
|
||||
size_t input_len;
|
||||
|
||||
|
||||
input_len = ft_strlen(input);
|
||||
t_head = alloc_token(input_len);
|
||||
if (!t_head)
|
||||
@@ -41,7 +42,7 @@ static t_token *alloc_token(size_t content_len)
|
||||
{
|
||||
t_token *token;
|
||||
|
||||
token = ft_calloc(1, sizeof *token);
|
||||
token = ft_calloc(1, sizeof (*token));
|
||||
if (!token)
|
||||
return (NULL);
|
||||
token->content = ft_calloc(content_len + 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user