Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .vscode/c_cpp_properties.json

This file was deleted.

2 changes: 0 additions & 2 deletions command/README.md

This file was deleted.

12 changes: 12 additions & 0 deletions command/includes/color.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* color.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mhirabay <mhirabay@student.42tokyo.j +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/14 21:51:35 by mhirabay #+# #+# */
/* Updated: 2022/03/14 21:51:35 by mhirabay ### ########.fr */
/* */
/* ************************************************************************** */


#ifndef COLOR_H
# define COLOR_H
Expand Down
18 changes: 14 additions & 4 deletions command/includes/command.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* command.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mhirabay <mhirabay@student.42tokyo.jp> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/14 21:51:35 by mhirabay #+# #+# */
/* Updated: 2022/03/15 09:50:34 by mhirabay ### ########.fr */
/* */
/* ************************************************************************** */


#ifndef COMMAND_H
# define COMMAND_H
Expand Down Expand Up @@ -53,16 +65,13 @@ char **convert_envlst_to_array(t_exec_attr *ea);
char *create_environ_line(char *key, char *value, bool is_end);

// create_cmd.c
bool is_dollar(char *arg);
char *convert_env_var(t_exec_attr *ea, char *arg);
char *concat_path_and_cmd(char *path, char *command);
void create_cmd_from_arg(int argc, const char **argv, t_exec_attr *ea);
char *find_path(char *cmd_name, t_exec_attr *ea, size_t cmd_i);


// init.c
void init(t_exec_attr **ea);
void init_new(t_exec_attr **ea);

// convert_lst_to_argv.c
char **convert_lst_to_argv(t_list *args);
Expand All @@ -80,9 +89,10 @@ void free_pipe_attr(t_pipe_attr *pa);

// cmd_utils.c
char *get_filename(t_cmd *c, int io);
void exec_error(int cp_errno, char *cmd_path);
bool is_dir(char *cmd_path);
bool *malloc_has_not_permission(size_t size);
bool is_path(char *cmd);
char *create_cmd_path(t_cmd *c, t_exec_attr *ea);

// execve_error.c
void execve_error(int cp_errno, char *cmd_path);
Expand Down
12 changes: 12 additions & 0 deletions command/includes/execute_struct.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* execute_struct.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mhirabay <mhirabay@student.42tokyo.j +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/14 21:51:35 by mhirabay #+# #+# */
/* Updated: 2022/03/14 21:51:35 by mhirabay ### ########.fr */
/* */
/* ************************************************************************** */


#ifndef EXECUTE_STRUCT_H
# define EXECUTE_STRUCT_H
Expand Down
30 changes: 0 additions & 30 deletions command/memo.md

This file was deleted.

49 changes: 0 additions & 49 deletions command/sandbox/chdir_test.c

This file was deleted.

54 changes: 0 additions & 54 deletions command/sandbox/command_judge_test.c

This file was deleted.

Loading