From: Martin Panter Date: Tue, 22 Mar 2016 02:19:29 +0000 (+0000) Subject: Issue #15699: Reunite comment with variable X-Git-Tag: v3.6.0a1~413^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6e9f47aa7a61507154d3d5f77b502c789c5b385;p=thirdparty%2FPython%2Fcpython.git Issue #15699: Reunite comment with variable --- diff --git a/Modules/readline.c b/Modules/readline.c index a6581b0b728e..1fee935d34d7 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)