version 1.115, 2015/04/01 15:23:15 |
version 1.116, 2015/05/26 19:59:21 |
Line 107 int rl_attempted_completion_over = 0; |
|
Line 107 int rl_attempted_completion_over = 0; |
|
char *rl_basic_word_break_characters = break_chars; |
char *rl_basic_word_break_characters = break_chars; |
char *rl_completer_word_break_characters = NULL; |
char *rl_completer_word_break_characters = NULL; |
char *rl_completer_quote_characters = NULL; |
char *rl_completer_quote_characters = NULL; |
Function *rl_completion_entry_function = NULL; |
CPFunction *rl_completion_entry_function = NULL; |
char *(*rl_completion_word_break_hook)(void) = NULL; |
char *(*rl_completion_word_break_hook)(void) = NULL; |
CPPFunction *rl_attempted_completion_function = NULL; |
CPPFunction *rl_attempted_completion_function = NULL; |
Function *rl_pre_input_hook = NULL; |
Function *rl_pre_input_hook = NULL; |
Line 160 int rl_completion_append_character = ' ' |
|
Line 160 int rl_completion_append_character = ' ' |
|
|
|
static History *h = NULL; |
static History *h = NULL; |
static EditLine *e = NULL; |
static EditLine *e = NULL; |
static Function *map[256]; |
static rl_command_func_t *map[256]; |
static jmp_buf topbuf; |
static jmp_buf topbuf; |
|
|
/* internal functions */ |
/* internal functions */ |
Line 1827 rl_complete(int ignore __attribute__((__ |
|
Line 1827 rl_complete(int ignore __attribute__((__ |
|
else |
else |
breakchars = rl_basic_word_break_characters; |
breakchars = rl_basic_word_break_characters; |
|
|
|
_rl_update_pos(); |
|
|
/* Just look at how many global variables modify this operation! */ |
/* Just look at how many global variables modify this operation! */ |
return fn_complete(e, |
return fn_complete(e, |
(CPFunction *)rl_completion_entry_function, |
(CPFunction *)rl_completion_entry_function, |
Line 1958 rl_bind_wrapper(EditLine *el __attribute |
|
Line 1960 rl_bind_wrapper(EditLine *el __attribute |
|
|
|
_rl_update_pos(); |
_rl_update_pos(); |
|
|
(*map[c])(NULL, c); |
(*map[c])(1, c); |
|
|
/* If rl_done was set by the above call, deal with it here */ |
/* If rl_done was set by the above call, deal with it here */ |
if (rl_done) |
if (rl_done) |
Line 1968 rl_bind_wrapper(EditLine *el __attribute |
|
Line 1970 rl_bind_wrapper(EditLine *el __attribute |
|
} |
} |
|
|
int |
int |
rl_add_defun(const char *name, Function *fun, int c) |
rl_add_defun(const char *name, rl_command_func_t *fun, int c) |
{ |
{ |
char dest[8]; |
char dest[8]; |
if ((size_t)c >= sizeof(map) / sizeof(map[0]) || c < 0) |
if ((size_t)c >= sizeof(map) / sizeof(map[0]) || c < 0) |