Mailing List Archive

CVS: python/dist/src/Modules readline.c,2.46,2.47
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv3568/Modules

Modified Files:
readline.c
Log Message:
Get rid of warnings due to changing to METH_NOARGS

Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.46
retrieving revision 2.47
diff -C2 -d -r2.46 -r2.47
*** readline.c 25 Mar 2002 20:46:46 -0000 2.46
--- readline.c 31 Mar 2002 16:13:39 -0000 2.47
***************
*** 414,418 ****
{
{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
! {"get_line_buffer", get_line_buffer,
METH_NOARGS, doc_get_line_buffer},
{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
--- 414,418 ----
{
{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
! {"get_line_buffer", (PyCFunction)get_line_buffer,
METH_NOARGS, doc_get_line_buffer},
{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
***************
*** 425,429 ****
{"get_history_item", get_history_item,
METH_VARARGS, doc_get_history_item},
! {"get_current_history_length", get_current_history_length,
METH_NOARGS, doc_get_current_history_length},
{"set_history_length", set_history_length,
--- 425,429 ----
{"get_history_item", get_history_item,
METH_VARARGS, doc_get_history_item},
! {"get_current_history_length", (PyCFunction)get_current_history_length,
METH_NOARGS, doc_get_current_history_length},
{"set_history_length", set_history_length,
***************
*** 432,442 ****
METH_VARARGS, get_history_length_doc},
{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! {"get_begidx", get_begidx, METH_NOARGS, doc_get_begidx},
! {"get_endidx", get_endidx, METH_NOARGS, doc_get_endidx},

{"set_completer_delims", set_completer_delims,
METH_VARARGS, doc_set_completer_delims},
{"add_history", py_add_history, METH_VARARGS, doc_add_history},
! {"get_completer_delims", get_completer_delims,
METH_NOARGS, doc_get_completer_delims},

--- 432,442 ----
METH_VARARGS, get_history_length_doc},
{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! {"get_begidx", (PyCFunction)get_begidx, METH_NOARGS, doc_get_begidx},
! {"get_endidx", (PyCFunction)get_endidx, METH_NOARGS, doc_get_endidx},

{"set_completer_delims", set_completer_delims,
METH_VARARGS, doc_set_completer_delims},
{"add_history", py_add_history, METH_VARARGS, doc_add_history},
! {"get_completer_delims", (PyCFunction)get_completer_delims,
METH_NOARGS, doc_get_completer_delims},