On Sat, Feb 17, 2024 at 09:54:43PM +0800, Hanyuan Zhao wrote:

> This commit allows user to determine whether to have history recording
> in command-line. Previously the history data as uninitialized static
> array would not directly take much space in binary file since it only
> marks size in the binary. However now it asks to allocate space. By
> connecting the original CMD_HISTORY flag in Kconfig, users could unset
> the whole history function, and the memory usage could be eased, if the
> history function is not used at all.
> 
> Signed-off-by: Hanyuan Zhao <hanyua...@qq.com>
> ---
>  cmd/Kconfig           |  1 +
>  common/cli_readline.c | 44 ++++++++++++++++++++++++-------------------
>  2 files changed, 26 insertions(+), 19 deletions(-)

This breaks current tests, please re-test, thanks.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to