mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
fix linking issue, warnings, in struct
This commit is contained in:
parent
232f3c91f9
commit
4de3f998bf
1 changed files with 0 additions and 4 deletions
|
|
@ -45,8 +45,6 @@ typedef struct {
|
||||||
PyObject *weakreflist; /* List of weak references */
|
PyObject *weakreflist; /* List of weak references */
|
||||||
} PyStructObject;
|
} PyStructObject;
|
||||||
|
|
||||||
PyAPI_DATA(PyTypeObject) PyStruct_Type;
|
|
||||||
|
|
||||||
#define PyStruct_Check(op) PyObject_TypeCheck(op, &PyStruct_Type)
|
#define PyStruct_Check(op) PyObject_TypeCheck(op, &PyStruct_Type)
|
||||||
#define PyStruct_CheckExact(op) ((op)->ob_type == &PyStruct_Type)
|
#define PyStruct_CheckExact(op) ((op)->ob_type == &PyStruct_Type)
|
||||||
|
|
||||||
|
|
@ -1063,7 +1061,6 @@ static PyObject *
|
||||||
s_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
s_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
PyObject *self;
|
PyObject *self;
|
||||||
static PyObject *not_yet_string;
|
|
||||||
|
|
||||||
assert(type != NULL && type->tp_alloc != NULL);
|
assert(type != NULL && type->tp_alloc != NULL);
|
||||||
|
|
||||||
|
|
@ -1104,7 +1101,6 @@ s_init(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
static void
|
static void
|
||||||
s_dealloc(PyStructObject *s)
|
s_dealloc(PyStructObject *s)
|
||||||
{
|
{
|
||||||
int sts = 0;
|
|
||||||
if (s->weakreflist != NULL)
|
if (s->weakreflist != NULL)
|
||||||
PyObject_ClearWeakRefs((PyObject *)s);
|
PyObject_ClearWeakRefs((PyObject *)s);
|
||||||
if (s->s_codes != NULL) {
|
if (s->s_codes != NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue