fix
This commit is contained in:
parent
b98717ae1a
commit
405c1937cd
43
heredoc.c
43
heredoc.c
@ -13,24 +13,57 @@
|
|||||||
#include "libftx/libftx.h"
|
#include "libftx/libftx.h"
|
||||||
#include "minishell.h"
|
#include "minishell.h"
|
||||||
|
|
||||||
int ft_heredoc(char *stop)
|
int *ft_get_heredoc()
|
||||||
|
{
|
||||||
|
static int heredoc;
|
||||||
|
|
||||||
|
return (&heredoc);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ft_heredoc_creator(char *stop)
|
||||||
{
|
{
|
||||||
int fds[2];
|
int fds[2];
|
||||||
char *line;
|
char *line;
|
||||||
|
|
||||||
pipe(fds);
|
if (pipe(fds) == -1)
|
||||||
|
return (-1);
|
||||||
line = readline("> ");
|
line = readline("> ");
|
||||||
while (line != NULL)
|
while (line != NULL)
|
||||||
{
|
{
|
||||||
if (ft_strcmp(line, stop) == 0)
|
if (ft_strcmp(line, stop) == 0)
|
||||||
{
|
|
||||||
free(line);
|
|
||||||
break ;
|
break ;
|
||||||
}
|
|
||||||
ft_putendl_fd(line, fds[1]);
|
ft_putendl_fd(line, fds[1]);
|
||||||
free(line);
|
free(line);
|
||||||
line = readline("> ");
|
line = readline("> ");
|
||||||
|
if (line == NULL)
|
||||||
|
{
|
||||||
|
close(fds[0]);
|
||||||
|
close(fds[1]);
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
close(fds[1]);
|
close(fds[1]);
|
||||||
return (fds[0]);
|
return (fds[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ft_heredoc(char *stop)
|
||||||
|
{
|
||||||
|
int pid;
|
||||||
|
int fd;
|
||||||
|
|
||||||
|
pid = fork();
|
||||||
|
if (pid == -1)
|
||||||
|
return (-1);
|
||||||
|
if (pid == 0)
|
||||||
|
{
|
||||||
|
fd = ft_heredoc_creator(stop);
|
||||||
|
exit (fd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*ft_get_heredoc() = pid;
|
||||||
|
waitpid(pid, &fd, 0);
|
||||||
|
}
|
||||||
|
*ft_get_heredoc() = 0;
|
||||||
|
return (fd);
|
||||||
|
}
|
||||||
|
10
main.c
10
main.c
@ -10,7 +10,9 @@
|
|||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
#include "libftx/libftx.h"
|
||||||
#include "minishell.h"
|
#include "minishell.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
static char *ft_get_user_input(t_list **env)
|
static char *ft_get_user_input(t_list **env)
|
||||||
{
|
{
|
||||||
@ -102,11 +104,19 @@ int main(int ac, char **av, char **env)
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
void ft_ctrlc(int num)
|
void ft_ctrlc(int num)
|
||||||
|
{
|
||||||
|
if (*ft_get_heredoc())
|
||||||
|
{
|
||||||
|
kill(*ft_get_heredoc(), SIGQUIT);
|
||||||
|
ft_putchar_fd('\n', 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
rl_on_new_line();
|
rl_on_new_line();
|
||||||
ft_putchar_fd('\n', 1);
|
ft_putchar_fd('\n', 1);
|
||||||
rl_redisplay();
|
rl_redisplay();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int main(int ac, char **av, char **env)
|
int main(int ac, char **av, char **env)
|
||||||
{
|
{
|
||||||
|
256
tags
Normal file
256
tags
Normal file
@ -0,0 +1,256 @@
|
|||||||
|
!_TAG_EXTRA_DESCRIPTION anonymous /Include tags for non-named objects like lambda/
|
||||||
|
!_TAG_EXTRA_DESCRIPTION fileScope /Include tags of file scope/
|
||||||
|
!_TAG_EXTRA_DESCRIPTION pseudo /Include pseudo tags/
|
||||||
|
!_TAG_EXTRA_DESCRIPTION subparser /Include tags generated by subparsers/
|
||||||
|
!_TAG_FIELD_DESCRIPTION epoch /the last modified time of the input file (only for F\/file kind tag)/
|
||||||
|
!_TAG_FIELD_DESCRIPTION file /File-restricted scoping/
|
||||||
|
!_TAG_FIELD_DESCRIPTION input /input file/
|
||||||
|
!_TAG_FIELD_DESCRIPTION name /tag name/
|
||||||
|
!_TAG_FIELD_DESCRIPTION pattern /pattern/
|
||||||
|
!_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/
|
||||||
|
!_TAG_FIELD_DESCRIPTION!C++ name /aliased names/
|
||||||
|
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
||||||
|
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C d,macro /macro definitions/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C e,enumerator /enumerators (values inside an enumeration)/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C f,function /function definitions/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C g,enum /enumeration names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C h,header /included header files/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C m,member /struct, and union members/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C s,struct /structure names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C t,typedef /typedefs/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C u,union /union names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C v,variable /variable definitions/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ c,class /classes/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ d,macro /macro definitions/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ e,enumerator /enumerators (values inside an enumeration)/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ f,function /function definitions/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ g,enum /enumeration names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ h,header /included header files/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ m,member /class, struct, and union members/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ n,namespace /namespaces/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ s,struct /structure names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ t,typedef /typedefs/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ u,union /union names/
|
||||||
|
!_TAG_KIND_DESCRIPTION!C++ v,variable /variable definitions/
|
||||||
|
!_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/
|
||||||
|
!_TAG_OUTPUT_FILESEP slash /slash or backslash/
|
||||||
|
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/
|
||||||
|
!_TAG_OUTPUT_VERSION 0.0 /current.age/
|
||||||
|
!_TAG_PARSER_VERSION!C 0.0 /current.age/
|
||||||
|
!_TAG_PARSER_VERSION!C++ 0.0 /current.age/
|
||||||
|
!_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/
|
||||||
|
!_TAG_PROC_CWD /nfs/homes/cchauvet/42/minishell/ //
|
||||||
|
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
|
||||||
|
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
|
||||||
|
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
|
||||||
|
!_TAG_PROGRAM_VERSION 6.0.0 //
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C!header local /local header/
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C!header system /system header/
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C!macro undef /undefined/
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C++!header local /local header/
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C++!header system /system header/
|
||||||
|
!_TAG_ROLE_DESCRIPTION!C++!macro undef /undefined/
|
||||||
|
BUFFER_SIZE libftx/gnl/get_next_line.h /^# define BUFFER_SIZE /;" d
|
||||||
|
DEBUG minishell.h /^# define DEBUG /;" d
|
||||||
|
EXTRA_H libftx/extra/extra.h /^# define EXTRA_H$/;" d
|
||||||
|
FT_PRINTF_H libftx/printf/ft_printf.h /^# define FT_PRINTF_H$/;" d
|
||||||
|
GET_NEXT_LINE_H libftx/gnl/get_next_line.h /^# define GET_NEXT_LINE_H$/;" d
|
||||||
|
LIBFTX_H libftx/libftx.h /^# define LIBFTX_H$/;" d
|
||||||
|
LIBFT_H libftx/libft/libft.h /^# define LIBFT_H$/;" d
|
||||||
|
MINISHELL_H minishell.h /^# define MINISHELL_H$/;" d
|
||||||
|
UTILS_H utils/utils.h /^# define UTILS_H$/;" d
|
||||||
|
add_sort env.c /^void add_sort(t_list **head, t_env *var)$/;" f typeref:typename:void
|
||||||
|
args minishell.h /^ char **args;$/;" m struct:s_cmd typeref:typename:char **
|
||||||
|
check_argument builtins/echo.c /^int check_argument(char *str, int *check)$/;" f typeref:typename:int
|
||||||
|
content libftx/libft/libft.h /^ void *content;$/;" m struct:s_list typeref:typename:void *
|
||||||
|
content libftx/libftx.h /^ void *content;$/;" m struct:s_list typeref:typename:void *
|
||||||
|
create_value_by_key env.c /^int create_value_by_key(char *key, char *value, t_list **head)$/;" f typeref:typename:int
|
||||||
|
create_value_by_key_dup env3.c /^int create_value_by_key_dup(char *key, char *value, t_list **env)$/;" f typeref:typename:int
|
||||||
|
delete_by_key env3.c /^int delete_by_key(char *key, t_list **head)$/;" f typeref:typename:int
|
||||||
|
echo builtins/echo.c /^int echo(int fd, char **strs)$/;" f typeref:typename:int
|
||||||
|
env minishell.h /^ t_list **env;$/;" m struct:s_data typeref:typename:t_list **
|
||||||
|
env_del env2.c /^void env_del(void *ptr)$/;" f typeref:typename:void
|
||||||
|
env_to_strs env2.c /^char **env_to_strs(t_list **head)$/;" f typeref:typename:char **
|
||||||
|
executable minishell.h /^ char *executable;$/;" m struct:s_cmd typeref:typename:char *
|
||||||
|
exit_code minishell.h /^ int exit_code;$/;" m struct:s_data typeref:typename:int
|
||||||
|
fd_in minishell.h /^ int fd_in;$/;" m struct:s_cmd typeref:typename:int
|
||||||
|
fd_out minishell.h /^ int fd_out;$/;" m struct:s_cmd typeref:typename:int
|
||||||
|
ft_atoi libftx/libft/ft_atoi.c /^int ft_atoi(const char *nptr)$/;" f typeref:typename:int
|
||||||
|
ft_base_size libftx/extra/ft_ultoa_base.c /^static size_t ft_base_size(char *base)$/;" f typeref:typename:size_t file:
|
||||||
|
ft_base_size libftx/printf/ft_dprintul_base.c /^static size_t ft_base_size(char *base)$/;" f typeref:typename:size_t file:
|
||||||
|
ft_bzero libftx/libft/ft_bzero.c /^void ft_bzero(void *s, size_t n)$/;" f typeref:typename:void
|
||||||
|
ft_calloc libftx/libft/ft_calloc.c /^void *ft_calloc(size_t nmemb, size_t size)$/;" f typeref:typename:void *
|
||||||
|
ft_cancel libftx/libft/ft_split.c /^void *ft_cancel(void **tab, size_t len)$/;" f typeref:typename:void *
|
||||||
|
ft_cmd_filler cmd.c /^int ft_cmd_filler(t_list *element, char **args, t_list **env)$/;" f typeref:typename:int
|
||||||
|
ft_cmddel cmd.c /^void ft_cmddel(void *ptr)$/;" f typeref:typename:void
|
||||||
|
ft_cmds_executor execution.c /^int ft_cmds_executor(t_data *data, t_list **cmds)$/;" f typeref:typename:int
|
||||||
|
ft_cmds_fill cmds.c /^static int ft_cmds_fill(t_list **cmds, t_list **env, const char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_cmds_init cmds.c /^static int ft_cmds_init(t_list **cmds, size_t len)$/;" f typeref:typename:int file:
|
||||||
|
ft_cmds_prep cmds.c /^static int ft_cmds_prep(t_list **cmds, const char *line, int infile, int outfile)$/;" f typeref:typename:int file:
|
||||||
|
ft_contain_only libftx/extra/ft_contain_only.c /^int ft_contain_only(char *str, char c)$/;" f typeref:typename:int
|
||||||
|
ft_contain_only_str libftx/extra/ft_contain_only.c /^int ft_contain_only_str(char *str, char *to_find)$/;" f typeref:typename:int
|
||||||
|
ft_ctrlc main.c /^void ft_ctrlc(int num)$/;" f typeref:typename:void
|
||||||
|
ft_dprint_upperx libftx/printf/ft_dprintX.c /^int ft_dprint_upperx(int fd, unsigned int n)$/;" f typeref:typename:int
|
||||||
|
ft_dprintarg libftx/printf/ft_dprintarg.c /^int ft_dprintarg(int fd, int arg, va_list args)$/;" f typeref:typename:int
|
||||||
|
ft_dprintf libftx/printf/ft_printf.c /^int ft_dprintf(int fd, const char *format, ...)$/;" f typeref:typename:int
|
||||||
|
ft_dprintflag libftx/printf/ft_dprintflag.c /^int ft_dprintflag(int fd, const char *flag, va_list va)$/;" f typeref:typename:int
|
||||||
|
ft_dprintl_base libftx/printf/ft_dprintl_base.c /^int ft_dprintl_base(int fd, long long int n, char *base)$/;" f typeref:typename:int
|
||||||
|
ft_dprintptr libftx/printf/ft_dprintptr.c /^int ft_dprintptr(int fd, void *ptr)$/;" f typeref:typename:int
|
||||||
|
ft_dprintseg libftx/printf/ft_vdprintf.c /^static int ft_dprintseg(int fd, const char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_dprintstrtab libftx/printf/ft_dprintstrtab.c /^int ft_dprintstrtab(int fd, char **tab)$/;" f typeref:typename:int
|
||||||
|
ft_dprintul libftx/printf/ft_dprintul.c /^int ft_dprintul(int fd, unsigned long long n)$/;" f typeref:typename:int
|
||||||
|
ft_dprintul_base libftx/printf/ft_dprintul_base.c /^int ft_dprintul_base(int fd, unsigned long long n, char *base)$/;" f typeref:typename:int
|
||||||
|
ft_dprintx libftx/printf/ft_dprintx.c /^int ft_dprintx(int fd, unsigned int n)$/;" f typeref:typename:int
|
||||||
|
ft_empty_verif syntatics.c /^int ft_empty_verif(const char *str)$/;" f typeref:typename:int
|
||||||
|
ft_env_filler env_fill.c /^char *ft_env_filler(t_list **env, const char *str)$/;" f typeref:typename:char *
|
||||||
|
ft_eprintf libftx/printf/ft_eprintf.c /^int ft_eprintf(const char *format, ...)$/;" f typeref:typename:int
|
||||||
|
ft_excutor execution.c /^static int ft_excutor(t_cmd *cmd, t_list **env)$/;" f typeref:typename:int file:
|
||||||
|
ft_file_is_appendable file.c /^int ft_file_is_appendable(const char *path)$/;" f typeref:typename:int
|
||||||
|
ft_file_is_executable file.c /^int ft_file_is_executable(const char *path)$/;" f typeref:typename:int
|
||||||
|
ft_file_is_readable file.c /^int ft_file_is_readable(const char *path)$/;" f typeref:typename:int
|
||||||
|
ft_file_is_writable file.c /^int ft_file_is_writable(const char *path)$/;" f typeref:typename:int
|
||||||
|
ft_freer_tab libftx/extra/ft_freer.c /^void ft_freer_tab(char **tab)$/;" f typeref:typename:void
|
||||||
|
ft_freer_tab_ultimate libftx/extra/ft_freer.c /^void ft_freer_tab_ultimate(size_t len, ...)$/;" f typeref:typename:void
|
||||||
|
ft_freer_ultimate libftx/extra/ft_freer.c /^void ft_freer_ultimate(size_t len, ...)$/;" f typeref:typename:void
|
||||||
|
ft_get_executable_path execution.c /^static char *ft_get_executable_path(char *executable_name, t_list **env)$/;" f typeref:typename:char * file:
|
||||||
|
ft_get_heredoc heredoc.c /^int *ft_get_heredoc()$/;" f typeref:typename:int *
|
||||||
|
ft_get_infile infile.c /^static int ft_get_infile(const char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_get_key env_fill.c /^static char *ft_get_key(char *str)$/;" f typeref:typename:char * file:
|
||||||
|
ft_get_outfile outfile.c /^static int ft_get_outfile(const char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_get_user_input main.c /^static char *ft_get_user_input(t_list **env)$/;" f typeref:typename:char * file:
|
||||||
|
ft_get_value env_fill.c /^static char *ft_get_value(t_list **env, char *key)$/;" f typeref:typename:char * file:
|
||||||
|
ft_getextra libftx/gnl/get_next_line.c /^char *ft_getextra(char *str)$/;" f typeref:typename:char *
|
||||||
|
ft_getline libftx/gnl/get_next_line.c /^char *ft_getline(int fd)$/;" f typeref:typename:char *
|
||||||
|
ft_getreturn libftx/gnl/get_next_line.c /^char *ft_getreturn(char *str)$/;" f typeref:typename:char *
|
||||||
|
ft_getstash libftx/gnl/get_next_line.c /^char *ft_getstash(int fd)$/;" f typeref:typename:char *
|
||||||
|
ft_heredoc heredoc.c /^int ft_heredoc(char *stop)$/;" f typeref:typename:int
|
||||||
|
ft_heredoc_creator heredoc.c /^int ft_heredoc_creator(char *stop)$/;" f typeref:typename:int
|
||||||
|
ft_infile infile.c /^int ft_infile(char *line)$/;" f typeref:typename:int
|
||||||
|
ft_infile_is_valid infile.c /^static int ft_infile_is_valid(const char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_is_in libftx/extra/ft_is_in.c /^int ft_is_in(char *str, char c)$/;" f typeref:typename:int
|
||||||
|
ft_is_in libftx/libft/ft_strtrim.c /^static int ft_is_in(const char c, const char *charset)$/;" f typeref:typename:int file:
|
||||||
|
ft_is_in_quote utils/ft_is_in_quote.c /^int ft_is_in_quote(const char *str, size_t n)$/;" f typeref:typename:int
|
||||||
|
ft_isalnum libftx/libft/ft_isalnum.c /^int ft_isalnum(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isalpha libftx/libft/ft_isalpha.c /^int ft_isalpha(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isarg libftx/printf/ft_isarg.c /^int ft_isarg(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isascii libftx/libft/ft_isascii.c /^int ft_isascii(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isdigit libftx/libft/ft_isdigit.c /^int ft_isdigit(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isdigit libftx/printf/ft_isdigit.c /^int ft_isdigit(int c)$/;" f typeref:typename:int
|
||||||
|
ft_isdup libftx/extra/ft_ultoa_base.c /^static int ft_isdup(char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_isdup libftx/printf/ft_dprintul_base.c /^static int ft_isdup(char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_isprint libftx/libft/ft_isprint.c /^int ft_isprint(int c)$/;" f typeref:typename:int
|
||||||
|
ft_itoa libftx/libft/ft_itoa.c /^char *ft_itoa(int n)$/;" f typeref:typename:char *
|
||||||
|
ft_lstadd_back libftx/libft/ft_lstadd_back.c /^void ft_lstadd_back(t_list **lst, t_list *new)$/;" f typeref:typename:void
|
||||||
|
ft_lstadd_front libftx/libft/ft_lstadd_front.c /^void ft_lstadd_front(t_list **lst, t_list *new)$/;" f typeref:typename:void
|
||||||
|
ft_lstclear libftx/libft/ft_lstclear.c /^void ft_lstclear(t_list **lst, void (*del)(void *))$/;" f typeref:typename:void
|
||||||
|
ft_lstdelone libftx/libft/ft_lstdelone.c /^void ft_lstdelone(t_list *lst, void (*del)(void *))$/;" f typeref:typename:void
|
||||||
|
ft_lstiter libftx/libft/ft_lstiter.c /^void ft_lstiter(t_list *lst, void (*f)(void *))$/;" f typeref:typename:void
|
||||||
|
ft_lstlast libftx/libft/ft_lstlast.c /^t_list *ft_lstlast(t_list *lst)$/;" f typeref:typename:t_list *
|
||||||
|
ft_lstmap libftx/libft/ft_lstmap.c /^t_list *ft_lstmap(t_list *lst, void *(*f)(void *), void (*del)(void *))$/;" f typeref:typename:t_list *
|
||||||
|
ft_lstnew libftx/libft/ft_lstnew.c /^t_list *ft_lstnew(void *content)$/;" f typeref:typename:t_list *
|
||||||
|
ft_lstsize libftx/libft/ft_lstsize.c /^int ft_lstsize(t_list *lst)$/;" f typeref:typename:int
|
||||||
|
ft_memchr libftx/libft/ft_memchr.c /^void *ft_memchr(const void *s, int c, size_t n)$/;" f typeref:typename:void *
|
||||||
|
ft_memcmp libftx/libft/ft_memcmp.c /^int ft_memcmp(const void *s1, const void *s2, size_t n)$/;" f typeref:typename:int
|
||||||
|
ft_memcpy libftx/libft/ft_memcpy.c /^void *ft_memcpy(void *dest, const void *src, size_t n)$/;" f typeref:typename:void *
|
||||||
|
ft_memmove libftx/libft/ft_memmove.c /^void *ft_memmove(void *dest, const void *src, size_t n)$/;" f typeref:typename:void *
|
||||||
|
ft_memset libftx/libft/ft_memset.c /^void *ft_memset(void *s, int c, size_t n)$/;" f typeref:typename:void *
|
||||||
|
ft_minishell main.c /^static int ft_minishell(t_data *data, char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_nb_digit libftx/libft/ft_itoa.c /^static int ft_nb_digit(int n)$/;" f typeref:typename:int file:
|
||||||
|
ft_normalizer spacer.c /^char *ft_normalizer(char *str)$/;" f typeref:typename:char *
|
||||||
|
ft_outfile outfile.c /^int ft_outfile(char *line)$/;" f typeref:typename:int
|
||||||
|
ft_outfile_is_valid outfile.c /^static int ft_outfile_is_valid(const char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_own_cmd execution.c /^static int ft_own_cmd(t_list **env, t_cmd *cmd)$/;" f typeref:typename:int file:
|
||||||
|
ft_parse_cmds cmds.c /^t_list **ft_parse_cmds(char *line, t_list **env, int infile, int outfile)$/;" f typeref:typename:t_list **
|
||||||
|
ft_pipe_is_alone syntatics.c /^static int ft_pipe_is_alone(const char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_printf libftx/printf/ft_printf.c /^int ft_printf(const char *format, ...)$/;" f typeref:typename:int
|
||||||
|
ft_printn utils/ft_printn.c /^void ft_printn(const char *str, size_t n)$/;" f typeref:typename:void
|
||||||
|
ft_putchar_fd libftx/libft/ft_putchar_fd.c /^void ft_putchar_fd(char c, int fd)$/;" f typeref:typename:void
|
||||||
|
ft_putchar_fd_p libftx/printf/ft_putchar_fd.c /^int ft_putchar_fd_p(int fd, char c)$/;" f typeref:typename:int
|
||||||
|
ft_putendl_fd libftx/libft/ft_putendl_fd.c /^void ft_putendl_fd(char *s, int fd)$/;" f typeref:typename:void
|
||||||
|
ft_putnbr_fd libftx/libft/ft_putnbr_fd.c /^void ft_putnbr_fd(int n, int fd)$/;" f typeref:typename:void
|
||||||
|
ft_putstr_fd libftx/libft/ft_putstr_fd.c /^void ft_putstr_fd(char *s, int fd)$/;" f typeref:typename:void
|
||||||
|
ft_putstr_fd_p libftx/printf/ft_putstr_fd.c /^int ft_putstr_fd_p(int fd, char *str)$/;" f typeref:typename:int
|
||||||
|
ft_quote_remover utils/ft_quote_remover.c /^char *ft_quote_remover(char *str)$/;" f typeref:typename:char *
|
||||||
|
ft_quote_verif syntatics.c /^static int ft_quote_verif(const char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_random_generator libftx/extra/ft_random_generator.c /^size_t ft_random_generator(size_t start, size_t stop)$/;" f typeref:typename:size_t
|
||||||
|
ft_remove_infile infile.c /^static int ft_remove_infile(char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_remove_outfile outfile.c /^static int ft_remove_outfile(char *line)$/;" f typeref:typename:int file:
|
||||||
|
ft_seglen libftx/libft/ft_split.c /^static size_t ft_seglen(const char *s, char c)$/;" f typeref:typename:size_t file:
|
||||||
|
ft_seglen_quoted utils/ft_split_quoted.c /^size_t ft_seglen_quoted(const char *str, char c)$/;" f typeref:typename:size_t
|
||||||
|
ft_segsplitter libftx/libft/ft_split.c /^static char **ft_segsplitter(char **tab, size_t len, const char *s, char c)$/;" f typeref:typename:char ** file:
|
||||||
|
ft_segsplitter utils/ft_split_quoted.c /^static char **ft_segsplitter(char **tab, size_t len, const char *s, char c)$/;" f typeref:typename:char ** file:
|
||||||
|
ft_skipflag libftx/printf/ft_skipflag.c /^int ft_skipflag(const char *str)$/;" f typeref:typename:int
|
||||||
|
ft_space_simplifier spacer.c /^static void ft_space_simplifier(char *str)$/;" f typeref:typename:void file:
|
||||||
|
ft_spacer_after spacer.c /^static char *ft_spacer_after(const char *str)$/;" f typeref:typename:char * file:
|
||||||
|
ft_spacer_before spacer.c /^static char *ft_spacer_before(const char *str)$/;" f typeref:typename:char * file:
|
||||||
|
ft_special_char_dub syntatics.c /^static int ft_special_char_dub(const char *str)$/;" f typeref:typename:int file:
|
||||||
|
ft_split libftx/libft/ft_split.c /^char **ft_split(const char *s, char c)$/;" f typeref:typename:char **
|
||||||
|
ft_split_quoted utils/ft_split_quoted.c /^char **ft_split_quoted(const char *s, char c)$/;" f typeref:typename:char **
|
||||||
|
ft_str_is_empty utils/ft_str_is_empty.c /^int ft_str_is_empty(const char *str)$/;" f typeref:typename:int
|
||||||
|
ft_str_size libftx/extra/ft_ultoa_base.c /^static size_t ft_str_size(unsigned long long n, size_t base_size)$/;" f typeref:typename:size_t file:
|
||||||
|
ft_str_size libftx/printf/ft_dprintul_base.c /^static size_t ft_str_size(unsigned long long n, size_t base_size)$/;" f typeref:typename:size_t file:
|
||||||
|
ft_strchr libftx/libft/ft_strchr.c /^char *ft_strchr(const char *s, int c)$/;" f typeref:typename:char *
|
||||||
|
ft_strchri libftx/extra/ft_strchri.c /^ssize_t ft_strchri(char *str, char c)$/;" f typeref:typename:ssize_t
|
||||||
|
ft_strcmp libftx/extra/ft_strcmp.c /^int ft_strcmp(char *s1, char *s2)$/;" f typeref:typename:int
|
||||||
|
ft_strdup libftx/libft/ft_strdup.c /^char *ft_strdup(const char *s)$/;" f typeref:typename:char *
|
||||||
|
ft_strfjoin libftx/extra/ft_strfjoin.c /^char *ft_strfjoin(char *s1, char *s2)$/;" f typeref:typename:char *
|
||||||
|
ft_strgen libftx/extra/ft_strgen.c /^char *ft_strgen(char c, size_t len)$/;" f typeref:typename:char *
|
||||||
|
ft_striteri libftx/libft/ft_striteri.c /^void ft_striteri(char *s, void (*f)(unsigned int, char *))$/;" f typeref:typename:void
|
||||||
|
ft_strjoin libftx/libft/ft_strjoin.c /^char *ft_strjoin(const char *s1, const char *s2)$/;" f typeref:typename:char *
|
||||||
|
ft_strlcat libftx/libft/ft_strlcat.c /^size_t ft_strlcat(char *dest, const char *src, size_t size)$/;" f typeref:typename:size_t
|
||||||
|
ft_strlcpy libftx/libft/ft_strlcpy.c /^size_t ft_strlcpy(char *dst, const char *src, size_t size)$/;" f typeref:typename:size_t
|
||||||
|
ft_strlen libftx/libft/ft_strlen.c /^size_t ft_strlen(const char *s)$/;" f typeref:typename:size_t
|
||||||
|
ft_strlen libftx/printf/ft_strlen.c /^size_t ft_strlen(const char *s)$/;" f typeref:typename:size_t
|
||||||
|
ft_strmapi libftx/libft/ft_strmapi.c /^char *ft_strmapi(char const *s, char (*f)(unsigned int, char))$/;" f typeref:typename:char *
|
||||||
|
ft_strmerger libftx/extra/ft_strmerger.c /^char *ft_strmerger(size_t arg_len, ...)$/;" f typeref:typename:char *
|
||||||
|
ft_strnchr utils/ft_strnchr.c /^ssize_t ft_strnchr(const char *str, char c)$/;" f typeref:typename:ssize_t
|
||||||
|
ft_strncmp libftx/libft/ft_strncmp.c /^int ft_strncmp(const char *s1, const char *s2, size_t n)$/;" f typeref:typename:int
|
||||||
|
ft_strncpy utils/ft_strncpy.c /^size_t ft_strncpy(char *dst, const char *src, size_t n)$/;" f typeref:typename:size_t
|
||||||
|
ft_strndup libftx/extra/ft_strndup.c /^char *ft_strndup(const char *src, size_t n)$/;" f typeref:typename:char *
|
||||||
|
ft_strnstr libftx/libft/ft_strnstr.c /^char *ft_strnstr(const char *big, const char *little, size_t len)$/;" f typeref:typename:char *
|
||||||
|
ft_strrchr libftx/libft/ft_strrchr.c /^char *ft_strrchr(const char *s, int c)$/;" f typeref:typename:char *
|
||||||
|
ft_strreplace utils/ft_strreplace.c /^char *ft_strreplace(const char *str, const char *fill,$/;" f typeref:typename:char *
|
||||||
|
ft_strshift utils/ft_strshift.c /^void ft_strshift(char *str, int shift)$/;" f typeref:typename:void
|
||||||
|
ft_strtrim libftx/libft/ft_strtrim.c /^char *ft_strtrim(const char *s1, const char *set)$/;" f typeref:typename:char *
|
||||||
|
ft_substr libftx/libft/ft_substr.c /^char *ft_substr(char const *s, unsigned int start, size_t len)$/;" f typeref:typename:char *
|
||||||
|
ft_swap libftx/extra/ft_swap.c /^void ft_swap(void *a, void *b)$/;" f typeref:typename:void
|
||||||
|
ft_swap_char libftx/extra/ft_swap.c /^void ft_swap_char(char *a, char *b)$/;" f typeref:typename:void
|
||||||
|
ft_swap_int libftx/extra/ft_swap.c /^void ft_swap_int(int *a, int *b)$/;" f typeref:typename:void
|
||||||
|
ft_syntatic_verif syntatics.c /^int ft_syntatic_verif(const char *str)$/;" f typeref:typename:int
|
||||||
|
ft_tabrealloc libftx/extra/ft_tabrealloc.c /^char **ft_tabrealloc(char **tab, size_t current_size, size_t new_size)$/;" f typeref:typename:char **
|
||||||
|
ft_tolower libftx/libft/ft_tolower.c /^int ft_tolower(int c)$/;" f typeref:typename:int
|
||||||
|
ft_toupper libftx/libft/ft_toupper.c /^int ft_toupper(int c)$/;" f typeref:typename:int
|
||||||
|
ft_ultoa_base libftx/extra/ft_ultoa_base.c /^char *ft_ultoa_base(unsigned long long n, char *base)$/;" f typeref:typename:char *
|
||||||
|
ft_vdprintf libftx/printf/ft_vdprintf.c /^int ft_vdprintf(int fd, const char *format, va_list va)$/;" f typeref:typename:int
|
||||||
|
get_index env2.c /^int get_index(char *s, char c)$/;" f typeref:typename:int
|
||||||
|
get_key env3.c /^char *get_key(char *str)$/;" f typeref:typename:char *
|
||||||
|
get_next_line libftx/gnl/get_next_line.c /^char *get_next_line(int fd)$/;" f typeref:typename:char *
|
||||||
|
get_pwd builtins/pwd.c /^char *get_pwd(int fd)$/;" f typeref:typename:char *
|
||||||
|
get_value env3.c /^char *get_value(char *str)$/;" f typeref:typename:char *
|
||||||
|
get_value_by_key env.c /^char *get_value_by_key(char *key, t_list **head)$/;" f typeref:typename:char *
|
||||||
|
init_env env.c /^t_list **init_env(char **env)$/;" f typeref:typename:t_list **
|
||||||
|
is_space builtins/echo.c /^int is_space(char c)$/;" f typeref:typename:int
|
||||||
|
key minishell.h /^ void *key;$/;" m struct:s_env typeref:typename:void *
|
||||||
|
main main.c /^int main(int ac, char **av, char **env)$/;" f typeref:typename:int
|
||||||
|
move_folder builtins/cd.c /^int move_folder(char *path, int fd)$/;" f typeref:typename:int
|
||||||
|
next libftx/libft/libft.h /^ struct s_list *next;$/;" m struct:s_list typeref:struct:s_list *
|
||||||
|
next libftx/libftx.h /^ struct s_list *next;$/;" m struct:s_list typeref:struct:s_list *
|
||||||
|
print_env builtins/env.c /^int print_env(t_list **head, int fd)$/;" f typeref:typename:int
|
||||||
|
print_export builtins/export.c /^int print_export(t_list **head, int fd)$/;" f typeref:typename:int
|
||||||
|
pwd builtins/pwd.c /^int pwd(int fd)$/;" f typeref:typename:int
|
||||||
|
s_cmd minishell.h /^typedef struct s_cmd$/;" s
|
||||||
|
s_data minishell.h /^typedef struct s_data$/;" s
|
||||||
|
s_env minishell.h /^typedef struct s_env$/;" s
|
||||||
|
s_list libftx/libft/libft.h /^typedef struct s_list$/;" s
|
||||||
|
s_list libftx/libftx.h /^typedef struct s_list$/;" s
|
||||||
|
set_value_by_key env.c /^int set_value_by_key(char *key, char *value, t_list **head)$/;" f typeref:typename:int
|
||||||
|
swap_env env2.c /^void swap_env(void **a, void **b)$/;" f typeref:typename:void
|
||||||
|
swap_env_3 env2.c /^void swap_env_3(void **a, void **b, void **c)$/;" f typeref:typename:void
|
||||||
|
t_cmd minishell.h /^} t_cmd;$/;" t typeref:struct:s_cmd
|
||||||
|
t_data minishell.h /^} t_data;$/;" t typeref:struct:s_data
|
||||||
|
t_env minishell.h /^} t_env;$/;" t typeref:struct:s_env
|
||||||
|
t_list libftx/libft/libft.h /^} t_list;$/;" t typeref:struct:s_list
|
||||||
|
t_list libftx/libftx.h /^} t_list;$/;" t typeref:struct:s_list
|
||||||
|
unset builtins/unset.c /^int unset(t_list **env, char **args, int fd)$/;" f typeref:typename:int
|
||||||
|
value minishell.h /^ void *value;$/;" m struct:s_env typeref:typename:void *
|
Loading…
Reference in New Issue
Block a user