diff options
Diffstat (limited to 'applets.c')
-rw-r--r-- | applets.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -29,12 +29,20 @@ | |||
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | #include "busybox.h" | 30 | #include "busybox.h" |
31 | 31 | ||
32 | #undef APPLET | ||
33 | #undef APPLET_NOUSAGE | ||
34 | #undef PROTOTYPES | ||
35 | #include "applets.h" | ||
36 | |||
32 | #define bb_need_full_version | 37 | #define bb_need_full_version |
33 | #define BB_DECLARE_EXTERN | 38 | #define BB_DECLARE_EXTERN |
34 | #include "messages.c" | 39 | #include "messages.c" |
35 | 40 | ||
36 | struct BB_applet *applet_using; | 41 | struct BB_applet *applet_using; |
37 | 42 | ||
43 | /* The -1 arises because of the {0,NULL,0,-1} entry above. */ | ||
44 | const size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1); | ||
45 | |||
38 | extern void show_usage(void) | 46 | extern void show_usage(void) |
39 | { | 47 | { |
40 | const char *format_string; | 48 | const char *format_string; |