From e439b71d807529734f04ce9d78b98c12022e7c72 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 16 Sep 2020 16:19:22 +0200 Subject: Refactoring main, all setup code in setup.c, disabled -c and -l flags if not tested --- include/minishell.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/minishell.h b/include/minishell.h index 6c7eaf0..58afe7f 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/09/15 20:34:19 by charles ### ########.fr */ +/* Updated: 2020/09/16 16:07:36 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -51,7 +51,7 @@ typedef t_ftvec* t_env; extern int g_last_status; -extern char *g_basename; +extern char *g_progname; /* ** path.c @@ -123,4 +123,10 @@ void signal_sigterm(int signum); void print_prompt(void); +/* +** setup.c +*/ + +bool setup(char *first_arg, t_env env); + #endif -- cgit