blob: a3b0354d08022bae60e61b373e60fc1c5aa48e32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minishell.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */
/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <libft.h>
#include <stdint.h>
#include "minishell.h"
#include "ft_d_enum.h"
#include "ft_m_loop.h"
#include "ft_s_struct.h"
#include "ft_s_init.h"
#include "ft_s_destroy.h"
int
main(int argc,
const char *argv[],
char *envp[])
{
t_msh *msh;
int32_t ret;
(void)argc;
(void)argv;
if (!(msh = ft_init_msh(envp)))
{
return (FT_RET_ALLOC);
}
msh->ret = ft_m_loop(msh);
ret = msh->ret;
/* while (*msh->envp) */
/* { */
/* ft_printf("%s\n", *msh->envp); */
/* msh->envp++; */
/* } */
ft_s_destroy(msh);
return (ret);
}
/*
** ====== INFO ======
** Files prefixes info
** -------------------
** ft_ -> 42
** b_ -> builtins related
** d_ -> defines related
** e_ -> exec related
** m_ -> core minishell related
** p_ -> parse related
** s_ -> structs related
*/
|