]>
Commit | Line | Data |
---|---|---|
8298e225 | 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 @@ | |
67ad140f AF |
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) { | |
8298e225 | 13 | @@ -495,7 +495,7 @@ |
67ad140f AF |
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. */ |