mirror of
https://github.com/troglobit/editline.git
synced 2025-09-16 00:08:11 +08:00
Remove GNU Readline rl_complete() prototype, for now
We should add a configure option --enable-readline-compat, or sth, so rl_complete2() (removed in this commit) becomes the new rl_complete(), and the current rl_complete() becomes el_complete(). The current implementation of rl_complete2() was is incomplete and also not working properly. To eliminate any confusion on the matter this patch removes it. To restore functionality we should, at the very least, merge with complete() and possibly also refactor rl_find_token() to share code with the legacy el_find_word(). Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -114,15 +114,10 @@ extern void add_history (const char *line);
|
||||
extern int read_history (const char *filename);
|
||||
extern int write_history (const char *filename);
|
||||
|
||||
//extern int rl_complete2 (int ignore, int invoking_key);
|
||||
|
||||
extern rl_completion_func_t *rl_attempted_completion_function;
|
||||
extern rl_complete_func_t *rl_set_complete_func (rl_complete_func_t *func);
|
||||
extern rl_list_possib_func_t *rl_set_list_possib_func (rl_list_possib_func_t *func);
|
||||
|
||||
// TODO: See comment for src/complete.c:rl_complete2()
|
||||
//#define rl_complete(a, b) _Generic((a), int: rl_complete2, default: rl_complete)(a, b)
|
||||
|
||||
/* Alternate interface to plain readline(), for event loops */
|
||||
extern void rl_callback_handler_install (const char *prompt, rl_vcpfunc_t *lhandler);
|
||||
extern void rl_callback_read_char (void);
|
||||
|
Reference in New Issue
Block a user