mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
cmdgroup parsing: handle parsing a single cmdlist (badly)
This commit is contained in:
parent
9707316085
commit
d8dd1613c8
8 changed files with 157 additions and 29 deletions
14
NOTES.md
14
NOTES.md
|
|
@ -210,16 +210,14 @@ The exit status of this construct is the exit status of LIST.
|
|||
```c
|
||||
struct s_cmdgroup;
|
||||
|
||||
typedef union u_cmdgroup_item_inner
|
||||
{
|
||||
struct s_cmdgroup cmdgroup;
|
||||
struct s_cmdlist cmdlist;
|
||||
} t_cmdgroup_item_inner;
|
||||
|
||||
typedef struct s_cmdgroup_item
|
||||
{
|
||||
enum e_cmdgroup_item_type type;
|
||||
union u_cmdgroup_item_inner inner;
|
||||
enum e_cmdgroup_item_type type;
|
||||
union u_cmdgroup_item_inner
|
||||
{
|
||||
t_cmdgroup *cmdgroup;
|
||||
struct s_cmdlist *cmdlist;
|
||||
} inner;
|
||||
} t_cmdgroup_item;
|
||||
|
||||
typedef struct s_cmdgroup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue