From 2452c14619fd14c1b7eba69eec0c7d32dbf56d86 Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 11 Dec 2002 00:12:17 +0000 Subject: Add rpmfts-py.[ch] bindings for fts(3) from rpmio. splint fiddles. CVS patchset: 5932 CVS date: 2002/12/11 00:12:17 --- python/rpmmi-py.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'python/rpmmi-py.c') diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index aff0091eb..48d65185e 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -86,8 +86,8 @@ rpmmi_iter(rpmmiObject * s) */ static PyObject * rpmmi_iternext(rpmmiObject * s) - /*@globals _Py_NoneStruct @*/ - /*@modifies s, _Py_NoneStruct @*/ + /*@globals rpmGlobalMacroContext @*/ + /*@modifies s, rpmGlobalMacroContext @*/ { Header h; @@ -102,8 +102,8 @@ rpmmi_iternext(rpmmiObject * s) */ static PyObject * rpmmi_Next(rpmmiObject * s, PyObject *args) - /*@globals _Py_NoneStruct @*/ - /*@modifies s, _Py_NoneStruct @*/ + /*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/ + /*@modifies s, rpmGlobalMacroContext, _Py_NoneStruct @*/ { PyObject * result; @@ -123,8 +123,7 @@ rpmmi_Next(rpmmiObject * s, PyObject *args) */ static PyObject * rpmmi_Instance(rpmmiObject * s, PyObject * args) - /*@globals _Py_NoneStruct @*/ - /*@modifies s, _Py_NoneStruct @*/ + /*@*/ { int rc = 0; @@ -141,8 +140,7 @@ rpmmi_Instance(rpmmiObject * s, PyObject * args) */ static PyObject * rpmmi_Count(rpmmiObject * s, PyObject * args) - /*@globals _Py_NoneStruct @*/ - /*@modifies s, _Py_NoneStruct @*/ + /*@*/ { int rc = 0; @@ -159,8 +157,8 @@ rpmmi_Count(rpmmiObject * s, PyObject * args) */ static PyObject * rpmmi_Pattern(rpmmiObject * s, PyObject * args) - /*@globals _Py_NoneStruct @*/ - /*@modifies s, _Py_NoneStruct @*/ + /*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/ + /*@modifies s, rpmGlobalMacroContext, _Py_NoneStruct @*/ { PyObject *TagN = NULL; int type; @@ -204,10 +202,11 @@ static struct PyMethodDef rpmmi_methods[] = { /** \ingroup python */ static void rpmmi_dealloc(/*@only@*/ /*@null@*/ rpmmiObject * s) - /*@modifies s @*/ + /*@globals rpmGlobalMacroContext @*/ + /*@modifies s, rpmGlobalMacroContext @*/ { if (s) { - if (s->mi) s->mi = rpmdbFreeIterator(s->mi); + s->mi = rpmdbFreeIterator(s->mi); PyObject_Del(s); } } -- cgit v1.2.3