maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
#include "execute.h"
#include "shell.h"
#include "pipe.h"
#include "signals.h"
#include "exit_status.h"
#include "builtins.h"
Go to the source code of this file.
Functions | |
void | main_loop (t_ms_data *data, t_loop_data *loop_data) |
int | main (int argc, char **argv, char **envp) |
void | process_command (t_ms_data *data, t_loop_data *loop_data, t_token *tokens_head) |
int main | ( | int | argc, |
char ** | argv, | ||
char ** | envp | ||
) |
Definition at line 71 of file main.c.
References clear_history_file(), free_ms_data(), init_ms_data(), initialise(), main_loop(), and print_maxishell().
void main_loop | ( | t_ms_data * | data, |
t_loop_data * | loop_data | ||
) |
Definition at line 43 of file main.c.
References s_ms_data::args, builtin_exit(), clear_history_file(), ft_split(), ft_strncmp(), s_loop_data::input, input_error_checks(), make_history(), parse_tokens(), process_command(), set_signals_interactive(), set_signals_noninteractive(), tokenise(), s_loop_data::tokens, s_loop_data::tree, trim_input(), and s_loop_data::trimmed_input.
Referenced by main().
void process_command | ( | t_ms_data * | data, |
t_loop_data * | loop_data, | ||
t_token * | tokens_head | ||
) |
Definition at line 24 of file main.c.
References execute_ast(), s_ms_data::exit_status, handle_io_fd(), loop_cleanup(), set_shell_var_handler(), s_loop_data::tree, and WAIT_NEXT_COMMAND.
Referenced by main_loop().