diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/lineedit.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-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/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index fb595c010..42f372fb9 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1352,7 +1352,7 @@ static void win_changed(int nsig) | |||
1352 | * 0 on ctrl-C (the line entered is still returned in 'command'), | 1352 | * 0 on ctrl-C (the line entered is still returned in 'command'), |
1353 | * >0 length of input string, including terminating '\n' | 1353 | * >0 length of input string, including terminating '\n' |
1354 | */ | 1354 | */ |
1355 | int read_line_input(const char *prompt, char *command, int maxsize, line_input_t *st) | 1355 | int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, line_input_t *st) |
1356 | { | 1356 | { |
1357 | #if ENABLE_FEATURE_TAB_COMPLETION | 1357 | #if ENABLE_FEATURE_TAB_COMPLETION |
1358 | smallint lastWasTab = FALSE; | 1358 | smallint lastWasTab = FALSE; |
@@ -1845,7 +1845,7 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t | |||
1845 | return command_len; | 1845 | return command_len; |
1846 | } | 1846 | } |
1847 | 1847 | ||
1848 | line_input_t *new_line_input_t(int flags) | 1848 | line_input_t* FAST_FUNC new_line_input_t(int flags) |
1849 | { | 1849 | { |
1850 | line_input_t *n = xzalloc(sizeof(*n)); | 1850 | line_input_t *n = xzalloc(sizeof(*n)); |
1851 | n->flags = flags; | 1851 | n->flags = flags; |
@@ -1855,7 +1855,7 @@ line_input_t *new_line_input_t(int flags) | |||
1855 | #else | 1855 | #else |
1856 | 1856 | ||
1857 | #undef read_line_input | 1857 | #undef read_line_input |
1858 | int read_line_input(const char* prompt, char* command, int maxsize) | 1858 | int FAST_FUNC read_line_input(const char* prompt, char* command, int maxsize) |
1859 | { | 1859 | { |
1860 | fputs(prompt, stdout); | 1860 | fputs(prompt, stdout); |
1861 | fflush(stdout); | 1861 | fflush(stdout); |