diff options
Diffstat (limited to 'cmd.h')
-rw-r--r-- | cmd.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4,6 +4,7 @@ | |||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <string.h> | ||
7 | 8 | ||
8 | typedef enum { | 9 | typedef enum { |
9 | CMD_TYPE_NORMAL, | 10 | CMD_TYPE_NORMAL, |
@@ -21,6 +22,9 @@ typedef struct Command { | |||
21 | struct Command *right; // a pointer to the right sub-command | 22 | struct Command *right; // a pointer to the right sub-command |
22 | } Command; | 23 | } Command; |
23 | 24 | ||
25 | Command* newcmd(); | ||
24 | int runcmd(Command *cmd); | 26 | int runcmd(Command *cmd); |
27 | void freecmd(Command *cmd); | ||
28 | void printcmd(Command *cmd); | ||
25 | 29 | ||
26 | #endif \ No newline at end of file | 30 | #endif \ No newline at end of file |