diff options
author | jbj <devnull@localhost> | 2002-12-11 00:12:17 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-11 00:12:17 +0000 |
commit | 2452c14619fd14c1b7eba69eec0c7d32dbf56d86 (patch) | |
tree | f53843b4b7c7ff962b379ed65a17387ebc0ef2be /python/rpmmi-py.c | |
parent | fe6043016c84107132bd0dc80ef454d2c81342b7 (diff) | |
download | librpm-tizen-2452c14619fd14c1b7eba69eec0c7d32dbf56d86.tar.gz librpm-tizen-2452c14619fd14c1b7eba69eec0c7d32dbf56d86.tar.bz2 librpm-tizen-2452c14619fd14c1b7eba69eec0c7d32dbf56d86.zip |
Add rpmfts-py.[ch] bindings for fts(3) from rpmio.
splint fiddles.
CVS patchset: 5932
CVS date: 2002/12/11 00:12:17
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r-- | python/rpmmi-py.c | 23 |
1 files changed, 11 insertions, 12 deletions
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); } } |