redirections WIP

This commit is contained in:
LuckyLaszlo
2021-11-14 11:05:58 +01:00
parent 1e682f796d
commit 66b48dc99d
10 changed files with 223 additions and 262 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/11/14 00:35:59 by lperrey ### ########.fr */
/* Updated: 2021/11/14 10:12:30 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -35,7 +35,9 @@ int valid_token(t_token **token_list, enum e_token_id token_id);
int valid_command_separator(const t_token *token_list);
size_t count_pipes(t_token *token);
t_cmd **alloc_cmd_array(size_t cmd_nbr);
int words_expansions(t_token *t);
int words_expansions(t_token *token_list);
int token_expansions(t_token **t);
int redirections(t_token *t, t_cmd **cmd_arr);
// Builtins
int builtin_env(int argc, char *argv[], t_all *c);
@@ -60,5 +62,10 @@ t_list *ft_lstbeforelast(t_list *lst);
t_list *ft_lstnew_generic(size_t lst_sizse, size_t content_size);
typedef void *(*t_dup_func)(void *);
void *ft_dup_2d_arr(void *ptr, void *(*dup_func)(void *));
void ft_perror_io(char *err_str, char *io_file);
int ft_reti_perror_io(int ret, char *err_str, char *io_file);
char **ft_split_quotes(char const *s, char c);
char *ft_strdup_quotes(const char *s);
#endif