mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
cmdlist: use new architecture (STUB)
I fixed the tests, and the basic functionallity of detecting pipelines works, but detecting nested cmdgroups is not yet implemented
This commit is contained in:
parent
8f7e7f7dfe
commit
56fe943efc
13 changed files with 116 additions and 69 deletions
10
NOTES.md
10
NOTES.md
|
|
@ -208,22 +208,22 @@ not remain in effect after the subshell completes.
|
|||
The exit status of this construct is the exit status of LIST.
|
||||
|
||||
```c
|
||||
typedef enum e_cmdgroup_item_type
|
||||
typedef enum e_cmdlist_item_type
|
||||
{
|
||||
TYPE_INVALID,
|
||||
TYPE_CMDGROUP,
|
||||
TYPE_PIPELINE,
|
||||
} t_cmdgroup_item_type;
|
||||
} t_cmdlist_item_type;
|
||||
|
||||
typedef struct s_cmdlist_item
|
||||
{
|
||||
enum e_cmdgroup_item_type type;
|
||||
union u_cmdgroup_item_inner
|
||||
enum e_cmdlist_item_type type;
|
||||
union u_cmdlist_item_inner
|
||||
{
|
||||
t_cmdgroup *cmdgroup;
|
||||
struct s_pipeline *pipeline;
|
||||
} inner;
|
||||
} t_cmdgroup_item;
|
||||
} t_cmdlist_item;
|
||||
|
||||
typedef s_cmdlist
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue