compiles now

This commit is contained in:
2024-03-29 16:20:18 +01:00
parent 25a7368c4c
commit 2a06dc1fac

View File

@ -6,7 +6,7 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */ /* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/27 14:40:44 by tomoron #+# #+# */ /* Created: 2024/03/27 14:40:44 by tomoron #+# #+# */
/* Updated: 2024/03/29 15:57:36 by tomoron ### ########.fr */ /* Updated: 2024/03/29 16:19:05 by tomoron ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -59,7 +59,7 @@ t_cmd_type get_cmd_type_bonus(char **cmd)
return (res); return (res);
} }
int *get_parenthesis_cmd_len(char *cmd) int get_parenthesis_cmd_len(char *cmd)
{ {
int len; int len;
int parenthesis; int parenthesis;
@ -83,8 +83,14 @@ int *get_parenthesis_cmd_len(char *cmd)
return(len); return(len);
} }
int *get_normal_cmd_len(char *cmd) int get_normal_cmd_len(char *cmd)
{ {
int len;
len = 0;
(void)len;
(void)cmd;
return(0);
} }
char *get_cmd_value(char **cmd , t_cmd_type type) char *get_cmd_value(char **cmd , t_cmd_type type)
@ -111,7 +117,7 @@ t_cmd *parsing_bonus(char *cmd)
{ {
type = get_cmd_type_bonus(&cmd); type = get_cmd_type_bonus(&cmd);
if (type == CMD || type == PAREN) if (type == CMD || type == PAREN)
value = get_cmd_value(&cmd); value = get_cmd_value(&cmd, type);
else else
value = 0; value = 0;
res = cmd_add_back(res, value, type); res = cmd_add_back(res, value, type);