From 2a85044cd14e233015d323875749bf655ca3cb31 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 17 Aug 2020 18:51:39 +0200 Subject: new files --- Makefile | 1 + src/m_minishell.c | 1 + src/m_mshrc.c | 18 ++++++++++++++++++ src/m_mshrc.h | 20 ++++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 src/m_mshrc.c create mode 100644 src/m_mshrc.h diff --git a/Makefile b/Makefile index 54f85fc..fd897e0 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ SRCS_NAME += m_comm SRCS_NAME += m_funptr SRCS_NAME += m_loop SRCS_NAME += m_minishell +SRCS_NAME += m_mshrc SRCS_NAME += m_prompt SRCS_NAME += m_redirs SRCS_NAME += s_destroy diff --git a/src/m_minishell.c b/src/m_minishell.c index a538041..7a381ee 100644 --- a/src/m_minishell.c +++ b/src/m_minishell.c @@ -35,6 +35,7 @@ int ft_dprintf(2, "%s\n", strerror(errno)); return (FT_RET_ALLOC); } + m_source_mshrc(msh); ret = m_argv(argc, argv, msh); s_destroy(msh); return (ret); diff --git a/src/m_mshrc.c b/src/m_mshrc.c new file mode 100644 index 0000000..f05f44d --- /dev/null +++ b/src/m_mshrc.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* m_mshrc.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include "s_struct.h" + +void + m_source_mshrc(t_msh *msh) +{ +} diff --git a/src/m_mshrc.h b/src/m_mshrc.h new file mode 100644 index 0000000..325b742 --- /dev/null +++ b/src/m_mshrc.h @@ -0,0 +1,20 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* m_mshrc.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef M_MSHRC_H +#define M_MSHRC_H + +#include "s_struct.h" + +void m_source_mshrc(t_msh *msh); + +#endif -- cgit v1.2.3