」 feat(headers): organized header files

This commit is contained in:
y-syo
2024-04-29 13:55:21 +02:00
parent 73bb992b01
commit 9c0be09aa1
2 changed files with 25 additions and 10 deletions

23
include/execution.h Normal file
View File

@ -0,0 +1,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* execution.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
/* Updated: 2024/04/29 13:21:31 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef EXECUTION_H
# define EXECUTION_H
typedef struct s_env
{
char *name;
char *content;
struct s_env *next;
} t_env;
#endif

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */ /* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/26 09:38:51 by mmoussou #+# #+# */ /* Created: 2024/04/26 09:38:51 by mmoussou #+# #+# */
/* Updated: 2024/04/29 13:02:46 by mmoussou ### ########.fr */ /* Updated: 2024/04/29 13:21:45 by mmoussou ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -14,21 +14,13 @@
# define MINISHELL_H # define MINISHELL_H
# include "parsing.h" # include "parsing.h"
# include "execution.h"
# include <readline/readline.h> # include <readline/readline.h>
# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>
# include "libft.h" # include "libft.h"
typedef struct s_env
{
char *name;
char *content;
struct s_env *next;
} t_env;
//
char set_env(char **env, const char *name, char *content); char set_env(char **env, const char *name, char *content);
#endif #endif