aboutsummaryrefslogtreecommitdiff
path: root/include/applets.h
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-02 00:44:48 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-02 00:44:48 +0000
commit00a0be59a0e4d1410f90e0a78d9a279148cd4b45 (patch)
tree77ebde3b4f2581a272e235090349f380bd07d357 /include/applets.h
parent6d7922a2d820fc3428b0829066e84434db056001 (diff)
downloadbusybox-w32-00a0be59a0e4d1410f90e0a78d9a279148cd4b45.tar.gz
busybox-w32-00a0be59a0e4d1410f90e0a78d9a279148cd4b45.tar.bz2
busybox-w32-00a0be59a0e4d1410f90e0a78d9a279148cd4b45.zip
Patch from Larry Doolittle so it will build the newdocs right.
git-svn-id: svn://busybox.net/trunk/busybox@1370 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--include/applets.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/applets.h b/include/applets.h
index 254924a7a..fe8c59782 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -10,16 +10,19 @@
10 * file result in the listing remaining in ascii order. You have been warned. 10 * file result in the listing remaining in ascii order. You have been warned.
11 */ 11 */
12 12
13#ifndef PROTOTYPES 13#if defined(PROTOTYPES)
14const struct BB_applet applets[] = {
15#define APPLET(a,b,c,d) {a,b,c,d},
16#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
17#else
18#define APPLET(a,b,c,d) \ 14#define APPLET(a,b,c,d) \
19 extern int b(int argc, char **argv); \ 15 extern int b(int argc, char **argv); \
20 extern const char d[]; 16 extern const char d[];
21#define APPLET_NOUSAGE(a,b,c) \ 17#define APPLET_NOUSAGE(a,b,c) \
22 extern int b(int argc, char **argv); 18 extern int b(int argc, char **argv);
19#elif defined(MAKE_LINKS)
20#define APPLET(a,b,c,d) LINK c a
21#define APPLET_NOUSAGE(a,b,c) LINK c a
22#else
23const struct BB_applet applets[] = {
24#define APPLET(a,b,c,d) {a,b,c,d},
25#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
23#endif 26#endif
24 27
25#ifdef BB_TEST 28#ifdef BB_TEST
@@ -378,7 +381,7 @@ const struct BB_applet applets[] = {
378 APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage) 381 APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage)
379#endif 382#endif
380 383
381#ifndef PROTOTYPES 384#if !defined(PROTOTYPES) && !defined(MAKE_LINKS)
382 { 0,NULL,0,NULL} 385 { 0,NULL,0,NULL}
383}; 386};
384 387