Y a exam desoler bb pas le temps de te mettre un vrai commit jtm

This commit is contained in:
Raphaël 2024-03-28 15:25:38 +01:00
parent 5d425048f2
commit 9a87ad7097
13 changed files with 457 additions and 8 deletions

32
includes/minishell.h Normal file
View file

@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minishell.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 14:41:15 by rparodi #+# #+# */
/* Updated: 2024/03/28 15:21:29 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
#define MINISHELL_H
# include "./type_rust.h"
# include "../libft/get_next_line.h"
# include <unistd.h>
# include <fcntl.h>
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
# include <sys/types.h>
# include <sys/wait.h>
# include <stdlib.h>
# include <stdarg.h>
# include <readline/readline.h>
# include <readline/history.h>
i32 main(void);
#endif

38
includes/type_rust.h Normal file
View file

@ -0,0 +1,38 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* type_rust.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 14:44:20 by rparodi #+# #+# */
/* Updated: 2024/03/28 15:01:47 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef TYPE_RUST_H
#define TYPE_RUST_H
#include <stddef.h>
# define bool int
# define true 1
# define false 0
# define u8 unsigned char
# define u16 unsigned short
# define u32 unsigned int
# define u64 unsigned long long
# define i8 char
# define i16 short
# define i32 int
# define i64 long long
# define usize size_t
# define isize ssize_t
# define f32 float
# define f64 double
#endif