Correction Ctrl+D Here_doc, ajout '_bonus', correction d'autre truc que j'ai oublié
This commit is contained in:
parent
3f270563e9
commit
2e90554ff2
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
GNL = get_next_line/get_next_line.c get_next_line/get_next_line_utils.c
|
GNL = get_next_line/get_next_line.c get_next_line/get_next_line_utils.c
|
||||||
SRCS = mandatory/pipex.c mandatory/pipex_utils.c mandatory/pipex_parsing.c ${GNL}
|
SRCS = mandatory/pipex.c mandatory/pipex_utils.c mandatory/pipex_parsing.c ${GNL}
|
||||||
SRCS_BONUS = bonus/pipex.c bonus/pipex_utils.c bonus/pipex_parsing.c bonus/pipex_heredoc.c bonus/pipex_utils2.c ${GNL}
|
SRCS_BONUS = bonus/pipex_bonus.c bonus/pipex_utils_bonus.c bonus/pipex_parsing_bonus.c bonus/pipex_heredoc_bonus.c bonus/pipex_utils2_bonus.c ${GNL}
|
||||||
OBJS = ${SRCS:.c=.o}
|
OBJS = ${SRCS:.c=.o}
|
||||||
OBJS_BONUS = ${SRCS_BONUS:.c=.o}
|
OBJS_BONUS = ${SRCS_BONUS:.c=.o}
|
||||||
LIBS = libft/libft.a
|
LIBS = libft/libft.a
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex.c :+: :+: :+: */
|
/* pipex_bonus.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/01/18 18:04:58 by erey-bet #+# #+# */
|
/* Created: 2023/03/20 09:48:45 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/08 19:16:14 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:48:53 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "pipex.h"
|
#include "pipex_bonus.h"
|
||||||
|
|
||||||
void make_cmd(t_data data, int i, int fl1, int fl2)
|
void make_cmd(t_data data, int i, int fl1, int fl2)
|
||||||
{
|
{
|
|
@ -1,12 +1,12 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex.h :+: :+: :+: */
|
/* pipex_bonus.h :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/01/11 15:33:34 by erey-bet #+# #+# */
|
/* Created: 2023/01/11 15:33:34 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/08 14:33:18 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:51:26 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex_heredoc.c :+: :+: :+: */
|
/* pipex_heredoc_bonus.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/14 11:22:13 by erey-bet #+# #+# */
|
/* Created: 2023/02/14 11:22:13 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/08 14:38:34 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:49:11 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "pipex.h"
|
#include "pipex_bonus.h"
|
||||||
|
|
||||||
int parsing_here_doc(int argc, char *argv[], t_data *data)
|
int parsing_here_doc(int argc, char *argv[], t_data *data)
|
||||||
{
|
{
|
|
@ -1,16 +1,16 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex_parsing.c :+: :+: :+: */
|
/* pipex_parsing_bonus.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/01/19 17:03:01 by erey-bet #+# #+# */
|
/* Created: 2023/01/19 17:03:01 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/12 17:56:18 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:49:22 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "pipex.h"
|
#include "pipex_bonus.h"
|
||||||
|
|
||||||
int parsing(int argc, char *argv[], char **env, t_data *data)
|
int parsing(int argc, char *argv[], char **env, t_data *data)
|
||||||
{
|
{
|
|
@ -1,16 +1,16 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex_utils2.c :+: :+: :+: */
|
/* pipex_utils2_bonus.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/14 15:46:08 by erey-bet #+# #+# */
|
/* Created: 2023/02/14 15:46:08 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/08 14:39:39 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:49:35 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "pipex.h"
|
#include "pipex_bonus.h"
|
||||||
|
|
||||||
int open_close_pipe(t_data *data, int boolean, int file)
|
int open_close_pipe(t_data *data, int boolean, int file)
|
||||||
{
|
{
|
|
@ -1,16 +1,16 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* pipex_utils.c :+: :+: :+: */
|
/* pipex_utils_bonus.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/01/19 17:02:51 by erey-bet #+# #+# */
|
/* Created: 2023/01/19 17:02:51 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/06 13:24:53 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/20 09:49:45 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "pipex.h"
|
#include "pipex_bonus.h"
|
||||||
|
|
||||||
int get_next(char *cmd, char c)
|
int get_next(char *cmd, char c)
|
||||||
{
|
{
|
Loading…
Reference in a new issue