Ticket #45739: src-redline.c.diff
File src-redline.c.diff, 1.5 KB (added by mbrethen, 10 years ago) |
---|
-
src/redline.c
old new 63 63 int fn_complete(EditLine *, 64 64 char *(*)(const char *, int), 65 65 char **(*)(const char *, int, int), 66 const char *, const char*, const char *(*)(const char *), size_t,66 const wchar_t *, const wchar_t *, const char *(*)(const char *), size_t, 67 67 int *, int *, int *, int *); 68 68 69 69 void fn_display_match_list(EditLine *, char **, size_t, size_t); … … 84 84 static HistEvent ev; 85 85 static char line_prompt[50]; 86 86 87 static charline_break_chars[] = {' ', '\t', '\n', '"', '\\', '\'', '`', '@',87 static wchar_t line_break_chars[] = {' ', '\t', '\n', '"', '\\', '\'', '`', '@', 88 88 '$', '>', '<', '=', ';', '|', '&', '{', '(', 89 89 ',', '\0'}; 90 90 … … 96 96 char *line_get_rprompt(EditLine *); 97 97 unsigned char line_complete(EditLine *,int); 98 98 unsigned char line_fn_complete(EditLine *,char *(*)(const char *, int), 99 const char*, const char *(*)(const char *),99 const wchar_t *, const char *(*)(const char *), 100 100 size_t); 101 101 char *line_filename_completion_function(const char *, int); 102 102 const char *line_append_char_function(const char *); … … 207 207 208 208 unsigned char line_fn_complete(EditLine *el, 209 209 char *(*complet_func)(const char *, int), 210 const char*word_break,210 const wchar_t *word_break, 211 211 const char *(*app_func)(const char *), 212 212 size_t query_items) { 213 213 return (unsigned char )fn_complete(el,