summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-03-22 02:26:18 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-03-22 02:26:18 (GMT)
commit12eb2ab4907f6a3d06fad481ad8fc43138f11c97 (patch)
tree3a5aa13fa64814007db54728b8018638fcbb69b4 /Modules/readline.c
parentb32a7edb22805daa28f486271ca5052e1ad87633 (diff)
parentf6e9f47aa7a61507154d3d5f77b502c789c5b385 (diff)
downloadcpython-12eb2ab4907f6a3d06fad481ad8fc43138f11c97.zip
cpython-12eb2ab4907f6a3d06fad481ad8fc43138f11c97.tar.gz
cpython-12eb2ab4907f6a3d06fad481ad8fc43138f11c97.tar.bz2
Issue #15699: Merge readline fixup from 3.5
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 6930415..b1d6da3 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -78,10 +78,12 @@ on_completion_display_matches_hook(char **matches,
static char *completer_word_break_characters;
typedef struct {
+ /* Specify hook functions in Python */
PyObject *completion_display_matches_hook;
PyObject *startup_hook;
PyObject *pre_input_hook;
- PyObject *completer;
+
+ PyObject *completer; /* Specify a word completer in Python */
PyObject *begidx;
PyObject *endidx;
} readlinestate;
@@ -334,13 +336,6 @@ set_hook(const char *funcname, PyObject **hook_var, PyObject *args)
}
-/* Exported functions to specify hook functions in Python */
-
-
-#ifdef HAVE_RL_PRE_INPUT_HOOK
-
-#endif
-
static PyObject *
set_completion_display_matches_hook(PyObject *self, PyObject *args)
{
@@ -401,14 +396,6 @@ characters.");
#endif
-/* Exported function to specify a word completer in Python */
-
-
-
-
-
-
-
/* Get the completion type for the scope of the tab-completion */
static PyObject *
get_completion_type(PyObject *self, PyObject *noarg)