diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-03 16:50:32 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-03 16:50:32 +0200 |
commit | 6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8 (patch) | |
tree | ad40b8540543eadf35a0747eaae76ce8c1260ccd | |
parent | Pretty good (diff) | |
download | 42-minishell-6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8.tar.gz 42-minishell-6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8.tar.bz2 42-minishell-6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8.tar.xz 42-minishell-6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8.tar.zst 42-minishell-6ca882c8feb9fb88cf8e1421e882fb7e9efb97f8.zip |
In progress
Diffstat (limited to '')
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/b_export.c | 5 | ||||
-rw-r--r-- | src/b_export_next.c | 11 | ||||
-rw-r--r-- | src/b_export_next.h | 2 |
4 files changed, 17 insertions, 3 deletions
@@ -20,7 +20,7 @@ SRCS_NAME += b_echo SRCS_NAME += b_env SRCS_NAME += b_exit SRCS_NAME += b_export -# SRCS_NAME += b_export_next +SRCS_NAME += b_export_next SRCS_NAME += b_pwd SRCS_NAME += b_type SRCS_NAME += b_unset diff --git a/src/b_export.c b/src/b_export.c index 52790e4..c47a8fb 100644 --- a/src/b_export.c +++ b/src/b_export.c @@ -14,8 +14,9 @@ #include <stdlib.h> #include <stdint.h> -#include "d_enum.h" #include "b_env.h" +#include "b_export_next.h" +#include "d_enum.h" #include "f_fail.h" #include "s_destroy.h" #include "s_lcom.h" @@ -121,7 +122,7 @@ uint8_t } else if (next == FALSE && check_equals(*ptr) == TRUE) { - /* TODO: verify global vars, delete if needed, export the thing */ + b_export_with_equals(*ptr, msh); } ptr++; } diff --git a/src/b_export_next.c b/src/b_export_next.c index 44d2b9b..2641f65 100644 --- a/src/b_export_next.c +++ b/src/b_export_next.c @@ -10,3 +10,14 @@ /* */ /* ************************************************************************** */ +#include <libft.h> + +#include "s_struct.h" + +void + b_export_with_equals(const char arg[], + t_msh *msh) +{ + (void)arg; + (void)msh; +} diff --git a/src/b_export_next.h b/src/b_export_next.h index 4a8781b..8df8746 100644 --- a/src/b_export_next.h +++ b/src/b_export_next.h @@ -15,4 +15,6 @@ #include "s_struct.h" +void b_export_with_equals(const char arg[], t_msh *msh); + #endif |