diff options
author | Rob Landley <rob@landley.net> | 2006-11-04 17:45:18 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-11-04 17:45:18 -0500 |
commit | f2311a42a0751e7c039981857fcf60b40f36b475 (patch) | |
tree | f2e47d4eb3511cb6c64924e542d509751ccc5035 /main.c | |
parent | 0a04b3ef850cd3d6f06b3c8d0036993adc9ba7b2 (diff) | |
download | toybox-f2311a42a0751e7c039981857fcf60b40f36b475.tar.gz |
Add pwd. Consolidate toy list information under toylist.h.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -2,25 +2,15 @@ /* Toybox infrastructure. * * Copyright 2006 Rob Landley <rob@landley.net> - * - * Licensed under GPL version 2, see file LICENSE in this tarball for details. */ #include "toys.h" -// The monster fun applet list. +// Populate toy_list[]. struct toy_list toy_list[] = { - // This one is out of order on purpose. - {"toybox", toybox_main, 0}, - // The rest of these are alphabetical, for binary search. - USE_TOYSH({"cd", cd_main, TOYFLAG_NOFORK},) - USE_DF({"df", df_main, TOYFLAG_USR|TOYFLAG_SBIN},) - USE_TOYSH({"exit", exit_main, TOYFLAG_NOFORK},) - USE_HELLO({"hello", hello_main, TOYFLAG_NOFORK|TOYFLAG_USR},) - USE_TOYSH({"sh", toysh_main, TOYFLAG_BIN},) - USE_TOYSH({"toysh", toysh_main, TOYFLAG_BIN},) - USE_WHICH({"which", which_main, TOYFLAG_USR|TOYFLAG_BIN},) +#define FROM_MAIN +#include "toys/toylist.h" }; #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list)) |