rpm  5.4.14
Macros | Functions | Variables
rpmps-py.c File Reference
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "rpmdebug-py.c"
#include "debug.h"
Include dependency graph for rpmps-py.c:

Go to the source code of this file.

Macros

#define _RPMPS_INTERNAL   /* XXX rpmps needs iterator */
 
#define PERMIT_RPMPS_SUBSCRIPT   /* XXX likely buggy */
 

Functions

 Py_INCREF (s)
 
 return (PyObject *)
 
 if (s)
 
 rpmpsPrint (fp, s->ps)
 
static PyObject * rpmps_getattro (PyObject *o, PyObject *n)
 
static int rpmps_setattro (PyObject *o, PyObject *n, PyObject *v)
 
 fprintf (stderr,"*** rpmps_length(%p) rc %d\n", s, rc)
 
 if (!PyInt_Check(key))
 
 while ((i=rpmpsNextIterator(psi)) >=0)
 
 if (!PyArg_Parse(key,"i:ass_sub",&ix))
 
 if ()
 
 if (!PyArg_ParseTuple(value,"ssOiisN:rpmps value tuple",&p->pkgNEVR,&p->altNEVR,&p->key,&p->type,&p->ignoreProblem,&p->str1,&ulong1))
 
 if (ix >=ps->numProblems)
 
static int rpmps_init (rpmpsObject *s, PyObject *args, PyObject *kwds)
 
static void rpmps_free (rpmpsObject *s)
 
static PyObject * rpmps_alloc (PyTypeObject *subtype, int nitems)
 
static PyObject * rpmps_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
 
rpmps psFromPs (rpmpsObject *s)
 
rpmpsObjectrpmps_Wrap (rpmps ps)
 
Class: Rpmps
static PyObject * rpmps_Debug (rpmpsObject *s, PyObject *args, PyObject *kwds)
 
static int rpmps_Append (rpmpsObject *s, PyObject *value)
 

Variables

static PyObject *s psi = rpmpsInitIterator(s->ps)
 
static struct PyMethodDef rpmps_methods []
 
static void
 
static int
 
 return
 
 rc = rpmpsNumProblems(s->ps)
 
int ix = (int) PyInt_AsLong(key)
 
int i
 
return result
 
 else
 
unsigned long ulong1 = p->ulong1
 
op pkgNEVR = _free(op->pkgNEVR)
 
op altNEVR = _free(op->altNEVR)
 
op str1 = _free(op->str1)
 
op = *p
 
static PyMappingMethods rpmps_as_mapping
 
static char rpmps_doc []
 
PyTypeObject rpmps_Type
 

Macro Definition Documentation

#define _RPMPS_INTERNAL   /* XXX rpmps needs iterator */

Definition at line 12 of file rpmps-py.c.

#define PERMIT_RPMPS_SUBSCRIPT   /* XXX likely buggy */

Definition at line 201 of file rpmps-py.c.

Function Documentation

fprintf ( stderr  ,
"*** rpmps_length(%p) rc %d\n ,
s  ,
rc   
)
if ( s  )

Definition at line 122 of file rpmps-py.c.

References rpmpsObject_s::ps, PyObject_Del(), and rpmpsFree().

if ( PyInt_Checkkey)

Definition at line 177 of file rpmps-py.c.

References _rpmps_debug, fprintf(), and NULL.

if ( PyArg_Parsekey,"i:ass_sub",&ix)

Definition at line 210 of file rpmps-py.c.

if ( )

Definition at line 216 of file rpmps-py.c.

if ( PyArg_ParseTuplevalue,"ssOiisN:rpmps value tuple",&p->pkgNEVR,&p->altNEVR,&p->key,&p->type,&p->ignoreProblem,&p->str1,&ulong1)

Definition at line 242 of file rpmps-py.c.

if ( ix >=ps->  numProblems)

Definition at line 251 of file rpmps-py.c.

References NULL, rpmpsObject_s::ps, and rpmpsAppend().

Py_INCREF ( s  )
return ( PyObject *  )

Definition at line 32 of file rpmps-py.c.

static int rpmps_Append ( rpmpsObject s,
PyObject *  value 
)
static

Definition at line 82 of file rpmps-py.c.

