diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-25 05:39:18 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-25 05:39:18 +0000 |
commit | 04095e58fb4d3a083f77962714080ffe8139b39c (patch) | |
tree | aa3580587822774ffed9831aacee11d977d0a5f9 /applets | |
parent | 3676374915866fb06224a19e2274afe026eb9377 (diff) | |
download | busybox-w32-04095e58fb4d3a083f77962714080ffe8139b39c.tar.gz busybox-w32-04095e58fb4d3a083f77962714080ffe8139b39c.tar.bz2 busybox-w32-04095e58fb4d3a083f77962714080ffe8139b39c.zip |
Move messages.c to libbb. Make each string in messages.c be its own .o file.
This way, we can new get rid of all that tedious #define rubbish we used to
need to enable specific messages. This way is enormously simpler, and as a
bonus also ends up saving us 96 bytes.
-Erik
Diffstat (limited to 'applets')
-rw-r--r-- | applets/applets.c | 4 | ||||
-rw-r--r-- | applets/busybox.c | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/applets/applets.c b/applets/applets.c index 10b44a5fc..c1575c70d 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -35,10 +35,6 @@ | |||
35 | #undef PROTOTYPES | 35 | #undef PROTOTYPES |
36 | #include "applets.h" | 36 | #include "applets.h" |
37 | 37 | ||
38 | #define bb_need_full_version | ||
39 | #define BB_DECLARE_EXTERN | ||
40 | #include "messages.c" | ||
41 | |||
42 | struct BB_applet *applet_using; | 38 | struct BB_applet *applet_using; |
43 | 39 | ||
44 | /* The -1 arises because of the {0,NULL,0,-1} entry above. */ | 40 | /* The -1 arises because of the {0,NULL,0,-1} entry above. */ |
diff --git a/applets/busybox.c b/applets/busybox.c index 9db26df27..b4939e19d 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -5,11 +5,6 @@ | |||
5 | #include <errno.h> | 5 | #include <errno.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include "busybox.h" | 7 | #include "busybox.h" |
8 | |||
9 | #define bb_need_full_version | ||
10 | #define BB_DECLARE_EXTERN | ||
11 | #include "messages.c" | ||
12 | |||
13 | #ifdef BB_LOCALE_SUPPORT | 8 | #ifdef BB_LOCALE_SUPPORT |
14 | #include <locale.h> | 9 | #include <locale.h> |
15 | #endif | 10 | #endif |