CO-CODE Hugo-Luke

+ last_exit_status set/get functions for here_doc
+ TODO : replace all occurences of last_exit_status
+ **environ fix
+ builtin_unset() fix
This commit is contained in:
LuckyLaszlo
2021-11-26 20:44:29 +01:00
parent 3465354af5
commit 18d430c5cb
13 changed files with 119 additions and 239 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/11/24 18:38:11 by hulamy ### ########.fr */
/* Updated: 2021/11/26 19:04:25 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,7 +17,7 @@
int switch_heredoc_sigint;
// Init
int init(t_all *c, char *envp[]);
int init(t_all *c);
char **retrieve_path(char *envp[]);
int set_terminal_attributes(struct termios *ori_termios,
struct termios *interactive_termios,
@@ -91,4 +91,8 @@ char *ft_strdup_quotes(const char *s);
void sigint_handler_interactive(int signum);
void sigint_handler_heredoc(int signum);
// last_exit_status
int set_last_exit_status(int new_value);
int get_last_exit_status(void);
#endif