aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h
index f990b0ebd..ede44526b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -583,10 +583,10 @@ extern unsigned long long bb_makedev(unsigned int major, unsigned int minor);
583#endif 583#endif
584 584
585 585
586#if ENABLE_FEATURE_COMMAND_EDITING 586#if ENABLE_FEATURE_EDITING
587/* It's NOT just ENABLEd or disabled. It's a number: */ 587/* It's NOT just ENABLEd or disabled. It's a number: */
588#ifdef CONFIG_FEATURE_COMMAND_HISTORY 588#ifdef CONFIG_FEATURE_EDITING_HISTORY
589#define MAX_HISTORY (CONFIG_FEATURE_COMMAND_HISTORY + 0) 589#define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0)
590#else 590#else
591#define MAX_HISTORY 0 591#define MAX_HISTORY 0
592#endif 592#endif
@@ -596,16 +596,16 @@ struct line_input_t {
596#if MAX_HISTORY 596#if MAX_HISTORY
597 int cnt_history; 597 int cnt_history;
598 int cur_history; 598 int cur_history;
599 USE_FEATURE_COMMAND_SAVEHISTORY(const char *hist_file;) 599 USE_FEATURE_EDITING_SAVEHISTORY(const char *hist_file;)
600 char *history[MAX_HISTORY + 1]; 600 char *history[MAX_HISTORY + 1];
601#endif 601#endif
602}; 602};
603enum { 603enum {
604 DO_HISTORY = 1 * (MAX_HISTORY > 0), 604 DO_HISTORY = 1 * (MAX_HISTORY > 0),
605 SAVE_HISTORY = 2 * (MAX_HISTORY > 0) * ENABLE_FEATURE_COMMAND_SAVEHISTORY, 605 SAVE_HISTORY = 2 * (MAX_HISTORY > 0) * ENABLE_FEATURE_EDITING_SAVEHISTORY,
606 TAB_COMPLETION = 4 * ENABLE_FEATURE_COMMAND_TAB_COMPLETION, 606 TAB_COMPLETION = 4 * ENABLE_FEATURE_TAB_COMPLETION,
607 USERNAME_COMPLETION = 8 * ENABLE_FEATURE_COMMAND_USERNAME_COMPLETION, 607 USERNAME_COMPLETION = 8 * ENABLE_FEATURE_USERNAME_COMPLETION,
608 VI_MODE = 0x10 * ENABLE_FEATURE_COMMAND_EDITING_VI, 608 VI_MODE = 0x10 * ENABLE_FEATURE_EDITING_VI,
609 WITH_PATH_LOOKUP = 0x20, 609 WITH_PATH_LOOKUP = 0x20,
610 FOR_SHELL = DO_HISTORY | SAVE_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION, 610 FOR_SHELL = DO_HISTORY | SAVE_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION,
611}; 611};