]>
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 | |
3 | @@ -28,8 +28,8 @@ | |
4 | #include <readline/readline.h> /* You may need to add an -I option to Setup */ | |
5 | ||
6 | extern int rl_parse_and_bind(char *); | |
7 | -extern int rl_read_init_file(char *); | |
8 | -extern int rl_insert_text(char *); | |
9 | +extern int rl_read_init_file(const char *); | |
10 | +extern int rl_insert_text(const char *); | |
11 | extern int rl_bind_key(int, Function *); | |
12 | extern int rl_bind_key_in_map(int, Function *, Keymap); | |
13 | extern int rl_initialize(void); | |
14 | @@ -224,7 +224,7 @@ | |
15 | if(!PyArg_ParseTuple(args, "s:set_completer_delims", &break_chars)) { | |
16 | return NULL; | |
17 | } | |
18 | - free(rl_completer_word_break_characters); | |
19 | + free((char *)rl_completer_word_break_characters); | |
20 | rl_completer_word_break_characters = strdup(break_chars); | |
21 | Py_INCREF(Py_None); | |
22 | return Py_None; | |
23 | @@ -351,7 +351,7 @@ | |
24 | /* C function to call the Python completer. */ | |
25 | ||
26 | static char * | |
27 | -on_completion(char *text, int state) | |
28 | +on_completion(const char *text, int state) | |
29 | { | |
30 | char *result = NULL; | |
31 | if (completer != NULL) { | |
32 | @@ -396,7 +396,7 @@ | |
33 | Py_XDECREF(endidx); | |
34 | begidx = PyInt_FromLong((long) start); | |
35 | endidx = PyInt_FromLong((long) end); | |
36 | - return completion_matches(text, *on_completion); | |
37 | + return rl_completion_matches(text, *on_completion); | |
38 | } | |
39 | ||
40 | /* Helper to initialize GNU readline properly. */ |