check TODO

This commit is contained in:
mcolonna 2024-04-26 12:33:38 +02:00
parent d90fc62be5
commit 149bafef88
2 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
/* Updated: 2024/04/26 12:27:17 by mcolonna ### ########.fr */
/* Updated: 2024/04/26 12:33:20 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -38,7 +38,7 @@ typedef struct s_call
{
const char *program; // path of the program to call.
int argc; // number of arguments given
char *const *argv; // arguments given
char *const *argv; // arguments given (ended by NULL)
// (argc and argv must include the program name)
} t_call;
@ -46,7 +46,7 @@ typedef struct s_call
typedef struct s_command
{
bool error; // true if an error occured in interpret_command().
const t_call *calls; // all calls to programs.
const t_call *calls; // all calls to programs (ended by .program == NULL)
int input_fd; // fd to use with '<' redirection (0 by default)
int output_fd; // fd to use with '>' redirection (1 by default)
} t_command;