Archived
1
0

[🗑️] clean: cleaned project.

This commit is contained in:
2024-04-08 15:46:01 +02:00
parent 36142bd9bb
commit 2aaf9b767d
3 changed files with 10 additions and 32 deletions

View File

@ -6,7 +6,7 @@
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
# Updated: 2024/04/08 15:21:46 by adjoly ### ########.fr #
# Updated: 2024/04/08 15:40:28 by adjoly ### ########.fr #
# #
# **************************************************************************** #
@ -18,7 +18,13 @@ OBJSDIR = obj/
SRCDIR = src/
SRC = $(shell find src -name '*.c')
SRC = src/exec/exec.c \
src/parsing/parsing.c \
src/main.c \
src/utils/getpath.c \
src/utils/set_path.c \
src/utils/ft_freearr.c \
src/utils/ft_senderror.c \
I_DIR = include/

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/06 14:07:27 by adjoly #+# #+# */
/* Updated: 2024/04/08 14:09:14 by adjoly ### ########.fr */
/* Updated: 2024/04/08 15:42:29 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,28 +14,6 @@
#include "pipex.h"
#include <sys/wait.h>
//void ft_printtamerelaputedemaelysdearraydemerde(char **arr)
//{
// char **ll = arr;
//
// while (*ll)
// {
// ft_putendl_fd(*ll, STDOUT_FILENO);
// ll++;
// }
//}
//
//void ft_printstdindemerdemaelystagueule_ps_flocon_est_mims(int fd)
//{
//// char *s = malloc(1);
// ft_putnbr_fd(fd, 2);
// /*while (read(fd, s, 1))
// {
// ft_putchar_fd(*s, 2);
// }*/
//}
//
pid_t ft_exec_fst_pipe(t_pipex *pipex, int fd[2])
{
pid_t pid;

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/21 10:03:04 by adjoly #+# #+# */
/* Updated: 2024/04/08 15:26:06 by adjoly ### ########.fr */
/* Updated: 2024/04/08 15:43:47 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,12 +24,6 @@ void check_cmd_validity(t_pipex *pipex)
{
if (access(cmd->cmd, X_OK) != 0)
{
// ft_freearr((*cmd).option);
// if (pipex->cmd[1].cmd)
// {
// ft_freearr(pipex->cmd[1].option);
// free(pipex->cmd[1].cmd);
// }
ft_senderror(pipex, "Error: Command not found");
}
cmd++;