[pypy-commit] pypy py3.5: Match CPython3.5's descrobject.h

rlamy pypy.commits at gmail.com
Thu Sep 28 18:35:24 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r92497:c88a0030175d
Date: 2017-09-29 00:34 +0200
http://bitbucket.org/pypy/pypy/changeset/c88a0030175d/

Log:	Match CPython3.5's descrobject.h

diff --git a/pypy/module/cpyext/parse/cpyext_descrobject.h b/pypy/module/cpyext/parse/cpyext_descrobject.h
--- a/pypy/module/cpyext/parse/cpyext_descrobject.h
+++ b/pypy/module/cpyext/parse/cpyext_descrobject.h
@@ -1,11 +1,11 @@
-#define PyDescr_COMMON \
-    PyObject_HEAD \
-    PyTypeObject *d_type; \
-    PyObject *d_name
+typedef struct {
+    PyObject_HEAD
+    PyTypeObject *d_type;
+    PyObject *d_name;
+    PyObject *d_qualname;
+} PyDescrObject;
 
-typedef struct {
-    PyDescr_COMMON;
-} PyDescrObject;
+#define PyDescr_COMMON PyDescrObject d_common
 
 typedef struct {
     PyDescr_COMMON;


More information about the pypy-commit mailing list