Commit bc17aeb3 authored by komask's avatar komask
Browse files

static functions

parent baaef09c
......@@ -63,12 +63,10 @@ int parsing_error(int err_code, t_xe *xe);
int check_syntax(char *line);
/*
** main functions
** main function
*/
t_command *parse_one_command(t_xe *xe);
int parse_input(char **line, char **env, int stat_loc,
t_command *command);
/*
** parsing states
......
......@@ -9,9 +9,6 @@ wait and waitpid errors
masaki:
a la fin avec rgrep/vimgrep:
erreurs de ft_put* a terminer
gestion d'erreurs des fonctions autorisees une a une
static functions
......
......@@ -6,13 +6,13 @@
/* By: mvidal-a <mvidal-a@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/10 14:40:20 by mvidal-a #+# #+# */
/* Updated: 2021/02/10 14:40:46 by mvidal-a ### ########.fr */
/* Updated: 2021/02/11 12:22:37 by mvidal-a ### ########.fr */
/* */
/* ************************************************************************** */
#include "builtins.h"
int cd_to(char *newpath, t_xe *xe)
static int cd_to(char *newpath, t_xe *xe)
{
char *oldpwd;
char *full_newpath;
......@@ -40,7 +40,7 @@ int cd_to(char *newpath, t_xe *xe)
return (SUCCESS);
}
int ft_cd(char **args, t_xe *xe)
int ft_cd(char **args, t_xe *xe)
{
int ret;
char *newpath;
......
......@@ -6,13 +6,13 @@
/* By: mvidal-a <mvidal-a@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/01 11:27:03 by mvidal-a #+# #+# */
/* Updated: 2021/02/01 13:09:56 by mvidal-a ### ########.fr */
/* Updated: 2021/02/11 12:23:26 by mvidal-a ### ########.fr */
/* */
/* ************************************************************************** */
#include "builtins.h"
t_byte check_arg_for_options(char *arg, char *op_chars)
static t_byte check_arg_for_options(char *arg, char *op_chars)
{
size_t i;
ssize_t j;
......@@ -35,7 +35,7 @@ t_byte check_arg_for_options(char *arg, char *op_chars)
return (options);
}
t_byte shift_options(char ***args, char *op_chars)
t_byte shift_options(char ***args, char *op_chars)
{
t_byte cur_options;
t_byte options;
......
......@@ -6,13 +6,13 @@
/* By: mvidal-a <mvidal-a@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/01 11:25:06 by mvidal-a #+# #+# */
/* Updated: 2021/02/02 14:21:54 by mvidal-a ### ########.fr */
/* Updated: 2021/02/11 12:23:59 by mvidal-a ### ########.fr */
/* */
/* ************************************************************************** */
#include "parsing.h"
int parse_input(char **line, char **env, int stat_loc,
static int parse_input(char **line, char **env, int stat_loc,
t_command *command)
{
static t_parse process[NB_STATES - 1] = {space, letter, backslash, dollar,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment