save commit
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user