Skip to content

Commit

Permalink
add clear_heredoc to header file
Browse files Browse the repository at this point in the history
  • Loading branch information
izzypt committed Aug 13, 2023
1 parent e4678dd commit b8259cb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions minishell.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* minishell.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: esali <esali@student.42.fr> +#+ +:+ +#+ */
/* By: simao <simao@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/06/20 17:16:06 by esali #+# #+# */
/* Updated: 2023/08/13 12:01:25 by esali ### ########.fr */
/* Updated: 2023/08/13 12:23:08 by simao ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -115,7 +115,6 @@ void execute_command(t_list *node);

/* Pipes and Redirections */

int check_redirection(t_list *node);
void write_to_pipe(t_list *node);
void output_from_pipe(t_list *node);
void write_to_fd(t_list *node);
Expand All @@ -138,6 +137,7 @@ void heredoc_to_pipe(t_list *cur);
void write_to_command(t_list *cur);
void heredoc_to_fd(t_list *cur);
void heredoc_to_append(t_list *cur);
void clear_heredocs(void);

/* Struct Getters */

Expand Down Expand Up @@ -180,15 +180,11 @@ void redirect_stdout_to_pipe(void);
void free_env(void);
int open_file(t_list *node);
int is_pipe(char *token);
int its_a_pipe(t_list *node);
int its_output(t_list *node);
int its_input(t_list *node);
int its_append(t_list *node);
int its_heredoc(t_list *node);
int maxlen(char *s1, char *s2);
void increase_shlvl(void);

/* Error Handling*/

void print_export_error(char *msg);
void print_env_error(void);
void print_dir_error(char *dir);
Expand Down

0 comments on commit b8259cb

Please sign in to comment.