[ADD] manage variables *

Also:
- dev:
  - add docu
  - add fixes in TODO
  - add FIXME
This commit is contained in:
mcolonna 2024-05-27 13:21:40 +02:00
parent e0b059bea6
commit 38170c7211
5 changed files with 277 additions and 73 deletions

View file

@ -6,7 +6,7 @@
/* By: jschaft <cecile.schaft@orange.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
/* Updated: 2024/05/16 18:18:16 by mcolonna ### ########.fr */
/* Updated: 2024/06/05 17:45:33 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -35,6 +35,12 @@ const char *ask_command(t_memclass mc);
///// PARSE_COMMAND /////
typedef struct s_variable
{
const char *name;
const char *value;
} t_variable;
// Represents a call to a program (the program name and its arguments)
typedef struct s_call
{
@ -62,7 +68,8 @@ typedef struct s_pipes
// Return the t_command representing the command given by the user.
// If error, return a t_command wth the value .error = true.
t_command parse_command(const t_memclass mc, const char *command);
t_command parse_command(const t_memclass mc, const char *command,
t_list *variables);
///// EXECUTE COMMAND /////