File tree 7 files changed +17
-14
lines changed
7 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -572,10 +572,11 @@ Porting to Python 3.11
572
572
header provides functions like ``printf() `` and ``fopen() ``.
573
573
(Contributed by Victor Stinner in :issue: `45434 `.)
574
574
575
- * The non-limited API file ``funcobject.h `` has been moved to the
576
- ``Include/cpython `` directory. This file must not be included directly, as it
577
- is already included in ``Python.h ``: :ref: `Include Files <api-includes >`. If
578
- it has been included directly, consider including ``Python.h `` instead.
575
+ * The non-limited API files ``cellobject.h `` and ``funcobject.h `` have been
576
+ moved to the ``Include/cpython `` directory. These files must not be included
577
+ directly, as they are already included in ``Python.h ``: :ref: `Include Files
578
+ <api-includes>`. If they have been included directly, consider including
579
+ ``Python.h `` instead.
579
580
(Contributed by Victor Stinner in :issue: `35134 `.)
580
581
581
582
Deprecated
Original file line number Diff line number Diff line change 68
68
#include "pyframe.h"
69
69
#include "traceback.h"
70
70
#include "sliceobject.h"
71
- #include "cellobject.h"
71
+ #include "cpython/ cellobject.h"
72
72
#include "iterobject.h"
73
73
#include "genobject.h"
74
74
#include "descrobject.h"
Original file line number Diff line number Diff line change 1
1
/* Cell object interface */
2
+
2
3
#ifndef Py_LIMITED_API
3
4
#ifndef Py_CELLOBJECT_H
4
5
#define Py_CELLOBJECT_H
@@ -8,7 +9,8 @@ extern "C" {
8
9
9
10
typedef struct {
10
11
PyObject_HEAD
11
- PyObject * ob_ref ; /* Content of the cell or NULL when empty */
12
+ /* Content of the cell or NULL when empty */
13
+ PyObject * ob_ref ;
12
14
} PyCellObject ;
13
15
14
16
PyAPI_DATA (PyTypeObject ) PyCell_Type ;
Original file line number Diff line number Diff line change @@ -1127,7 +1127,6 @@ PYTHON_HEADERS= \
1127
1127
$(srcdir)/Include/boolobject.h \
1128
1128
$(srcdir)/Include/bytearrayobject.h \
1129
1129
$(srcdir)/Include/bytesobject.h \
1130
- $(srcdir)/Include/cellobject.h \
1131
1130
$(srcdir)/Include/ceval.h \
1132
1131
$(srcdir)/Include/classobject.h \
1133
1132
$(srcdir)/Include/code.h \
@@ -1201,6 +1200,7 @@ PYTHON_HEADERS= \
1201
1200
$(srcdir)/Include/cpython/abstract.h \
1202
1201
$(srcdir)/Include/cpython/bytearrayobject.h \
1203
1202
$(srcdir)/Include/cpython/bytesobject.h \
1203
+ $(srcdir)/Include/cpython/cellobject.h \
1204
1204
$(srcdir)/Include/cpython/ceval.h \
1205
1205
$(srcdir)/Include/cpython/code.h \
1206
1206
$(srcdir)/Include/cpython/compile.h \
Original file line number Diff line number Diff line change 1
- Move Include/ funcobject.h header file to Include/cpython/funcobject.h.
2
- C extensions should only include the main ``<Python.h> `` header.
3
- Patch by Victor Stinner.
1
+ Move `` cellobject.h `` and `` funcobject.h `` header files from `` Include/ `` to
2
+ `` Include/cpython/ ``. C extensions should only include the main ``<Python.h> ``
3
+ header. Patch by Victor Stinner.
Original file line number Diff line number Diff line change 115
115
<ClInclude Include =" ..\Include\boolobject.h" />
116
116
<ClInclude Include =" ..\Include\bytearrayobject.h" />
117
117
<ClInclude Include =" ..\Include\bytesobject.h" />
118
- <ClInclude Include =" ..\Include\cellobject.h" />
119
118
<ClInclude Include =" ..\Include\ceval.h" />
120
119
<ClInclude Include =" ..\Include\classobject.h" />
121
120
<ClInclude Include =" ..\Include\code.h" />
126
125
<ClInclude Include =" ..\Include\cpython\abstract.h" />
127
126
<ClInclude Include =" ..\Include\cpython\bytearrayobject.h" />
128
127
<ClInclude Include =" ..\Include\cpython\bytesobject.h" />
128
+ <ClInclude Include =" ..\Include\cpython\cellobject.h" />
129
129
<ClInclude Include =" ..\Include\cpython\ceval.h" />
130
130
<ClInclude Include =" ..\Include\cpython\code.h" />
131
131
<ClInclude Include =" ..\Include\cpython\compile.h" />
Original file line number Diff line number Diff line change 51
51
<ClInclude Include =" ..\Include\bytesobject.h" >
52
52
<Filter >Include</Filter >
53
53
</ClInclude >
54
- <ClInclude Include =" ..\Include\cellobject.h" >
55
- <Filter >Include</Filter >
56
- </ClInclude >
57
54
<ClInclude Include =" ..\Include\ceval.h" >
58
55
<Filter >Include</Filter >
59
56
</ClInclude >
372
369
<ClInclude Include =" ..\Include\cpython\bytesobject.h" >
373
370
<Filter >Include\cpython</Filter >
374
371
</ClInclude >
372
+ <ClInclude Include =" ..\Include\cpython\cellobject.h" >
373
+ <Filter >Include\cpython</Filter >
374
+ </ClInclude >
375
375
<ClInclude Include =" ..\Include\cpython\ceval.h" >
376
376
<Filter >Include\cpython</Filter >
377
377
</ClInclude >
You can’t perform that action at this time.
0 commit comments