cmdgroup parsing: handle parsing a single cmdlist (badly)

This commit is contained in:
Khaïs COLIN 2025-03-11 16:41:38 +01:00
parent 9707316085
commit d8dd1613c8
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
8 changed files with 157 additions and 29 deletions

View file

@ -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