diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2024-09-27 19:35:50 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-09-27 19:35:50 +0200 |
| commit | e5b0547ac834dcd34c72df9aee1cf9c326c14b6f (patch) | |
| tree | 13dcd4e5e6bf85093c3f1142305c0a55e9748962 /include | |
| parent | a023f392655d55e6e5042fedc57b89a89bf8abd4 (diff) | |
| download | busybox-w32-e5b0547ac834dcd34c72df9aee1cf9c326c14b6f.tar.gz busybox-w32-e5b0547ac834dcd34c72df9aee1cf9c326c14b6f.tar.bz2 busybox-w32-e5b0547ac834dcd34c72df9aee1cf9c326c14b6f.zip | |
lineedit: make save_history() FAST_FUNC
function old new delta
save_history 267 266 -1
hush_exit 98 97 -1
exitshell 140 138 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-4) Total: -4 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 01cdb1bdc..67e7bf7b9 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -1998,11 +1998,11 @@ enum { | |||
| 1998 | FOR_SHELL = DO_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION | LI_INTERRUPTIBLE, | 1998 | FOR_SHELL = DO_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION | LI_INTERRUPTIBLE, |
| 1999 | }; | 1999 | }; |
| 2000 | line_input_t *new_line_input_t(int flags) FAST_FUNC; | 2000 | line_input_t *new_line_input_t(int flags) FAST_FUNC; |
| 2001 | #if ENABLE_FEATURE_EDITING_SAVEHISTORY | 2001 | # if ENABLE_FEATURE_EDITING_SAVEHISTORY |
| 2002 | void free_line_input_t(line_input_t *n) FAST_FUNC; | 2002 | void free_line_input_t(line_input_t *n) FAST_FUNC; |
| 2003 | #else | 2003 | # else |
| 2004 | # define free_line_input_t(n) free(n) | 2004 | # define free_line_input_t(n) free(n) |
| 2005 | #endif | 2005 | # endif |
| 2006 | /* | 2006 | /* |
| 2007 | * maxsize must be >= 2. | 2007 | * maxsize must be >= 2. |
| 2008 | * Returns: | 2008 | * Returns: |
| @@ -2013,7 +2013,7 @@ void free_line_input_t(line_input_t *n) FAST_FUNC; | |||
| 2013 | int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize) FAST_FUNC; | 2013 | int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize) FAST_FUNC; |
| 2014 | void show_history(const line_input_t *st) FAST_FUNC; | 2014 | void show_history(const line_input_t *st) FAST_FUNC; |
| 2015 | # if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT | 2015 | # if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT |
| 2016 | void save_history(line_input_t *st); | 2016 | void save_history(line_input_t *st) FAST_FUNC; |
| 2017 | # endif | 2017 | # endif |
| 2018 | #else | 2018 | #else |
| 2019 | #define MAX_HISTORY 0 | 2019 | #define MAX_HISTORY 0 |
