aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-04 17:45:18 -0500
committerRob Landley <rob@landley.net>2006-11-04 17:45:18 -0500
commitf2311a42a0751e7c039981857fcf60b40f36b475 (patch)
treef2e47d4eb3511cb6c64924e542d509751ccc5035 /main.c
parent0a04b3ef850cd3d6f06b3c8d0036993adc9ba7b2 (diff)
downloadtoybox-f2311a42a0751e7c039981857fcf60b40f36b475.tar.gz
Add pwd. Consolidate toy list information under toylist.h.
Diffstat (limited to 'main.c')
-rw-r--r--main.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/main.c b/main.c
index 00d76312..89977f69 100644
--- a/main.c
+++ b/main.c
@@ -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))