#ifndef mainh #define mainh typedef struct{ char *prompt; char *pre_prompt; } SHELL_OB; typedef enum{ Stdout=0, Redirect=1, Pipe=2, Continue=3, If=4, } cmd_t; typedef struct CMD{ char *cmd; cmd_t type; int stdInFd; struct CMD *next; int status; } CMD; #endif