diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-28 14:08:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-28 14:19:51 +0100 |
commit | 366cf2abfbcf26931052cad297e35f7eee854936 (patch) | |
tree | cb56abf000a23837a7affebd671df298fcee6a46 /include | |
parent | b5e4d3569f8ee48164b9845801bbc4eb8f62171d (diff) | |
download | busybox-w32-366cf2abfbcf26931052cad297e35f7eee854936.tar.gz busybox-w32-366cf2abfbcf26931052cad297e35f7eee854936.tar.bz2 busybox-w32-366cf2abfbcf26931052cad297e35f7eee854936.zip |
libbb: make default history size configurable
Allow the default history size (used if HISTFILESIZE isn't set)
to be configured at build time. This may be less than or equal
to the standard history size.
(GitHub issue #411)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 76a107521..a7d31ed0c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -2015,6 +2015,11 @@ unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC; | |||
2015 | # else | 2015 | # else |
2016 | # define MAX_HISTORY 0 | 2016 | # define MAX_HISTORY 0 |
2017 | # endif | 2017 | # endif |
2018 | # if defined CONFIG_FEATURE_EDITING_HISTORY_DEFAULT && CONFIG_FEATURE_EDITING_HISTORY_DEFAULT > 0 | ||
2019 | # define DEFAULT_HISTORY (CONFIG_FEATURE_EDITING_HISTORY_DEFAULT + 0) | ||
2020 | # else | ||
2021 | # define DEFAULT_HISTORY 0 | ||
2022 | # endif | ||
2018 | typedef const char *get_exe_name_t(int i) FAST_FUNC; | 2023 | typedef const char *get_exe_name_t(int i) FAST_FUNC; |
2019 | typedef const char *sh_get_var_t(const char *name) FAST_FUNC; | 2024 | typedef const char *sh_get_var_t(const char *name) FAST_FUNC; |
2020 | typedef int sh_accept_glob_t(const char *name) FAST_FUNC; | 2025 | typedef int sh_accept_glob_t(const char *name) FAST_FUNC; |