diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-25 05:39:18 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-25 05:39:18 +0000 |
commit | e54544c3c4d44b12f9e8acc497efb6162c30836f (patch) | |
tree | aa3580587822774ffed9831aacee11d977d0a5f9 /libbb/messages.c | |
parent | bb2646f7e74c0434c2e8c884ce97b05c7ae6b0a1 (diff) | |
download | busybox-w32-e54544c3c4d44b12f9e8acc497efb6162c30836f.tar.gz busybox-w32-e54544c3c4d44b12f9e8acc497efb6162c30836f.tar.bz2 busybox-w32-e54544c3c4d44b12f9e8acc497efb6162c30836f.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
git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/messages.c')
-rw-r--r-- | libbb/messages.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c new file mode 100644 index 000000000..16ac63f69 --- /dev/null +++ b/libbb/messages.c | |||
@@ -0,0 +1,61 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
2 | /* | ||
3 | * Copyright (C) 2001 by Lineo, inc. | ||
4 | * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | */ | ||
21 | |||
22 | #include "../busybox.h" | ||
23 | |||
24 | #ifdef L_full_version | ||
25 | const char *full_version = BB_BANNER " multi-call binary"; | ||
26 | #endif | ||
27 | #ifdef L_name_too_long | ||
28 | const char *name_too_long = "file name too long"; | ||
29 | #endif | ||
30 | |||
31 | #ifdef L_omitting_directory | ||
32 | const char *omitting_directory = "%s: omitting directory"; | ||
33 | #endif | ||
34 | #ifdef L_not_a_directory | ||
35 | const char *not_a_directory = "%s: not a directory"; | ||
36 | #endif | ||
37 | #ifdef L_memory_exhausted | ||
38 | const char *memory_exhausted = "memory exhausted"; | ||
39 | #endif | ||
40 | #ifdef L_invalid_date | ||
41 | const char *invalid_date = "invalid date `%s'"; | ||
42 | #endif | ||
43 | #ifdef L_invalid_option | ||
44 | const char *invalid_option = "invalid option -- %c"; | ||
45 | #endif | ||
46 | #ifdef L_io_error | ||
47 | const char *io_error = "%s: input/output error -- %s"; | ||
48 | #endif | ||
49 | #ifdef L_dash_dash_help | ||
50 | const char *dash_dash_help = "--help"; | ||
51 | #endif | ||
52 | #ifdef L_write_error | ||
53 | const char *write_error = "Write Error"; | ||
54 | #endif | ||
55 | #ifdef L_too_few_args | ||
56 | const char *too_few_args = "too few arguments"; | ||
57 | #endif | ||
58 | #ifdef L_name_longer_than_foo | ||
59 | const char *name_longer_than_foo = "Names longer than %d chars not supported."; | ||
60 | #endif | ||
61 | |||