fix(ast_command): ast_list redir -> list redir

This commit is contained in:
matteo 2026-01-29 19:20:29 +01:00
parent 4315eb5c0d
commit 08803bd591
2 changed files with 3 additions and 2 deletions

View file

@ -4,9 +4,10 @@
#include <stdlib.h> #include <stdlib.h>
#include "../lists/lists.h" #include "../lists/lists.h"
#include "ast_list.h"
struct ast *ast_create_command(struct list *command, struct list *redirections, struct ast *ast_create_command(struct list *command, struct list *redirections,
struct ast_list *assignments) struct list *assignments)
{ {
struct ast_command *command_data = malloc(sizeof(struct ast_command)); struct ast_command *command_data = malloc(sizeof(struct ast_command));
if (!command_data) if (!command_data)

View file

@ -7,7 +7,7 @@
struct ast_command struct ast_command
{ {
struct list *command; // A list of words (char*) struct list *command; // A list of words (char*)
struct ast_list *redirections; // A list of ASTs, all ast_redir struct list *redirections; // A list of ASTs, all ast_redir
struct list *assignments; // A list of ASTs, all ast_assignment struct list *assignments; // A list of ASTs, all ast_assignment
}; };