summaryrefslogtreecommitdiff
path: root/applets.h
diff options
context:
space:
mode:
authorEric Andersen2000-12-02 00:44:48 +0000
committerEric Andersen2000-12-02 00:44:48 +0000
commit868c057d253c9f96b9646ef49f2f06e9c20181df (patch)
tree77ebde3b4f2581a272e235090349f380bd07d357 /applets.h
parente73fda83111ce7f043be3028b440e8ba96cbf639 (diff)
downloadbusybox-868c057d253c9f96b9646ef49f2f06e9c20181df.zip
busybox-868c057d253c9f96b9646ef49f2f06e9c20181df.tar.gz
Patch from Larry Doolittle so it will build the newdocs right.
Diffstat (limited to 'applets.h')
-rw-r--r--applets.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/applets.h b/applets.h
index 254924a..fe8c597 100644
--- a/applets.h
+++ b/applets.h
@@ -10,16 +10,19 @@
* file result in the listing remaining in ascii order. You have been warned.
*/
-#ifndef PROTOTYPES
-const struct BB_applet applets[] = {
-#define APPLET(a,b,c,d) {a,b,c,d},
-#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
-#else
+#if defined(PROTOTYPES)
#define APPLET(a,b,c,d) \
extern int b(int argc, char **argv); \
extern const char d[];
#define APPLET_NOUSAGE(a,b,c) \
extern int b(int argc, char **argv);
+#elif defined(MAKE_LINKS)
+#define APPLET(a,b,c,d) LINK c a
+#define APPLET_NOUSAGE(a,b,c) LINK c a
+#else
+const struct BB_applet applets[] = {
+#define APPLET(a,b,c,d) {a,b,c,d},
+#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
#endif
#ifdef BB_TEST
@@ -378,7 +381,7 @@ const struct BB_applet applets[] = {
APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage)
#endif
-#ifndef PROTOTYPES
+#if !defined(PROTOTYPES) && !defined(MAKE_LINKS)
{ 0,NULL,0,NULL}
};