]> git.pld-linux.org Git - packages/python.git/blob - python-readline.patch
- adapterized (avoid macros with /usr/include/{ncurses,freetype}*)
[packages/python.git] / python-readline.patch
1 diff -Nur Python-2.2.2.orig/Modules/readline.c Python-2.2.2/Modules/readline.c
2 --- Python-2.2.2.orig/Modules/readline.c        Sun Oct  6 07:43:47 2002
3 +++ Python-2.2.2/Modules/readline.c     Thu Oct 17 12:10:51 2002
4 @@ -450,7 +450,7 @@
5  /* C function to call the Python completer. */
6  
7  static char *
8 -on_completion(char *text, int state)
9 +on_completion(const char *text, int state)
10  {
11         char *result = NULL;
12         if (completer != NULL) {
13 @@ -495,7 +495,7 @@
14         Py_XDECREF(endidx);
15         begidx = PyInt_FromLong((long) start);
16         endidx = PyInt_FromLong((long) end);
17 -       return completion_matches(text, *on_completion);
18 +       return rl_completion_matches(text, *on_completion);
19  }
20  
21  /* Helper to initialize GNU readline properly. */
This page took 0.047601 seconds and 3 git commands to generate.