save commit

This commit is contained in:
2026-02-09 20:47:43 +01:00
parent e983f7fe64
commit 280fa51f94
39 changed files with 3400 additions and 239 deletions

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/22 19:10:13 by sede-san #+# #+# */
/* Updated: 2025/12/01 17:02:10 by sede-san ### ########.fr */
/* Updated: 2026/02/09 18:45:41 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -50,8 +50,8 @@ typedef struct s_minishell
{
t_variables variables;
t_hashmap *builtins;
u_int8_t exit_status;
u_int8_t exit;
uint8_t exit_status;
bool exit;
} t_minishell;
/**
@@ -69,8 +69,19 @@ typedef struct s_command
int argc;
char **argv;
char *path;
t_list *redirections;
} t_command;
/**
* @brief Default shell prompt string
*/
# define DEFAULT_PS1 "minishell > "
/**
* @brief Default secondary prompt string for multiline input
*/
# define DEFAULT_PS2 "> "
/******************************************************************************/
/* Functions */
/******************************************************************************/
@@ -79,7 +90,7 @@ typedef struct s_command
extern int minishell_init(t_minishell *minishell, char **envp);
extern u_int8_t minishell_run(t_minishell *minishell);
extern uint8_t minishell_run(t_minishell *minishell);
extern void minishell_clear(t_minishell *minishell);