-file py/python2.2-2.2.1/debian/python2.2/usr/bin/python2.2
-dir py/python2.2-2.2.1/builddir
-cd build/lib.linux-i686-2.2
+file py/python2.4-2.4+2.4.1rc2/debian/python2.4/usr/bin/python2.4
+dir py/python2.4-2.4+2.4.1rc2
set env LD_LIBRARY_PATH=/home/mdw/src/catacomb/deb-build/.libs
+set env PYTHONPATH=/usr/lib/python2.4/lib-dynload
+cd build/lib.linux-i686-2.4
+set args pwsafe list
## Makefile
-PYTHON = python2.2
+PYTHON = python2.4
prefix=/usr/local
all: setup.py
sizeof(keysz_pyobj), /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
- _PyObject_Del, /* @tp_dealloc@ */
+ 0, /* @tp_dealloc@ */
0, /* @tp_print@ */
0, /* @tp_getattr@ */
0, /* @tp_setattr@ */
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
sizeof(keysz_pyobj), /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
- _PyObject_Del, /* @tp_dealloc@ */
+ 0, /* @tp_dealloc@ */
0, /* @tp_print@ */
0, /* @tp_getattr@ */
0, /* @tp_setattr@ */
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
keyszany_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
sizeof(keyszrange_pyobj), /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
- _PyObject_Del, /* @tp_dealloc@ */
+ 0, /* @tp_dealloc@ */
0, /* @tp_print@ */
0, /* @tp_getattr@ */
0, /* @tp_setattr@ */
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
keyszrange_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
sizeof(keyszset_pyobj), /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
- _PyObject_Del, /* @tp_dealloc@ */
+ 0, /* @tp_dealloc@ */
0, /* @tp_print@ */
0, /* @tp_getattr@ */
0, /* @tp_setattr@ */
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
keyszset_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE);
g->ty.tp_alloc = PyType_GenericAlloc;
- g->ty.tp_free = _PyObject_Del;
+ g->ty.tp_free = 0;
g->ty.tp_new = gcipher_pynew;
PyType_Ready(&g->ty);
return ((PyObject *)g);
if (GCIPHER_F(me) & f_freeme)
GC_DESTROY(GCIPHER_C(me));
Py_DECREF(me->ob_type);
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *gccget_name(PyObject *me, void *hunoz)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE);
g->ty.tp_alloc = PyType_GenericAlloc;
- g->ty.tp_free = _PyObject_Del;
+ g->ty.tp_free = 0;
g->ty.tp_new = ghash_pynew;
PyType_Ready(&g->ty);
return ((PyObject *)g);
if (GHASH_F(me) & f_freeme)
GH_DESTROY(GHASH_H(me));
Py_DECREF(me->ob_type);
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *gchget_name(PyObject *me, void *hunoz)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE);
g->ty.tp_alloc = PyType_GenericAlloc;
- g->ty.tp_free = _PyObject_Del;
+ g->ty.tp_free = 0;
g->ty.tp_new = gmac_pynew;
PyType_Ready(&g->ty);
return ((PyObject *)g);
Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE);
g->ty.tp_alloc = PyType_GenericAlloc;
- g->ty.tp_free = _PyObject_Del;
+ g->ty.tp_free = 0;
g->ty.tp_new = gmhash_pynew;
PyType_Ready(&g->ty);
g->m = m;
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
#ifdef CACHE_HASH
x->ob_shash = -1;
#endif
-#ifdef INTERN_STRINGS
- x->ob_sinterned = NULL;
-#endif
+ x->ob_sstate = SSTATE_NOT_INTERNED;
return ((PyObject *)x);
}
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
0, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
MODULES(DO)
#undef DO
+#define FREEOBJ(obj) \
+ (((PyObject *)(obj))->ob_type->tp_free((PyObject *)(obj)))
+
/*----- Bytestrings -------------------------------------------------------*/
PyTypeObject *bytestring_pyobj;
{
EC_DESTROY(ECPT_P(x));
Py_DECREF(ECPT_COBJ(x));
- PyObject_DEL(x);
+ FREEOBJ(x);
}
static PyObject *ecpt_pymul(PyObject *x, PyObject *y)
return (ecptxl_1(c, p, x));
}
-static int ecpt_fromobjects(PyObject *cc, ec *p,
- PyObject *x, PyObject *y, PyObject *z)
-{
- ec_curve *c = 0;
-
- if (cc && PyType_IsSubtype((PyTypeObject *)cc, ecptcurve_pytype))
- c = ECCURVE_C(cc);
- return (ecptxl(c, p, x, y, z));
-}
-
static PyObject *ecptnc_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
{
PyObject *x = 0, *y = 0, *z = 0;
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecptnc_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
#define METHNAME(func) epmeth_##func
METH (toraw, "X.toraw() -> BIN")
METH (dbl, "X.dbl() -> X + X")
+ METH (oncurvep, "X.oncurvep() -> BOOL")
#undef METHNAME
{ 0 }
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_CHECKTYPES |
Py_TPFLAGS_HEAPTYPE);
cobj->ty.tp_alloc = PyType_GenericAlloc;
- cobj->ty.tp_free =_PyObject_Del;
+ cobj->ty.tp_free = 0;
cobj->ty.tp_new = ecpt_pynew;
PyType_Ready(&cobj->ty);
return ((PyObject *)cobj);
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecprimecurve_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecprimeprojcurve_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecbincurve_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecbinprojcurve_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
MP_DROP(ei->r);
MP_DROP(ei->h);
Py_DECREF(ECINFO_COBJ(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *ecinfo_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecinfo_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_CHECKTYPES |
Py_TPFLAGS_HEAPTYPE);
fobj->ty.tp_alloc = PyType_GenericAlloc;
- fobj->ty.tp_free = _PyObject_Del;
+ fobj->ty.tp_free = 0;
fobj->ty.tp_new = fe_pynew;
PyType_Ready(&fobj->ty);
return ((PyObject *)fobj);
{
Py_DECREF(FE_FOBJ(me));
MP_DROP(FE_X(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
#define UNOP(name, check) \
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
primefield_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
niceprimefield_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
binpolyfield_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
binnormfield_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
mp_drop(FGINFO_DP(me)->p);
mp_drop(FGINFO_DP(me)->q);
mp_drop(FGINFO_DP(me)->g);
- _PyObject_Del(me);
+ FREEOBJ(me);
}
static PyObject *meth__DHInfo_generate(PyObject *me,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
fginfo_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
fginfo_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
Py_TPFLAGS_CHECKTYPES |
Py_TPFLAGS_HEAPTYPE);
gobj->ty.tp_alloc = PyType_GenericAlloc;
- gobj->ty.tp_free =_PyObject_Del;
+ gobj->ty.tp_free = 0;
gobj->ty.tp_new = ge_pynew;
PyType_Ready(&gobj->ty);
return ((PyObject *)gobj);
{
G_DESTROY(GE_G(me), GE_X(me));
Py_DECREF(GE_GOBJ(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static void group_pydealloc(PyObject *me)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
primegroup_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
bingroup_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
ecgroup_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mp_pydealloc(PyObject *o)
{
MP_DROP(MP_X(o));
- PyObject_DEL(o);
+ FREEOBJ(o);
}
static PyObject *mp_pyrepr(PyObject *o)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mp_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mpmont_pydealloc(PyObject *me)
{
mpmont_destroy(MPMONT_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *mpmont_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpmont_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mpbarrett_pydealloc(PyObject *me)
{
mpbarrett_destroy(MPBARRETT_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *mpbarrett_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpbarrett_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mpreduce_pydealloc(PyObject *me)
{
mpreduce_destroy(MPREDUCE_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *mpreduce_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpreduce_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpcrt_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gf_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void gfreduce_pydealloc(PyObject *me)
{
gfreduce_destroy(GFREDUCE_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *gfreduce_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gfreduce_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
goto end;
gg = PyObject_New(gfn_pyobj, ty);
if (gfn_create(p, beta, &gg->ntop, &gg->pton)) {
- PyObject_DEL(gg);
+ FREEOBJ(gg);
gg = 0;
VALERR("can't invert transformation matrix");
}
{
gfn_destroy(GFN_PTON(me));
gfn_destroy(GFN_NTOP(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyGetSetDef gfn_pygetset[] = {
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gfn_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
#define PIXIE_PYCHECK(o) PyObject_TypeCheck((o), pixie_pytype)
#define PIXIE_FD(o) (((pixie_pyobj *)(o))->fd)
+#ifdef WANT_CONVPIXIE
static int convpixie(PyObject *o, void *p)
{
if (!PIXIE_PYCHECK(o))
end:
return (0);
}
+#endif
static PyObject *pixie_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
{
static void pixie_pydealloc(PyObject *me)
{
close(PIXIE_FD(me));
- PyObject_DEL(me);
-
+ FREEOBJ(me);
}
static PyObject *pixmeth_read(PyObject *me, PyObject *arg, PyObject *kw)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
pixie_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
}
static void pfilt_pydealloc(PyObject *me)
- { pfilt_destroy(PFILT_F(me)); PyObject_DEL(me); }
+ { pfilt_destroy(PFILT_F(me)); FREEOBJ(me); }
static PyObject *pfmeth_step(PyObject *me, PyObject *arg)
{
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
pfilt_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void rabin_pydealloc(PyObject *me)
{
rabin_destroy(RABIN_R(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *rmeth_test(PyObject *me, PyObject *arg)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
rabin_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static CONVFUNC(pgevent, pgen_event *, PGEVENT_EV)
static void pgevent_kill(PyObject *me) { PGEVENT_EV(me) = 0; }
-static void pgevent_pydealloc(PyObject *me) { PyObject_DEL(me); }
+static void pgevent_pydealloc(PyObject *me) { FREEOBJ(me); }
#define PGEVENT_CHECK(me) do { \
if (!PGEVENT_EV(me)) { \
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
sizeof(pgev_pyobj), /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
- _PyObject_Del, /* @tp_dealloc@ */
+ 0, /* @tp_dealloc@ */
0, /* @tp_print@ */
0, /* @tp_getattr@ */
0, /* @tp_setattr@ */
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
pgstep_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void pgjump_pydealloc(PyObject *me)
{
Py_DECREF(PGJUMP_FOBJ(me));
- _PyObject_Del(me);
+ FREEOBJ(me);
}
static PyObject *pjget_jump(PyObject *me, void *hunoz)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
pgjump_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
pgtest_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
dsa_pyobj *g = (dsa_pyobj *)me;
Py_DECREF(g->G); Py_DECREF(g->u); Py_DECREF(g->p);
Py_DECREF(g->rng); Py_DECREF(g->hash);
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *dsa_setup(PyTypeObject *ty, PyObject *G, PyObject *u,
rng = g->rng; Py_INCREF(rng); g->hash = hash; Py_INCREF(hash);
return ((PyObject *)g);
end:
- PyObject_DEL(g);
+ FREEOBJ(g);
return (0);
}
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
dsapub_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
dsapriv_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
kcdsapub_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
kcdsapriv_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
{
rsa_pubdestroy(RSA_PUBCTX(me));
rsa_pubfree(RSA_PUB(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *rsaget_n(PyObject *me, void *hunoz)
rsa_privdestroy(RSA_PRIVCTX(me));
rsa_privfree(RSA_PRIV(me));
Py_DECREF(RSA_RNG(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *rsaget_d(PyObject *me, void *hunoz)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
rsapub_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
rsapriv_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
#! /usr/bin/python2.2
+# -*-python-*-
import catacomb as C
import gdbm, struct
from os import environ
from fnmatch import fnmatch
-file = '%s/.pwsafe' % environ['HOME']
+if 'PWSAFE' in environ:
+ file = environ['PWSAFE']
+else:
+ file = '%s/.pwsafe' % environ['HOME']
class DecryptError (Exception):
pass
pptag = av[0]
C.Pixie().set(pptag, pw[tag])
+def cmd_del(av):
+ if len(av) != 1:
+ return 1
+ pw = PW(file, 'w')
+ tag = av[0]
+ del pw[tag]
+
def asciip(s):
for ch in s:
if ch < ' ' or ch > '~': return False
'changepp' : [cmd_changepp, ''],
'copy' : [cmd_copy, 'DEST-FILE [GLOB-PATTERN]'],
'to-pixie' : [cmd_topixie, 'TAG [PIXIE-TAG]'],
+ 'delete' : [cmd_del, 'TAG'],
'dump' : [cmd_dump, '']}
def version():
grand_pyobj *g = (grand_pyobj *)me;
if (g->f & f_freeme)
GR_DESTROY(g->r);
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *grget_name(PyObject *me, void *hunoz)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
abstract_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
lcrand_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
fibrand_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
truerand_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
sslprf_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
tlsdx_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
tlsprf_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
dsarand_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
bbs_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
bbspriv_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};