Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6e9f47

Browse files
committed
Issue #15699: Reunite comment with variable
1 parent 063d48d commit f6e9f47

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

Modules/readline.c

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ on_completion_display_matches_hook(char **matches,
7878
static char *completer_word_break_characters;
7979

8080
typedef struct {
81+
/* Specify hook functions in Python */
8182
PyObject *completion_display_matches_hook;
8283
PyObject *startup_hook;
8384
PyObject *pre_input_hook;
84-
PyObject *completer;
85+
86+
PyObject *completer; /* Specify a word completer in Python */
8587
PyObject *begidx;
8688
PyObject *endidx;
8789
} readlinestate;
@@ -336,13 +338,6 @@ set_hook(const char *funcname, PyObject **hook_var, PyObject *args)
336338
}
337339

338340

339-
/* Exported functions to specify hook functions in Python */
340-
341-
342-
#ifdef HAVE_RL_PRE_INPUT_HOOK
343-
344-
#endif
345-
346341
static PyObject *
347342
set_completion_display_matches_hook(PyObject *self, PyObject *args)
348343
{
@@ -403,14 +398,6 @@ characters.");
403398
#endif
404399

405400

406-
/* Exported function to specify a word completer in Python */
407-
408-
409-
410-
411-
412-
413-
414401
/* Get the completion type for the scope of the tab-completion */
415402
static PyObject *
416403
get_completion_type(PyObject *self, PyObject *noarg)

0 commit comments

Comments
 (0)