diff options
author | Denis Vlasenko | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /editors | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-9b49a5ed8551e46892af3f676e5d96d21b540e3c.zip busybox-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 2 | ||||
-rw-r--r-- | editors/cmp.c | 2 | ||||
-rw-r--r-- | editors/diff.c | 2 | ||||
-rw-r--r-- | editors/ed.c | 2 | ||||
-rw-r--r-- | editors/patch.c | 2 | ||||
-rw-r--r-- | editors/sed.c | 2 | ||||
-rw-r--r-- | editors/vi.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/editors/awk.c b/editors/awk.c index a820c7a..da3401b 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -2752,7 +2752,7 @@ static rstream *next_input_file(void) #undef files_happen } -int awk_main(int argc, char **argv); +int awk_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int awk_main(int argc, char **argv) { unsigned opt; diff --git a/editors/cmp.c b/editors/cmp.c index 34a0de5..6dfe040 100644 --- a/editors/cmp.c +++ b/editors/cmp.c @@ -42,7 +42,7 @@ static const char opt_chars[] ALIGN1 = "sl"; #define CMP_OPT_s (1<<0) #define CMP_OPT_l (1<<1) -int cmp_main(int argc, char **argv); +int cmp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int cmp_main(int argc, char **argv) { FILE *fp1, *fp2, *outfile = stdout; diff --git a/editors/diff.c b/editors/diff.c index 3a694e0..c158c87 100644 --- a/editors/diff.c +++ b/editors/diff.c @@ -1207,7 +1207,7 @@ static void diffdir(char *p1, char *p2) #endif -int diff_main(int argc, char **argv); +int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int diff_main(int argc, char **argv) { bool gotstdin = 0; diff --git a/editors/ed.c b/editors/ed.c index 31185d9..cceff0c 100644 --- a/editors/ed.c +++ b/editors/ed.c @@ -88,7 +88,7 @@ static char *skip_blank(const char *cp) } -int ed_main(int argc, char **argv); +int ed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int ed_main(int argc, char **argv) { INIT_G(); diff --git a/editors/patch.c b/editors/patch.c index 65791df..07fa5cf 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -77,7 +77,7 @@ static int file_doesnt_exist(const char *filename) return stat(filename, &statbuf); } -int patch_main(int argc, char **argv); +int patch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int patch_main(int argc, char **argv) { int patch_level = -1; diff --git a/editors/sed.c b/editors/sed.c index dcdf382..f75fcee 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1223,7 +1223,7 @@ static void add_cmd_block(char *cmdstr) free(sv); } -int sed_main(int argc, char **argv); +int sed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sed_main(int argc, char **argv) { enum { diff --git a/editors/vi.c b/editors/vi.c index 25c8234..249bf29 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -311,7 +311,7 @@ static void write1(const char *out) fputs(out, stdout); } -int vi_main(int argc, char **argv); +int vi_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int vi_main(int argc, char **argv) { int c; |