Created
March 15, 2015 14:05
-
-
Save good5dog5/f02e9acbf20a5c855bb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MKCL(n, d) {.name=#n, .fptr=n ## _command, .desc=d} | |
cmdlist cl[]={ | |
MKCL(ls, "List directory"), | |
MKCL(man, "Show the manual of the command"), | |
MKCL(cat, "Concatenate files and print on the stdout"), | |
MKCL(ps, "Report a snapshot of the current processes"), | |
MKCL(host, "Run command on host"), | |
MKCL(mmtest, "heap memory allocation test"), | |
MKCL(help, "help"), | |
MKCL(test, "test new function"), | |
MKCL(, ""), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment