[Python-checkins] python/dist/src/Modules readline.c,2.56,2.57
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 07 Jan 2003 12:04:23 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv11303
Modified Files:
readline.c
Log Message:
A few more whitespace normalizations.
Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.56
retrieving revision 2.57
diff -C2 -d -r2.56 -r2.57
*** readline.c 7 Jan 2003 20:01:29 -0000 2.56
--- readline.c 7 Jan 2003 20:04:12 -0000 2.57
***************
*** 362,366 ****
return NULL;
if ((hist_ent = history_get(idx)))
! return PyString_FromString(hist_ent->line);
else {
Py_INCREF(Py_None);
--- 362,366 ----
return NULL;
if ((hist_ent = history_get(idx)))
! return PyString_FromString(hist_ent->line);
else {
Py_INCREF(Py_None);
***************
*** 478,481 ****
--- 478,482 ----
};
+
/* C function to call the Python hooks. */
***************
*** 524,527 ****
--- 525,529 ----
#endif
+
/* C function to call the Python completer. */
***************
*** 577,580 ****
--- 579,583 ----
return completion_matches(text, *on_completion);
}
+
/* Helper to initialize GNU readline properly. */