From 04095e58fb4d3a083f77962714080ffe8139b39c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 25 Apr 2001 05:39:18 +0000 Subject: 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 --- archival/gunzip.c | 4 ---- archival/gzip.c | 3 --- archival/libunarchive/decompress_unzip.c | 4 ---- archival/libunarchive/unzip.c | 4 ---- archival/tar.c | 4 ---- 5 files changed, 19 deletions(-) (limited to 'archival') 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 #include #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 #include #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 #include #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 #include #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 #include #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 -- cgit v1.1