[Python-checkins] CVS: python/dist/src/Modules readline.c,2.20,2.21
Peter Schneider-Kamp
python-dev@python.org
2000年7月10日 02:53:14 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6009
Modified Files:
readline.c
Log Message:
ANSI-fication
Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** readline.c 2000年07月09日 03:09:55 2.20
--- readline.c 2000年07月10日 09:53:12 2.21
***************
*** 46,52 ****
static PyObject *
! parse_and_bind(self, args)
! PyObject *self;
! PyObject *args;
{
char *s, *copy;
--- 46,50 ----
static PyObject *
! parse_and_bind(PyObject *self, PyObject *args)
{
char *s, *copy;
***************
*** 74,80 ****
static PyObject *
! read_init_file(self, args)
! PyObject *self;
! PyObject *args;
{
char *s = NULL;
--- 72,76 ----
static PyObject *
! read_init_file(PyObject *self, PyObject *args)
{
char *s = NULL;
***************
*** 98,104 ****
static PyObject *
! read_history_file(self, args)
! PyObject *self;
! PyObject *args;
{
char *s = NULL;
--- 94,98 ----
static PyObject *
! read_history_file(PyObject *self, PyObject *args)
{
char *s = NULL;
***************
*** 122,128 ****
static PyObject *
! write_history_file(self, args)
! PyObject *self;
! PyObject *args;
{
char *s = NULL;
--- 116,120 ----
static PyObject *
! write_history_file(PyObject *self, PyObject *args)
{
char *s = NULL;
***************
*** 153,159 ****
/* get the beginning index for the scope of the tab-completion */
static PyObject *
! get_begidx(self, args)
! PyObject *self;
! PyObject *args;
{
if(!PyArg_NoArgs(args)) {
--- 145,149 ----
/* get the beginning index for the scope of the tab-completion */
static PyObject *
! get_begidx(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
***************
*** 170,176 ****
/* get the ending index for the scope of the tab-completion */
static PyObject *
! get_endidx(self, args)
! PyObject *self;
! PyObject *args;
{
if(!PyArg_NoArgs(args)) {
--- 160,164 ----
/* get the ending index for the scope of the tab-completion */
static PyObject *
! get_endidx(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
***************
*** 189,195 ****
static PyObject *
! set_completer_delims(self, args)
! PyObject *self;
! PyObject *args;
{
char *break_chars;
--- 177,181 ----
static PyObject *
! set_completer_delims(PyObject *self, PyObject *args)
{
char *break_chars;
***************
*** 212,218 ****
static PyObject *
! get_completer_delims(self, args)
! PyObject *self;
! PyObject *args;
{
if(!PyArg_NoArgs(args)) {
--- 198,202 ----
static PyObject *
! get_completer_delims(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
***************
*** 227,233 ****
static PyObject *
! set_completer(self, args)
! PyObject *self;
! PyObject *args;
{
PyObject *function = Py_None;
--- 211,215 ----
static PyObject *
! set_completer(PyObject *self, PyObject *args)
{
PyObject *function = Py_None;
***************
*** 266,272 ****
static PyObject *
! get_line_buffer(self, args)
! PyObject *self;
! PyObject *args;
{
if (!PyArg_NoArgs(args))
--- 248,252 ----
static PyObject *
! get_line_buffer(PyObject *self, PyObject *args)
{
if (!PyArg_NoArgs(args))
***************
*** 283,289 ****
static PyObject *
! insert_text(self, args)
! PyObject *self;
! PyObject *args;
{
char *s;
--- 263,267 ----
static PyObject *
! insert_text(PyObject *self, PyObject *args)
{
char *s;
***************
*** 326,332 ****
static char *
! on_completion(text, state)
! char *text;
! int state;
{
char *result = NULL;
--- 304,308 ----
static char *
! on_completion(char *text, int state)
{
char *result = NULL;
***************
*** 367,374 ****
char **
! flex_complete(text, start, end)
! char *text;
! int start;
! int end;
{
Py_XDECREF(begidx);
--- 343,347 ----
char **
! flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
***************
*** 414,419 ****
/* ARGSUSED */
static RETSIGTYPE
! onintr(sig)
! int sig;
{
longjmp(jbuf, 1);
--- 387,391 ----
/* ARGSUSED */
static RETSIGTYPE
! onintr(int sig)
{
longjmp(jbuf, 1);
***************
*** 424,429 ****
static char *
! call_readline(prompt)
! char *prompt;
{
size_t n;
--- 396,400 ----
static char *
! call_readline(char *prompt)
{
size_t n;