diff options
author | Eric Andersen | 2001-04-25 05:39:18 +0000 |
---|---|---|
committer | Eric Andersen | 2001-04-25 05:39:18 +0000 |
commit | 04095e58fb4d3a083f77962714080ffe8139b39c (patch) | |
tree | aa3580587822774ffed9831aacee11d977d0a5f9 /archival | |
parent | 3676374915866fb06224a19e2274afe026eb9377 (diff) | |
download | busybox-04095e58fb4d3a083f77962714080ffe8139b39c.zip busybox-04095e58fb4d3a083f77962714080ffe8139b39c.tar.gz |
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 'archival')
-rw-r--r-- | archival/gunzip.c | 4 | ||||
-rw-r--r-- | archival/gzip.c | 3 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 4 | ||||
-rw-r--r-- | archival/libunarchive/unzip.c | 4 | ||||
-rw-r--r-- | archival/tar.c | 4 |
5 files changed, 0 insertions, 19 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index b4edb25..db5f6ee 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -65,10 +65,6 @@ static char *license_msg[] = { #include <unistd.h> #include <getopt.h> #include "busybox.h" -#define BB_DECLARE_EXTERN -#define bb_need_memory_exhausted -#define bb_need_name_too_long -#include "messages.c" extern int gunzip_main(int argc, char **argv) { diff --git a/archival/gzip.c b/archival/gzip.c index f05ef95..6d46926 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -44,9 +44,6 @@ #include <unistd.h> #include <errno.h> #include "busybox.h" -#define BB_DECLARE_EXTERN -#define bb_need_memory_exhausted -#include "messages.c" #define memzero(s, n) memset ((void *)(s), 0, (n)) diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 9568c28..7de2893 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c @@ -65,10 +65,6 @@ static char *license_msg[] = { #include <signal.h> #include <stdlib.h> #include "libbb.h" -#define BB_DECLARE_EXTERN -#define bb_need_memory_exhausted -#define bb_need_name_too_long -#include "../messages.c" FILE *in_file, *out_file; diff --git a/archival/libunarchive/unzip.c b/archival/libunarchive/unzip.c index 9568c28..7de2893 100644 --- a/archival/libunarchive/unzip.c +++ b/archival/libunarchive/unzip.c @@ -65,10 +65,6 @@ static char *license_msg[] = { #include <signal.h> #include <stdlib.h> #include "libbb.h" -#define BB_DECLARE_EXTERN -#define bb_need_memory_exhausted -#define bb_need_name_too_long -#include "../messages.c" FILE *in_file, *out_file; diff --git a/archival/tar.c b/archival/tar.c index 7cfad72..48284c0 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -51,10 +51,6 @@ #include <stdlib.h> #include <unistd.h> #include "busybox.h" -#define BB_DECLARE_EXTERN -#define bb_need_io_error -#define bb_need_name_longer_than_foo -#include "messages.c" /* Tar file constants */ #ifndef MAJOR |