]>
Commit | Line | Data |
---|---|---|
67ad140f AF |
1 | --- Python-2.0/Modules/readline.c.wiget Fri Apr 13 12:20:51 2001 |
2 | +++ Python-2.0/Modules/readline.c Fri Apr 13 12:20:58 2001 | |
67ad140f AF |
3 | @@ -224,7 +224,7 @@ |
4 | if(!PyArg_ParseTuple(args, "s:set_completer_delims", &break_chars)) { | |
5 | return NULL; | |
6 | } | |
7 | - free(rl_completer_word_break_characters); | |
8 | + free((char *)rl_completer_word_break_characters); | |
9 | rl_completer_word_break_characters = strdup(break_chars); | |
10 | Py_INCREF(Py_None); | |
11 | return Py_None; | |
12 | @@ -351,7 +351,7 @@ | |
13 | /* C function to call the Python completer. */ | |
14 | ||
15 | static char * | |
16 | -on_completion(char *text, int state) | |
17 | +on_completion(const char *text, int state) | |
18 | { | |
19 | char *result = NULL; | |
20 | if (completer != NULL) { | |
21 | @@ -396,7 +396,7 @@ | |
22 | Py_XDECREF(endidx); | |
23 | begidx = PyInt_FromLong((long) start); | |
24 | endidx = PyInt_FromLong((long) end); | |
25 | - return completion_matches(text, *on_completion); | |
26 | + return rl_completion_matches(text, *on_completion); | |
27 | } | |
28 | ||
29 | /* Helper to initialize GNU readline properly. */ |