mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: Fixed make file with latest version of cc
This commit is contained in:
4
Makefile
4
Makefile
@ -6,7 +6,7 @@
|
||||
# By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/04/24 10:49:52 by adjoly #+# #+# #
|
||||
# Updated: 2024/04/29 13:29:12 by mmoussou ### ########.fr #
|
||||
# Updated: 2024/05/09 16:05:08 by adjoly ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -32,7 +32,7 @@ LIB = libft/libft.a \
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
@make -sj$(nproc) -C libft
|
||||
@$(CC) $(FLAGS) -lreadline $(OBJS) $(LIB) -o $(NAME)
|
||||
@$(CC) $(FLAGS) $(OBJS) $(LIB) -o $(NAME) -lreadline
|
||||
@echo "[✔] Compiled"
|
||||
|
||||
$(OBJSDIR)%.o: %.c
|
||||
|
268
compile_commands.json
Normal file
268
compile_commands.json
Normal file
@ -0,0 +1,268 @@
|
||||
[
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/prompt/get_prompt.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/prompt/get_prompt.o"
|
||||
],
|
||||
"file": "src/prompt/get_prompt.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/prompt/get_hostname.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/prompt/get_hostname.o"
|
||||
],
|
||||
"file": "src/prompt/get_hostname.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/prompt/get_pwd.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/prompt/get_pwd.o"
|
||||
],
|
||||
"file": "src/prompt/get_pwd.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envnew.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envnew.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envnew.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envlast.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envlast.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envlast.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envdelone.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envdelone.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envdelone.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envsize.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envsize.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envsize.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envadd_back.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envadd_back.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envadd_back.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envadd_front.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envadd_front.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envadd_front.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_list/ft_envclear.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_list/ft_envclear.o"
|
||||
],
|
||||
"file": "src/env/env_list/ft_envclear.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/env/env_cmd.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/env/env_cmd.o"
|
||||
],
|
||||
"file": "src/env/env_cmd.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/main.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/main.o"
|
||||
],
|
||||
"file": "src/main.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/is_str.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/is_str.o"
|
||||
],
|
||||
"file": "src/is_str.c"
|
||||
},
|
||||
{
|
||||
"directory": "/home/adjoly/42/ft_minipowershell",
|
||||
"arguments": [
|
||||
"cc",
|
||||
"-I",
|
||||
"include/",
|
||||
"-I",
|
||||
"libft//include/",
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-g",
|
||||
"src/parsing/split_cmd.c",
|
||||
"-c",
|
||||
"-o",
|
||||
"obj/src/parsing/split_cmd.o"
|
||||
],
|
||||
"file": "src/parsing/split_cmd.c"
|
||||
}
|
||||
]
|
6
src/env/env_cmd.c
vendored
6
src/env/env_cmd.c
vendored
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/06 19:09:50 by mmoussou #+# #+# */
|
||||
/* Updated: 2024/05/06 20:27:45 by mmoussou ### ########.fr */
|
||||
/* Updated: 2024/05/09 15:54:22 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -43,7 +43,7 @@ char **env_get(t_env *env)
|
||||
|
||||
int env_create_first_el(char *env_line, t_env *env)
|
||||
{
|
||||
t_env *new;
|
||||
// t_env *new;
|
||||
char *name;
|
||||
char *content;
|
||||
|
||||
@ -138,7 +138,7 @@ int env_edit(char *name, char *content, t_env *env)
|
||||
|
||||
int env_delete(char *name, t_env *env)
|
||||
{
|
||||
char *new_content;
|
||||
// char *new_content;
|
||||
t_env *tmp;
|
||||
|
||||
while (env && env->next && ft_strcmp(env->next->name, name))
|
||||
|
Reference in New Issue
Block a user