momentanee solution pour extern variable

This commit is contained in:
Hugo LAMY
2021-12-20 15:06:31 +01:00
parent 49099a0abd
commit 59a43ea1cc
3 changed files with 6 additions and 4 deletions

View File

@@ -6,14 +6,14 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */ /* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */ /* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/12/17 21:16:53 by lperrey ### ########.fr */ /* Updated: 2021/12/20 14:58:00 by hulamy ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#ifndef MINISHELL_PROTOTYPES_H #ifndef MINISHELL_PROTOTYPES_H
# define MINISHELL_PROTOTYPES_H # define MINISHELL_PROTOTYPES_H
int g_switch_heredoc_sigint; extern int g_switch_heredoc_sigint;
extern char **environ; extern char **environ;
// Init // Init

View File

@@ -6,12 +6,14 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */ /* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */ /* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
/* Updated: 2021/12/18 05:08:48 by lperrey ### ########.fr */ /* Updated: 2021/12/20 14:57:48 by hulamy ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "minishell.h" #include "minishell.h"
int g_switch_heredoc_sigint;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
t_all c; t_all c;