"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 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/11/26 19:04:25 by lperrey ### ########.fr */
/* Updated: 2021/11/26 21:45:26 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,7 +14,8 @@
# define MINISHELL_PROTOTYPES_H
// variable globale
int switch_heredoc_sigint;
int g_switch_heredoc_sigint;
extern char **environ;
// Init
int init(t_all *c);

View File

@@ -6,14 +6,14 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
/* Updated: 2021/11/26 21:28:55 by lperrey ### ########.fr */
/* Updated: 2021/11/26 21:53:39 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_STRUCTS_H
# define MINISHELL_STRUCTS_H
struct s_all *g_all;
struct s_all;
enum e_token_id
{