mirror of https://github.com/python/cpython.git
Bug #1432350: arrayobject should use PyObject_VAR_HEAD
This commit is contained in:
parent
86d662602d
commit
1b6726732c
|
@ -188,7 +188,7 @@ These macros are used in the definition of \ctype{PyObject} and
|
||||||
instance. This macro always expands to:
|
instance. This macro always expands to:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
int ob_size;
|
Py_ssize_t ob_size;
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
Note that \csimplemacro{PyObject_HEAD} is part of the expansion, and
|
Note that \csimplemacro{PyObject_HEAD} is part of the expansion, and
|
||||||
that its own expansion varies depending on the definition of
|
that its own expansion varies depending on the definition of
|
||||||
|
|
|
@ -29,8 +29,7 @@ struct arraydescr {
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct arrayobject {
|
typedef struct arrayobject {
|
||||||
PyObject_HEAD
|
PyObject_VAR_HEAD
|
||||||
Py_ssize_t ob_size;
|
|
||||||
char *ob_item;
|
char *ob_item;
|
||||||
Py_ssize_t allocated;
|
Py_ssize_t allocated;
|
||||||
struct arraydescr *ob_descr;
|
struct arraydescr *ob_descr;
|
||||||
|
|
Loading…
Reference in New Issue