Added: Pipex as ressources, not most readable code tho...

This commit is contained in:
Maieul BOYER 2024-03-27 13:42:54 +01:00
parent 9482844642
commit 5d425048f2
No known key found for this signature in database
38 changed files with 2975 additions and 0 deletions

View file

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* inner_split_literals.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/04 14:33:41 by maiboyer #+# #+# */
/* Updated: 2024/01/06 18:42:41 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef INNER_SPLIT_LITERALS_H
# define INNER_SPLIT_LITERALS_H
# include "me/string/split_literals.h"
# include "me/types.h"
typedef struct s_booleans
{
bool error;
bool lit_sq;
bool lit_dq;
bool esc;
bool append;
} t_booleans;
char unescape(t_const_str s, t_usize *current_index, bool *did_escape,
t_error *error);
#endif /* INNER_SPLIT_LITERALS_H */

View file

@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* split_literals.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/04 14:31:04 by maiboyer #+# #+# */
/* Updated: 2024/01/04 14:32:40 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SPLIT_LITERALS_H
# define SPLIT_LITERALS_H
# include "me/types.h"
# include "me/vec/vec_str.h"
t_error split_literals(t_const_str s, t_vec_str *out);
#endif /* SPLIT_LITERALS_H */