@@ -413,7 +413,7 @@ contents of the line buffer.\
413413static struct PyMethodDef readline_methods [] =
414414{
415415 {"parse_and_bind" , parse_and_bind , METH_VARARGS , doc_parse_and_bind },
416- {"get_line_buffer" , get_line_buffer ,
416+ {"get_line_buffer" , ( PyCFunction ) get_line_buffer ,
417417 METH_NOARGS , doc_get_line_buffer },
418418 {"insert_text" , insert_text , METH_VARARGS , doc_insert_text },
419419 {"redisplay" , (PyCFunction )redisplay , METH_NOARGS , doc_redisplay },
@@ -424,20 +424,20 @@ static struct PyMethodDef readline_methods[] =
424424 METH_VARARGS , doc_write_history_file },
425425 {"get_history_item" , get_history_item ,
426426 METH_VARARGS , doc_get_history_item },
427- {"get_current_history_length" , get_current_history_length ,
427+ {"get_current_history_length" , ( PyCFunction ) get_current_history_length ,
428428 METH_NOARGS , doc_get_current_history_length },
429429 {"set_history_length" , set_history_length ,
430430 METH_VARARGS , set_history_length_doc },
431431 {"get_history_length" , get_history_length ,
432432 METH_VARARGS , get_history_length_doc },
433433 {"set_completer" , set_completer , METH_VARARGS , doc_set_completer },
434- {"get_begidx" , get_begidx , METH_NOARGS , doc_get_begidx },
435- {"get_endidx" , get_endidx , METH_NOARGS , doc_get_endidx },
434+ {"get_begidx" , ( PyCFunction ) get_begidx , METH_NOARGS , doc_get_begidx },
435+ {"get_endidx" , ( PyCFunction ) get_endidx , METH_NOARGS , doc_get_endidx },
436436
437437 {"set_completer_delims" , set_completer_delims ,
438438 METH_VARARGS , doc_set_completer_delims },
439439 {"add_history" , py_add_history , METH_VARARGS , doc_add_history },
440- {"get_completer_delims" , get_completer_delims ,
440+ {"get_completer_delims" , ( PyCFunction ) get_completer_delims ,
441441 METH_NOARGS , doc_get_completer_delims },
442442
443443 {"set_startup_hook" , set_startup_hook , METH_VARARGS , doc_set_startup_hook },
0 commit comments