"extern char **environ" in header file

+ global var g_all deleted, renamed switch_heredoc_sigint
This commit is contained in:
LuckyLaszlo
2021-11-26 21:58:52 +01:00
parent 07e98c7cf8
commit 843b6d84c5
11 changed files with 16 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 09:22:12 by lperrey #+# #+# */
/* Updated: 2021/11/26 19:02:24 by lperrey ### ########.fr */
/* Updated: 2021/11/26 21:51:40 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,9 +20,6 @@ char *init_prompt(char *prompt_base);
//int init(t_all *c, char *envp[])
int init(t_all *c)
{
extern char **environ;
g_all = c;
ft_bzero(c, sizeof (*c));
environ = ft_dup_2d_arr(environ, (t_dup_f)ft_strdup);
if (!environ)