dev: don't use t_variable where don't make sense *
also fix unset builtin
This commit is contained in:
parent
f9f9562a40
commit
f578b5311b
4 changed files with 17 additions and 20 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/27 13:43:21 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/06/27 14:43:36 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/06/28 13:10:43 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -20,7 +20,8 @@ typedef struct s_variable
|
|||
} t_variable;
|
||||
|
||||
// Set a variable to a new value.
|
||||
void variables_set(t_list *variables, const t_variable var);
|
||||
void variables_set(t_list *variables, const char *name,
|
||||
const char *value);
|
||||
|
||||
// Get the value of a variable from its name.
|
||||
const char *variables_get(t_list *variables, const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue