diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-22 01:15:47 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-22 01:15:47 +0000 |
commit | 7e9276b50a7aa948b2b4fe093e4049bbece4699c (patch) | |
tree | d20a5e4a07ec079ffd40ee587b12a0b65fdf2eb4 /include/busybox.h | |
parent | 8fc300976f5a06d98f8be3e1798b5bc8da868e02 (diff) | |
download | busybox-w32-7e9276b50a7aa948b2b4fe093e4049bbece4699c.tar.gz busybox-w32-7e9276b50a7aa948b2b4fe093e4049bbece4699c.tar.bz2 busybox-w32-7e9276b50a7aa948b2b4fe093e4049bbece4699c.zip |
Another update to the way usage messages are done by Evin Robertson
<nitfol@my-deja.com>, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
-Erik
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/busybox.h b/include/busybox.h index aef537b2b..692a9084e 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -72,7 +72,6 @@ struct BB_applet { | |||
72 | const char* name; | 72 | const char* name; |
73 | int (*main)(int argc, char** argv); | 73 | int (*main)(int argc, char** argv); |
74 | enum Location location; | 74 | enum Location location; |
75 | int usage_index; | ||
76 | }; | 75 | }; |
77 | /* From busybox.c */ | 76 | /* From busybox.c */ |
78 | extern const struct BB_applet applets[]; | 77 | extern const struct BB_applet applets[]; |
@@ -87,12 +86,6 @@ extern const struct BB_applet applets[]; | |||
87 | #include "applets.h" | 86 | #include "applets.h" |
88 | #undef PROTOTYPES | 87 | #undef PROTOTYPES |
89 | 88 | ||
90 | #define APPLET_ENUM | ||
91 | enum APPLET_INDEX_NUMBERS { | ||
92 | #include "applets.h" | ||
93 | }; | ||
94 | #undef APPLET_ENUM | ||
95 | |||
96 | extern const char *applet_name; | 89 | extern const char *applet_name; |
97 | 90 | ||
98 | extern void show_usage(void) __attribute__ ((noreturn)); | 91 | extern void show_usage(void) __attribute__ ((noreturn)); |