aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-10 10:34:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-10 10:34:20 +0200
commit5b681182824ae45b5a27d1503de32fa2760c5800 (patch)
treefcbe26572ed46649c9931750c284a0573414bef1 /include/minishell.h
parent0e3db10c626f54a6c6aa94aa59648782e8602c02 (diff)
downloadminishell-5b681182824ae45b5a27d1503de32fa2760c5800.tar.gz
minishell-5b681182824ae45b5a27d1503de32fa2760c5800.tar.bz2
minishell-5b681182824ae45b5a27d1503de32fa2760c5800.zip
Norming interpolation
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/minishell.h b/include/minishell.h
index b1af152..04a9ce0 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */
-/* Updated: 2020/10/10 08:14:38 by cacharle ### ########.fr */
+/* Updated: 2020/10/10 10:33:56 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -123,11 +123,14 @@ int builtin_exit(char **argv, t_env env);
** preprocess.c
*/
+# define INTERPOLATION_STR 0
+# define INTERPOLATION_CURR 1
+
char **preprocess(t_tok_lst **tokens, t_env env);
int preprocess_filename(
t_tok_lst **tokens, t_env env, char **filename);
size_t interpolate(
- char *str, size_t i, t_tok_lst **curr_addr,
+ void *ptrs[2], size_t i,
enum e_tok prev_tag, t_env env);
/*