aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
commitdefc1ea34074e7882724c460260d307cdf981a70 (patch)
treefca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/appletlib.c
parent26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff)
downloadbusybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz
busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2
busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 06a83e58d..0017a4bef 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -101,7 +101,7 @@ static void full_write2_str(const char *str)
101 full_write(STDERR_FILENO, str, strlen(str)); 101 full_write(STDERR_FILENO, str, strlen(str));
102} 102}
103 103
104void bb_show_usage(void) 104void FAST_FUNC bb_show_usage(void)
105{ 105{
106 if (ENABLE_SHOW_USAGE) { 106 if (ENABLE_SHOW_USAGE) {
107#ifdef SINGLE_APPLET_STR 107#ifdef SINGLE_APPLET_STR
@@ -153,7 +153,7 @@ static int applet_name_compare(const void *name, const void *v)
153 return strcmp(name, APPLET_NAME(i)); 153 return strcmp(name, APPLET_NAME(i));
154} 154}
155#endif 155#endif
156int find_applet_by_name(const char *name) 156int FAST_FUNC find_applet_by_name(const char *name)
157{ 157{
158#if NUM_APPLETS > 8 158#if NUM_APPLETS > 8
159 /* Do a binary search to find the applet entry given the name. */ 159 /* Do a binary search to find the applet entry given the name. */
@@ -704,7 +704,7 @@ static int busybox_main(char **argv)
704 xfunc_die(); 704 xfunc_die();
705} 705}
706 706
707void run_applet_no_and_exit(int applet_no, char **argv) 707void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv)
708{ 708{
709 int argc = 1; 709 int argc = 1;
710 710
@@ -722,7 +722,7 @@ void run_applet_no_and_exit(int applet_no, char **argv)
722 exit(applet_main[applet_no](argc, argv)); 722 exit(applet_main[applet_no](argc, argv));
723} 723}
724 724
725void run_applet_and_exit(const char *name, char **argv) 725void FAST_FUNC run_applet_and_exit(const char *name, char **argv)
726{ 726{
727 int applet = find_applet_by_name(name); 727 int applet = find_applet_by_name(name);
728 if (applet >= 0) 728 if (applet >= 0)