🔨」 fix: fixed some things.

This commit is contained in:
2024-05-07 11:04:20 +02:00
parent cff9e40005
commit 44bcb15a33
7 changed files with 114 additions and 13 deletions

View File

@ -6,7 +6,11 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/26 09:38:51 by mmoussou #+# #+# */
<<<<<<< HEAD
/* Updated: 2024/05/06 20:30:42 by mmoussou ### ########.fr */
=======
/* Updated: 2024/05/03 10:24:15 by adjoly ### ########.fr */
>>>>>>> e1ba625 (🏗 wip: testing things, might broke.)
/* */
/* ************************************************************************** */
@ -26,5 +30,6 @@ char set_env(char **env, const char *name, char *content);
char *get_hostname(void);
char *get_prompt(void);
char *get_pwd(void);
bool is_str(char *src, char *dst);
#endif

35
include/minishell.h.orig Normal file
View File

@ -0,0 +1,35 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minishell.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/26 09:38:51 by mmoussou #+# #+# */
<<<<<<< HEAD
/* Updated: 2024/05/06 20:30:42 by mmoussou ### ########.fr */
=======
/* Updated: 2024/05/03 10:24:15 by adjoly ### ########.fr */
>>>>>>> e1ba625 (🏗 wip: testing things, might broke.)
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
# define MINISHELL_H
# include <readline/readline.h>
# include <stdio.h>
# include <stdlib.h>
# include <stdint.h>
# include "libft.h"
# include "parsing.h"
# include "execution.h"
char set_env(char **env, const char *name, char *content);
char *get_hostname(void);
char *get_prompt(void);
char *get_pwd(void);
bool is_str(char *src, char *dst);
#endif

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/25 12:20:26 by adjoly #+# #+# */
/* Updated: 2024/04/25 14:30:50 by adjoly ### ########.fr */
/* Updated: 2024/05/04 13:54:02 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -19,4 +19,11 @@ typedef struct s_cmd
char **argv;
} t_cmd;
typedef struct s_parsing
{
} t_parsing;
t_cmd split_cmd(char *cmd_av);
#endif