aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 63d041957..91343a95e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1421,6 +1421,12 @@ typedef struct line_input_t {
1421 int cur_history; 1421 int cur_history;
1422 int max_history; /* must never be <= 0 */ 1422 int max_history; /* must never be <= 0 */
1423# if ENABLE_FEATURE_EDITING_SAVEHISTORY 1423# if ENABLE_FEATURE_EDITING_SAVEHISTORY
1424 /* meaning of this field depends on FEATURE_EDITING_SAVE_ON_EXIT:
1425 * if !FEATURE_EDITING_SAVE_ON_EXIT: "how many lines are
1426 * in on-disk history"
1427 * if FEATURE_EDITING_SAVE_ON_EXIT: "how many in-memory lines are
1428 * also in on-disk history (and thus need to be skipped on save)"
1429 */
1424 unsigned cnt_history_in_file; 1430 unsigned cnt_history_in_file;
1425 const char *hist_file; 1431 const char *hist_file;
1426# endif 1432# endif
@@ -1446,6 +1452,9 @@ line_input_t *new_line_input_t(int flags) FAST_FUNC;
1446 * >0 length of input string, including terminating '\n' 1452 * >0 length of input string, including terminating '\n'
1447 */ 1453 */
1448int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC; 1454int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC;
1455# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
1456void save_history(line_input_t *st);
1457# endif
1449#else 1458#else
1450#define MAX_HISTORY 0 1459#define MAX_HISTORY 0
1451int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC; 1460int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC;