summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-03-22 02:19:29 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-03-22 02:19:29 +0000
commit4b52661e121d12acf4db7f2842e72b14f1fc4f60 (patch)
tree683d474432c083ad5e0eabf4661053fc4fe274ba /Modules
parent0b88d72ce9e6a11a4e8d6d28a38bb04b595a9a11 (diff)
downloadcpython-4b52661e121d12acf4db7f2842e72b14f1fc4f60.tar.gz
Issue #15699: Reunite comment with variable
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index a6581b0b72..1fee935d34 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;
@@ -336,13 +338,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)
{
@@ -403,14 +398,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)