Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r89799:f0cf2a50103c
Date: 2017-01-27 15:55 +0000
http://bitbucket.org/pypy/pypy/changeset/f0cf2a50103c/

Log:    Move PyHeapTypeObject declaration to its rightful place in
        cpyext_object.h

diff --git a/pypy/module/cpyext/parse/cpyext_object.h 
b/pypy/module/cpyext/parse/cpyext_object.h
--- a/pypy/module/cpyext/parse/cpyext_object.h
+++ b/pypy/module/cpyext/parse/cpyext_object.h
@@ -305,3 +305,11 @@
 
 } PyTypeObject;
 
+typedef struct {
+    PyTypeObject ht_type;
+    PyNumberMethods as_number;
+    PyMappingMethods as_mapping;
+    PySequenceMethods as_sequence;
+    PyBufferProcs as_buffer;
+    PyObject *ht_name, *ht_slots;
+} PyHeapTypeObject;
diff --git a/pypy/module/cpyext/parse/cpyext_typeobject.h 
b/pypy/module/cpyext/parse/cpyext_typeobject.h
deleted file mode 100644
--- a/pypy/module/cpyext/parse/cpyext_typeobject.h
+++ /dev/null
@@ -1,8 +0,0 @@
-typedef struct {
-    PyTypeObject ht_type;
-    PyNumberMethods as_number;
-    PyMappingMethods as_mapping;
-    PySequenceMethods as_sequence;
-    PyBufferProcs as_buffer;
-    PyObject *ht_name, *ht_slots;
-} PyHeapTypeObject;
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -41,7 +41,6 @@
 
 PyType_Check, PyType_CheckExact = build_type_checkers("Type", "w_type")
 
-cts.parse_header(parse_dir / 'cpyext_typeobject.h')
 PyHeapTypeObject = cts.gettype('PyHeapTypeObject *')
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to