/* XXX avoid -lrpmbuild linkage. */
int _rpmfc_debug;
-extern int _rpmps_debug;
-
extern int _rpmsq_debug;
extern int _rpmte_debug;
NULL, NULL},
{ "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
N_("debug rpmio I/O"), NULL},
- { "rpmpsdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmps_debug, -1,
- NULL, NULL},
{ "rpmsqdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmsq_debug, -1,
NULL, NULL},
{ "rpmtedebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmte_debug, -1,
};
-int _rpmps_debug = 0;
-
-rpmps rpmpsUnlink(rpmps ps, const char * msg)
+rpmps rpmpsUnlink(rpmps ps)
{
if (ps) {
ps->nrefs--;
return NULL;
}
-rpmps rpmpsLink(rpmps ps, const char * msg)
+rpmps rpmpsLink(rpmps ps)
{
if (ps) {
ps->nrefs++;
rpmpsi psi = NULL;
if (ps != NULL) {
psi = xcalloc(1, sizeof(*psi));
- psi->ps = rpmpsLink(ps, RPMDBG_M("rpmpsInitIterator"));
+ psi->ps = rpmpsLink(ps);
psi->ix = -1;
}
return psi;
rpmpsi rpmpsFreeIterator(rpmpsi psi)
{
if (psi != NULL) {
- rpmpsUnlink(psi->ps, RPMDBG_M("rpmpsFreeIterator"));
+ rpmpsUnlink(psi->ps);
free(psi);
psi = NULL;
}
rpmps rpmpsCreate(void)
{
rpmps ps = xcalloc(1, sizeof(*ps));
- return rpmpsLink(ps, RPMDBG_M("rpmpsCreate"));
+ return rpmpsLink(ps);
}
rpmps rpmpsFree(rpmps ps)
{
if (ps == NULL) return NULL;
if (ps->nrefs > 1) {
- return rpmpsUnlink(ps, RPMDBG_M("rpmpsFree"));
+ return rpmpsUnlink(ps);
}
if (ps->probs) {
extern "C" {
#endif
-extern int _rpmps_debug;
-
/** \ingroup rpmps
* @todo Generalize filter mechanism.
*/
/** \ingroup rpmps
* Unreference a problem set instance.
* @param ps problem set
- * @param msg
* @return problem set
*/
-rpmps rpmpsUnlink (rpmps ps,
- const char * msg);
+rpmps rpmpsUnlink (rpmps ps);
/** \ingroup rpmps
* Reference a problem set instance.
* @param ps transaction set
- * @param msg
* @return new transaction set reference
*/
-rpmps rpmpsLink (rpmps ps, const char * msg);
+rpmps rpmpsLink (rpmps ps);
/** \ingroup rpmps
* Return number of problems in set.
rpmps rpmteProblems(rpmte te)
{
- return (te != NULL) ? rpmpsLink(te->probs, RPMDBG_M("rpmteProbs")) : NULL;
+ return (te != NULL) ? rpmpsLink(te->probs) : NULL;
}
void rpmteCleanProblems(rpmte te)