aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-25 05:39:18 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-25 05:39:18 +0000
commit04095e58fb4d3a083f77962714080ffe8139b39c (patch)
treeaa3580587822774ffed9831aacee11d977d0a5f9 /archival
parent3676374915866fb06224a19e2274afe026eb9377 (diff)
downloadbusybox-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.c4
-rw-r--r--archival/gzip.c3
-rw-r--r--archival/libunarchive/decompress_unzip.c4
-rw-r--r--archival/libunarchive/unzip.c4
-rw-r--r--archival/tar.c4
5 files changed, 0 insertions, 19 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index b4edb25ac..db5f6ee55 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 f05ef95d0..6d46926ee 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 9568c2870..7de28930a 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 9568c2870..7de28930a 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 7cfad72b5..48284c00a 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