aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
blob: 2b8505bbb151c2b27bb5979b6a2df9384814095e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef mainh
#define mainh

typedef struct{
    char *prompt;
    char *pre_prompt;
} SHELL_OB;

typedef enum{
    Stdout=0,
    Redirect=1,
    Pipe=2,
    If=3,
    Continue=4
} cmd_t;

typedef struct{
    char *cmd;
    cmd_t type;
    char *Stdout;
} CMD;

#endif