structure: moved t_command struct definition from parser header file to core header file

This commit is contained in:
2025-10-30 12:56:35 +01:00
parent a6bf9cb60f
commit cbfedb7bc5
3 changed files with 26 additions and 17 deletions

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/22 19:03:51 by sede-san #+# #+# */
/* Updated: 2025/10/23 13:31:09 by sede-san ### ########.fr */
/* Updated: 2025/10/30 12:44:51 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,24 +15,12 @@
# include "minishell.h"
/******************************************************************************/
/* Structures & Data Types */
/******************************************************************************/
typedef struct s_command t_command;
typedef struct s_command
{
int argc;
char **argv;
} t_command;
/******************************************************************************/
/* Functions */
/******************************************************************************/
// parser.c
extern char *parse(char *line, t_minishell *minishell);
extern t_command parse(char *line, t_minishell *minishell);
#endif /* PARSER_H */