References altNEVR, key, NULL, pkgNEVR, rpmpsObject_s::ps, rpmpsAppend(), str1, type, and ulong1.

static PyObject* rpmps_Debug ( rpmpsObject s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 67 of file rpmps-py.c.

References _rpmps_debug, kwlist, NULL, Py_INCREF(), and Py_None.

static PyObject* rpmps_getattro ( PyObject *  o,
PyObject *  n 
)
static

Definition at line 140 of file rpmps-py.c.

References _rpmps_debug, and fprintf().

static int rpmps_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
)
static

Definition at line 148 of file rpmps-py.c.

References _rpmps_debug, and fprintf().

rpmpsPrint ( fp  ,
s->  ps 
)
while ( (i=rpmpsNextIterator(psi)) >=  0)

Definition at line 188 of file rpmps-py.c.

References _rpmps_debug, fprintf(), Py_BuildValue(), rpmProblemString(), and rpmpsProblem().

Variable Documentation

p altNEVR = _free(op->altNEVR)

Definition at line 259 of file rpmps-py.c.

Referenced by rpmProblemString(), rpmps_Append(), rpmps_push(), and verifyDependencies().

else
Initial value:
{
rpmProblem p = memset(alloca(sizeof(*p)), 0, sizeof(*p))
char * alloca()
memset(_r, 0, sizeof(*_r))
char * p
Definition: macro.c:413
struct rpmProblem_s * rpmProblem
Raw data for an element of a problem set.
Definition: rpmps.h:20

Definition at line 238 of file rpmps-py.c.

int i

Definition at line 175 of file rpmps-py.c.

int
static
Initial value:
{
fprintf(stderr, "*** rpmps_print(%p,%p,%x)\n", s, (void *)fp, flags)
fprintf(stderr,"--> %s(%p,%p,%p) sig %p sigp %p\n", __FUNCTION__, dig, t, rsactx, sig, sigp)
const char * s
Definition: poptALL.c:734
int flags
Definition: fnmatch.c:282

Definition at line 132 of file rpmps-py.c.

int ix = (int) PyInt_AsLong(key)
* op = *p
p pkgNEVR = _free(op->pkgNEVR)
static PyObject *rpmpsi psi = rpmpsInitIterator(s->ps)

Definition at line 30 of file rpmps-py.c.

Referenced by if(), rpmpsInitIterator(), rpmpsPrint(), rpmtsSanityCheck(), and verifyDependencies().

Definition at line 161 of file rpmps-py.c.

return result

Definition at line 198 of file rpmps-py.c.

return

Definition at line 137 of file rpmps-py.c.

PyMappingMethods rpmps_as_mapping
static
Initial value:
= {
(lenfunc) rpmps_length,
(binaryfunc) rpmps_subscript,
(objobjargproc) rpmps_ass_sub,
}

Definition at line 275 of file rpmps-py.c.

char rpmps_doc[]
static
Initial value:
=
""

Definition at line 349 of file rpmps-py.c.

struct PyMethodDef rpmps_methods[]
static
Initial value:
= {
{"Debug", (PyCFunction)rpmps_Debug, METH_VARARGS|METH_KEYWORDS,
NULL},
{"Append", (PyCFunction)rpmps_Append, METH_VARARGS|METH_KEYWORDS,
NULL},
{NULL, NULL}
}
static PyObject * rpmps_Debug(rpmpsObject *s, PyObject *args, PyObject *kwds)
Definition: rpmps-py.c:67
static int rpmps_Append(rpmpsObject *s, PyObject *value)
Definition: rpmps-py.c:82
return NULL
Definition: poptALL.c:613

Definition at line 105 of file rpmps-py.c.

p str1 = _free(op->str1)

Definition at line 260 of file rpmps-py.c.

Referenced by rpmProblemString(), and rpmps_Append().

unsigned long ulong1 = p->ulong1

Definition at line 240 of file rpmps-py.c.

Referenced by rpmps_Append(), and rpmpsAppend().

void
static
Initial value:
{
fprintf(stderr, "*** rpmps_dealloc(%p)\n", s)
fprintf(stderr,"--> %s(%p,%p,%p) sig %p sigp %p\n", __FUNCTION__, dig, t, rsactx, sig, sigp)
const char * s
Definition: poptALL.c:734

Definition at line 119 of file rpmps-py.c.