general improvement
This commit is contained in:
@@ -27,26 +27,33 @@ typedef struct s_msh
|
||||
char **env;
|
||||
} t_msh;
|
||||
|
||||
|
||||
# include <stdio.h>
|
||||
# include <readline/readline.h>
|
||||
# include <readline/history.h>
|
||||
# include <unistd.h>
|
||||
# include <stdlib.h>
|
||||
# include <stdbool.h>
|
||||
# include <signal.h>
|
||||
|
||||
# include "../lib/libft/libft.h"
|
||||
# include "parser/ast.h"
|
||||
# include "parser/drawio.h"
|
||||
# include "parser/tokenizer.h"
|
||||
# include "parser/parsing.h"
|
||||
# include "parser/heredoc.h"
|
||||
# include "exec/builtins.h"
|
||||
# include "exec/env.h"
|
||||
# include "exec/exec.h"
|
||||
# include "exec/expander.h"
|
||||
|
||||
t_msh *init_msh(char **envp);
|
||||
void free_msh(t_msh *msh);
|
||||
t_msh *init_msh(char **envp);
|
||||
void free_msh(t_msh *msh);
|
||||
void free_child(t_msh *msh);
|
||||
void init_sig();
|
||||
void handle_sigint(int sig);
|
||||
void handle_sigquit(int sig);
|
||||
char *powerline(t_msh *msh);
|
||||
|
||||
# define POW1 "\033[1;38;2;21;22;26;48;2;92;106;178m"
|
||||
# define POW2 "\033[1;38;2;92;106;178;48;2;54;54;54m"
|
||||
|
||||
22
includes/parser/heredoc.h
Normal file
22
includes/parser/heredoc.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* heredoc.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/10 13:42:28 by nalebrun #+# #+# */
|
||||
/* Updated: 2025/02/10 13:42:28 by nalebrun ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HEREDOC_H
|
||||
# define HEREDOC_H
|
||||
|
||||
# include "../minishell.h"
|
||||
|
||||
void read_hereinput(char *limiter);
|
||||
void parse_heredoc(char *limiter);
|
||||
void create_heredoc(t_node *lst);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user