diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 05a560977..392c0443d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1818,10 +1818,19 @@ unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC; | |||
1818 | # else | 1818 | # else |
1819 | # define MAX_HISTORY 0 | 1819 | # define MAX_HISTORY 0 |
1820 | # endif | 1820 | # endif |
1821 | typedef const char *get_exe_name_t(int i) FAST_FUNC; | ||
1821 | typedef struct line_input_t { | 1822 | typedef struct line_input_t { |
1822 | int flags; | 1823 | int flags; |
1823 | int timeout; | 1824 | int timeout; |
1824 | const char *path_lookup; | 1825 | const char *path_lookup; |
1826 | # if ENABLE_FEATURE_TAB_COMPLETION \ | ||
1827 | && (ENABLE_ASH || ENABLE_SH_IS_ASH || ENABLE_BASH_IS_ASH \ | ||
1828 | || ENABLE_HUSH || ENABLE_SH_IS_HUSH || ENABLE_BASH_IS_HUSH \ | ||
1829 | ) | ||
1830 | /* function to fetch additional application-specific names to match */ | ||
1831 | get_exe_name_t *get_exe_name; | ||
1832 | # define EDITING_HAS_get_exe_name 1 | ||
1833 | # endif | ||
1825 | # if MAX_HISTORY | 1834 | # if MAX_HISTORY |
1826 | int cnt_history; | 1835 | int cnt_history; |
1827 | int cur_history; | 1836 | int cur_history; |
@@ -1868,6 +1877,10 @@ int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC; | |||
1868 | read_line_input(prompt, command, maxsize) | 1877 | read_line_input(prompt, command, maxsize) |
1869 | #endif | 1878 | #endif |
1870 | 1879 | ||
1880 | #ifndef EDITING_HAS_get_exe_name | ||
1881 | # define EDITING_HAS_get_exe_name 0 | ||
1882 | #endif | ||
1883 | |||
1871 | 1884 | ||
1872 | #ifndef COMM_LEN | 1885 | #ifndef COMM_LEN |
1873 | # ifdef TASK_COMM_LEN | 1886 | # ifdef TASK_COMM_LEN |