return NULL;
}
-/* =-= */
-
-static void
-bytes_dealloc(PyObject *op)
-{
- Py_TYPE(op)->tp_free(op);
-}
-
/* Unescape a backslash-escaped string. If unicode is non-zero,
the string is a u-literal. If recode_encoding is non-zero,
the string is UTF-8 encoded and should be re-encoded in the
"bytes",
PyBytesObject_SIZE,
sizeof(char),
- bytes_dealloc, /* tp_dealloc */
+ 0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
}
}
-static void
-complex_dealloc(PyObject *op)
-{
- op->ob_type->tp_free(op);
-}
-
static PyObject *
complex_repr(PyComplexObject *v)
{
"complex",
sizeof(PyComplexObject),
0,
- complex_dealloc, /* tp_dealloc */
+ 0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
/* Methods */
-static void
-long_dealloc(PyObject *v)
-{
- Py_TYPE(v)->tp_free(v);
-}
-
static int
long_compare(PyLongObject *a, PyLongObject *b)
{
"int", /* tp_name */
offsetof(PyLongObject, ob_digit), /* tp_basicsize */
sizeof(digit), /* tp_itemsize */
- long_dealloc, /* tp_dealloc */
+ 0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
{ 0 }
};
-static void
-encoding_map_dealloc(PyObject* o)
-{
- PyObject_FREE(o);
-}
-
static PyTypeObject EncodingMapType = {
PyVarObject_HEAD_INIT(NULL, 0)
"EncodingMap", /*tp_name*/
sizeof(struct encoding_map), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
- encoding_map_dealloc, /*tp_dealloc*/
+ 0, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/