2024-05-09 16:46:13 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
2024-05-23 20:53:07 +02:00
|
|
|
/* error_msg.h :+: :+: :+: */
|
2024-05-09 16:46:13 +02:00
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
2024-05-23 20:53:07 +02:00
|
|
|
/* Created: 2024/05/20 20:25:06 by adjoly #+# #+# */
|
2024-07-03 19:13:43 +02:00
|
|
|
/* Updated: 2024/07/03 19:07:12 by adjoly ### ########.fr */
|
2024-05-09 16:46:13 +02:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
2024-05-23 20:53:07 +02:00
|
|
|
#ifndef ERROR_MSG_H
|
|
|
|
# define ERROR_MSG_H
|
2024-05-30 17:59:49 +02:00
|
|
|
|
2024-05-23 20:53:07 +02:00
|
|
|
/**
|
|
|
|
* Here we define all the error message
|
|
|
|
*/
|
2024-06-30 18:03:58 +02:00
|
|
|
# include <stdbool.h>
|
2024-05-09 16:46:13 +02:00
|
|
|
|
2024-07-03 19:13:43 +02:00
|
|
|
# define ERROR_SYNTAX "syntax error"
|
|
|
|
# define ERROR_NO_REDIR "need redirection file"
|
|
|
|
# define ERROR_NO_EOF "need delimiter to heredoc"
|
2024-06-29 20:05:18 +02:00
|
|
|
# define ERROR_NO_FILE "No such file or directory"
|
2024-06-30 18:03:58 +02:00
|
|
|
# define ERROR_CMD_PIPE "No command after pipe"
|
2024-07-03 19:13:43 +02:00
|
|
|
# define ERROR_NO_CMD "No command in the pipe"
|
2024-06-24 12:57:03 +02:00
|
|
|
|
|
|
|
# define ERROR_COREDUMP "(core dumped)"
|
2024-05-30 17:59:49 +02:00
|
|
|
|
2024-06-30 18:03:58 +02:00
|
|
|
char *get_program_name(char *argv_one);
|
|
|
|
bool send_error_parsing(char *msg);
|
|
|
|
|
2024-05-23 20:53:07 +02:00
|
|
|
#endif
|