🔨」 fix: Can compile on nixos

This commit is contained in:
2024-05-13 17:33:29 +02:00
parent cd49ddb22c
commit ad14d6b9ce
84 changed files with 17 additions and 6 deletions

8
.direnv/bin/nix-direnv-reload Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)"
_nix_direnv_force_reload=1 direnv exec "$dir" true
direnv reload
# direnv reload updates the mtime of .envrc. Also update the timestamp of the
# profile_rc file to keep track that we actually are up to date.
touch $dir/.direnv/{nix,flake}-profile-*.rc

View File

@ -0,0 +1 @@
/home/adjoly/42/ft_minipowershell/.direnv/flake-profile.46798

View File

@ -12,7 +12,7 @@
NAME = minishell NAME = minishell
CC = cc CC = clang
OBJSDIR = obj/ OBJSDIR = obj/

View File

@ -14,8 +14,8 @@
#ifndef MINISHELL_H #ifndef MINISHELL_H
# define MINISHELL_H # define MINISHELL_H
# include <readline/readline.h>
# include <stdio.h> # include <stdio.h>
# include <readline/readline.h>
# include <stdlib.h> # include <stdlib.h>
# include <stdint.h> # include <stdint.h>
# include "libft.h" # include "libft.h"

View File

@ -6,15 +6,15 @@
# By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ # # By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/01/22 07:21:18 by mmoussou #+# #+# # # Created: 2024/01/22 07:21:18 by mmoussou #+# #+# #
# Updated: 2024/04/30 10:59:10 by mmoussou ### ########.fr # # Updated: 2024/05/13 17:33:16 by adjoly ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
SHELL = bash SHELL = bash
CC = gcc CC = clang
CFLAGS = -Wall -Werror -Wextra CFLAGS = -Wall -Werror -Wextra -pipe -fPIE
INCLUDE = ./include INCLUDE = ./include

BIN
libft/libft.a Normal file

Binary file not shown.

BIN
libft/src/char/ft_isalnum.o Normal file

Binary file not shown.

BIN
libft/src/char/ft_isalpha.o Normal file

Binary file not shown.

BIN
libft/src/char/ft_isascii.o Normal file

Binary file not shown.

BIN
libft/src/char/ft_isdigit.o Normal file

Binary file not shown.

BIN
libft/src/char/ft_isprint.o Normal file

Binary file not shown.

BIN
libft/src/int/ft_abs.o Normal file

Binary file not shown.

BIN
libft/src/int/ft_max.o Normal file

Binary file not shown.

BIN
libft/src/int/ft_min.o Normal file

Binary file not shown.

BIN
libft/src/io/ft_printf.o Normal file

Binary file not shown.

BIN
libft/src/io/ft_printf_fd.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
libft/src/io/ft_putnbr_fd.o Normal file

Binary file not shown.

BIN
libft/src/io/ft_putstr_fd.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
libft/src/mem/ft_bzero.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_calloc.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_free.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_memchr.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_memcmp.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_memcpy.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_memmove.o Normal file

Binary file not shown.

BIN
libft/src/mem/ft_memset.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
libft/src/str/ft_split.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strchr.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strcmp.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strdup.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_striteri.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strjoin.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strlcat.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strlcpy.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strlen.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strmapi.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strncmp.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strnstr.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strrchr.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_strtrim.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_substr.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_tolower.o Normal file

Binary file not shown.

BIN
libft/src/str/ft_toupper.o Normal file

Binary file not shown.

BIN
minishell Executable file

Binary file not shown.

BIN
obj/src/env/env_cmd.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envadd_back.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envadd_front.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envclear.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envdelone.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envlast.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envnew.o vendored Normal file

Binary file not shown.

BIN
obj/src/env/env_list/ft_envsize.o vendored Normal file

Binary file not shown.

BIN
obj/src/is_str.o Normal file

Binary file not shown.

BIN
obj/src/main.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
obj/src/parsing/split_cmd.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
obj/src/prompt/get_prompt.o Normal file

Binary file not shown.

BIN
obj/src/prompt/get_pwd.o Normal file

Binary file not shown.

View File

@ -6,10 +6,11 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */ /* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/05/09 18:05:14 by adjoly ### ########.fr */ /* Updated: 2024/05/13 17:26:21 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include <stdio.h>
#include <readline/readline.h> #include <readline/readline.h>
#include <readline/history.h> #include <readline/history.h>
#include <stdlib.h> #include <stdlib.h>