More python method pointer type fixes.

This commit is contained in:
Panu Matilainen 2007-07-10 15:25:32 +03:00
parent c12c54dca8
commit 220c0fd514
5 changed files with 5 additions and 5 deletions

View File

@ -641,7 +641,7 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
*/
/*@unchecked@*/ /*@observer@*/
static PyMappingMethods hdr_as_mapping = {
(inquiry) 0, /* mp_length */
(lenfunc) 0, /* mp_length */
(binaryfunc) hdr_subscript, /* mp_subscript */
(objobjargproc)0, /* mp_ass_subscript */
};

View File

@ -196,7 +196,7 @@ rpmdb_subscript(rpmdbObject * s, PyObject * key)
*/
/*@unchecked@*/ /*@observer@*/
static PyMappingMethods rpmdb_as_mapping = {
(inquiry) rpmdb_length, /* mp_length */
(lenfunc) rpmdb_length, /* mp_length */
(binaryfunc) rpmdb_subscript, /* mp_subscript */
(objobjargproc)0, /* mp_ass_subscript */
};

View File

@ -506,7 +506,7 @@ rpmds_subscript(rpmdsObject * s, PyObject * key)
}
static PyMappingMethods rpmds_as_mapping = {
(inquiry) rpmds_length, /* mp_length */
(lenfunc) rpmds_length, /* mp_length */
(binaryfunc) rpmds_subscript, /* mp_subscript */
(objobjargproc)0, /* mp_ass_subscript */
};

View File

@ -454,7 +454,7 @@ rpmfi_subscript(rpmfiObject * s, PyObject * key)
/*@unchecked@*/ /*@observer@*/
static PyMappingMethods rpmfi_as_mapping = {
(inquiry) rpmfi_length, /* mp_length */
(lenfunc) rpmfi_length, /* mp_length */
(binaryfunc) rpmfi_subscript, /* mp_subscript */
(objobjargproc)0, /* mp_ass_subscript */
};

View File

@ -232,7 +232,7 @@ fprintf(stderr, "*** rpmps_ass_sub(%p[%s],%p[%s],%p[%s]) ps %p[%d:%d:%d]\n", s,
}
static PyMappingMethods rpmps_as_mapping = {
(inquiry) rpmps_length, /* mp_length */
(lenfunc) rpmps_length, /* mp_length */
(binaryfunc) rpmps_subscript, /* mp_subscript */
(objobjargproc) rpmps_ass_sub, /* mp_ass_subscript */
};