]> git.pld-linux.org Git - packages/lftp.git/blob - lftp-readline.patch
- 2.4.0
[packages/lftp.git] / lftp-readline.patch
1 --- ./src/complete.cc.orig      Mon May 14 20:59:10 2001
2 +++ ./src/complete.cc   Mon May 14 22:13:26 2001
3 @@ -38,8 +38,14 @@
4  #include "lftp_rl.h"
5  #include "url.h"
6  
7 +#include <ctype.h>
8 +
9  CDECL_BEGIN
10 +#undef __P
11 +#define __P(args) args
12  #include "readline/readline.h"
13 +#undef __P
14 +#define __P(args) args __THROW
15  CDECL_END
16  
17  static char *bash_dequote_filename (char *text, int quote_char);
18 @@ -577,7 +583,7 @@
19     textq=bash_dequote_filename(textq, quoted);
20     len=strlen(textq);
21  
22 -   char **matches=lftp_rl_completion_matches(textq,generator);
23 +   char **matches=rl_completion_matches(textq,generator);
24  
25     glob_res=0;
26     if(rg)
27 @@ -952,7 +958,6 @@
28    return (0);
29  }
30  
31 -extern "C" int (*rl_last_func)(int,int);
32  static int lftp_complete_remote(int count,int key)
33  {
34  
This page took 0.049384 seconds and 3 git commands to generate.