diff options
author | Flemming Madsen <busybox@themadsens.dk> | 2013-04-07 18:47:24 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-04-07 18:47:24 +0200 |
commit | d96ffda62e9f9c88a6e43dc1926c5b775a611166 (patch) | |
tree | f5c691e02aae158e04b797e267f3fa779d591728 /include | |
parent | 3beab83e4f7f4213c185737e95dc4895f0059dd6 (diff) | |
download | busybox-w32-d96ffda62e9f9c88a6e43dc1926c5b775a611166.tar.gz busybox-w32-d96ffda62e9f9c88a6e43dc1926c5b775a611166.tar.bz2 busybox-w32-d96ffda62e9f9c88a6e43dc1926c5b775a611166.zip |
ash,hush: history builtin
function old new delta
show_history - 39 +39
builtin_history - 16 +16
historycmd - 13 +13
bltins1 312 324 +12
builtintab 336 344 +8
popstring 134 140 +6
hush_main 1048 1046 -2
ash_main 1398 1396 -2
size_from_HISTFILESIZE 44 40 -4
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 3/3 up/down: 94/-8) Total: 86 bytes
Signed-off-by: Flemming Madsen <busybox@themadsens.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6dd4d7cae..b5d1156ae 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1436,7 +1436,7 @@ void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC; | |||
1436 | /* It's NOT just ENABLEd or disabled. It's a number: */ | 1436 | /* It's NOT just ENABLEd or disabled. It's a number: */ |
1437 | # if defined CONFIG_FEATURE_EDITING_HISTORY && CONFIG_FEATURE_EDITING_HISTORY > 0 | 1437 | # if defined CONFIG_FEATURE_EDITING_HISTORY && CONFIG_FEATURE_EDITING_HISTORY > 0 |
1438 | # define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0) | 1438 | # define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0) |
1439 | unsigned size_from_HISTFILESIZE(const char *hp); | 1439 | unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC; |
1440 | # else | 1440 | # else |
1441 | # define MAX_HISTORY 0 | 1441 | # define MAX_HISTORY 0 |
1442 | # endif | 1442 | # endif |
@@ -1478,6 +1478,7 @@ line_input_t *new_line_input_t(int flags) FAST_FUNC; | |||
1478 | * >0 length of input string, including terminating '\n' | 1478 | * >0 length of input string, including terminating '\n' |
1479 | */ | 1479 | */ |
1480 | int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC; | 1480 | int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC; |
1481 | void show_history(const line_input_t *st) FAST_FUNC; | ||
1481 | # if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT | 1482 | # if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT |
1482 | void save_history(line_input_t *st); | 1483 | void save_history(line_input_t *st); |
1483 | # endif | 1484 | # endif |