* (C) Copyright 2005
* JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0
*/
#include "common.h"
static char *hist_list[HIST_MAX];
-static void hist_init(void)
-{
- int_fast8_t i;
-
- hist_max = 0;
- hist_add_idx = 0;
- hist_cur = -1;
-
- for (i = 0; i < HIST_MAX; i++) {
- hist_list[i] = NULL;
- }
-}
-
static void cread_add_to_hist(char *line)
{
if (hist_max) {
#ifdef CONFIG_CMDLINE_EDITING
uint_fast8_t len = CONFIG_SYS_CBSIZE;
int rc;
- static bool initted;
-
- if (!initted) {
- hist_init();
- initted = 1;
- }
if (prompt)
my_puts_P(prompt);