File tree 17 files changed +51
-52
lines changed
17 files changed +51
-52
lines changed Original file line number Diff line number Diff line change 1
- #ifndef Py_INTERNAL_TUPLEOBJECT_H
2
- #define Py_INTERNAL_TUPLEOBJECT_H
1
+ #ifndef Py_INTERNAL_TUPLE_H
2
+ #define Py_INTERNAL_TUPLE_H
3
3
#ifdef __cplusplus
4
4
extern "C" {
5
5
#endif
@@ -11,9 +11,10 @@ extern "C" {
11
11
#include "tupleobject.h" /* _PyTuple_CAST() */
12
12
13
13
#define _PyTuple_ITEMS (op ) (_PyTuple_CAST(op)->ob_item)
14
+
14
15
PyAPI_FUNC (PyObject * ) _PyTuple_FromArray (PyObject * const * , Py_ssize_t );
15
16
16
17
#ifdef __cplusplus
17
18
}
18
19
#endif
19
- #endif /* !Py_INTERNAL_TUPLEOBJECT_H */
20
+ #endif /* !Py_INTERNAL_TUPLE_H */
Original file line number Diff line number Diff line change @@ -1120,7 +1120,7 @@ PYTHON_HEADERS= \
1120
1120
$(srcdir)/Include/internal/pycore_runtime.h \
1121
1121
$(srcdir)/Include/internal/pycore_sysmodule.h \
1122
1122
$(srcdir)/Include/internal/pycore_traceback.h \
1123
- $(srcdir)/Include/internal/pycore_tupleobject .h \
1123
+ $(srcdir)/Include/internal/pycore_tuple .h \
1124
1124
$(srcdir)/Include/internal/pycore_warnings.h \
1125
1125
$(DTRACE_HEADERS)
1126
1126
Original file line number Diff line number Diff line change 1
1
#include "Python.h"
2
2
#include "pycore_pystate.h" // _PyThreadState_GET()
3
- #include "pycore_tupleobject .h"
3
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
4
4
#include "structmember.h" // PyMemberDef
5
5
6
6
/* _functools module written and maintained
Original file line number Diff line number Diff line change 1
1
2
2
#define PY_SSIZE_T_CLEAN
3
3
#include "Python.h"
4
- #include "pycore_tupleobject .h"
4
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
5
5
#include <stddef.h> // offsetof()
6
6
7
7
/* Itertools module written and maintained
Original file line number Diff line number Diff line change 1
1
#include "Python.h"
2
- #include "pycore_call.h"
3
- #include "pycore_ceval.h" // _PyEval_EvalFrame()
4
- #include "pycore_object.h"
5
- #include "pycore_pyerrors.h"
6
- #include "pycore_pystate.h" // _PyThreadState_GET()
7
- #include "pycore_tupleobject .h"
8
- #include "frameobject.h"
2
+ #include "pycore_call.h" // _PyObject_CallNoArgTstate()
3
+ #include "pycore_ceval.h" // _PyEval_EvalFrame()
4
+ #include "pycore_object.h" // _PyObject_GC_TRACK()
5
+ #include "pycore_pyerrors.h" // _PyErr_Occurred()
6
+ #include "pycore_pystate.h" // _PyThreadState_GET()
7
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
8
+ #include "frameobject.h" // _PyFrame_New_NoTrack()
9
9
10
10
11
11
static PyObject * const *
Original file line number Diff line number Diff line change 4
4
#include "code.h"
5
5
#include "opcode.h"
6
6
#include "structmember.h" // PyMemberDef
7
- #include "pycore_code.h"
7
+ #include "pycore_code.h" // _PyOpcache
8
8
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
9
9
#include "pycore_pystate.h" // _PyInterpreterState_GET()
10
- #include "pycore_tupleobject .h"
10
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
11
11
#include "clinic/codeobject.c.h"
12
12
13
13
/* Holder for co_extra information */
Original file line number Diff line number Diff line change 1
1
/* Descriptors -- a new, flexible way to describe attributes */
2
2
3
3
#include "Python.h"
4
- #include "pycore_ceval.h" // _Py_EnterRecursiveCall()
5
- #include "pycore_object.h"
6
- #include "pycore_pystate.h" // _PyThreadState_GET()
7
- #include "pycore_tupleobject .h"
4
+ #include "pycore_ceval.h" // _Py_EnterRecursiveCall()
5
+ #include "pycore_object.h" // _PyObject_GC_UNTRACK()
6
+ #include "pycore_pystate.h" // _PyThreadState_GET()
7
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
8
8
#include "structmember.h" // PyMemberDef
9
9
10
10
_Py_IDENTIFIER (getattr );
Original file line number Diff line number Diff line change 3
3
4
4
#include "Python.h"
5
5
#include "pycore_object.h"
6
- #include "pycore_tupleobject.h"
7
6
#include "code.h"
8
7
#include "structmember.h" // PyMemberDef
9
8
Original file line number Diff line number Diff line change 1
1
/* List object implementation */
2
2
3
3
#include "Python.h"
4
- #include "pycore_abstract.h" // _PyIndex_Check()
5
- #include "pycore_object .h"
6
- #include "pycore_tupleobject .h"
7
- #include "pycore_accu .h"
4
+ #include "pycore_abstract.h" // _PyIndex_Check()
5
+ #include "pycore_interp .h" // PyInterpreterState.list
6
+ #include "pycore_object .h" // _PyObject_GC_TRACK()
7
+ #include "pycore_tuple .h" // _PyTuple_FromArray()
8
8
9
9
#ifdef STDC_HEADERS
10
10
#include <stddef.h>
Original file line number Diff line number Diff line change 1
1
/* Range object implementation */
2
2
3
3
#include "Python.h"
4
- #include "pycore_abstract.h" // _PyIndex_Check()
5
- #include "pycore_tupleobject .h"
4
+ #include "pycore_abstract.h" // _PyIndex_Check()
5
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
6
6
#include "structmember.h" // PyMemberDef
7
7
8
8
/* Support objects whose length is > PY_SSIZE_T_MAX.
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
#include "Python.h"
11
- #include "pycore_tupleobject .h"
12
- #include "pycore_object.h"
11
+ #include "pycore_tuple .h" // _PyTuple_FromArray()
12
+ #include "pycore_object.h" // _PyObject_GC_TRACK()
13
13
#include "structmember.h" // PyMemberDef
14
14
15
15
static const char visible_length_key [] = "n_sequence_fields" ;
Original file line number Diff line number Diff line change 191
191
<ClInclude Include =" ..\Include\internal\pycore_runtime.h" />
192
192
<ClInclude Include =" ..\Include\internal\pycore_sysmodule.h" />
193
193
<ClInclude Include =" ..\Include\internal\pycore_traceback.h" />
194
- <ClInclude Include =" ..\Include\internal\pycore_tupleobject .h" />
194
+ <ClInclude Include =" ..\Include\internal\pycore_tuple .h" />
195
195
<ClInclude Include =" ..\Include\internal\pycore_warnings.h" />
196
196
<ClInclude Include =" ..\Include\interpreteridobject.h" />
197
197
<ClInclude Include =" ..\Include\intrcheck.h" />
Original file line number Diff line number Diff line change 273
273
<ClInclude Include =" ..\Include\internal\pycore_traceback.h" >
274
274
<Filter >Include</Filter >
275
275
</ClInclude >
276
- <ClInclude Include =" ..\Include\internal\pycore_tupleobject .h" >
276
+ <ClInclude Include =" ..\Include\internal\pycore_tuple .h" >
277
277
<Filter >Include</Filter >
278
278
</ClInclude >
279
279
<ClInclude Include =" ..\Include\internal\pycore_warnings.h" >
Original file line number Diff line number Diff line change 4
4
#include <ctype.h>
5
5
#include "ast.h"
6
6
#undef Yield /* undefine macro conflicting with <winbase.h> */
7
- #include "pycore_object.h"
8
- #include "pycore_pyerrors.h"
9
- #include "pycore_pystate.h" // _PyThreadState_GET()
10
- #include "pycore_tupleobject.h"
7
+ #include "pycore_pyerrors.h" // _PyErr_NoMemory()
8
+ #include "pycore_pystate.h" // _PyThreadState_GET()
9
+ #include "pycore_tuple.h" // _PyTuple_FromArray()
11
10
12
11
_Py_IDENTIFIER (__builtins__ );
13
12
_Py_IDENTIFIER (__dict__ );
Original file line number Diff line number Diff line change 11
11
12
12
#include "Python.h"
13
13
#include "pycore_abstract.h" // _PyIndex_Check()
14
- #include "pycore_call.h"
15
- #include "pycore_ceval.h"
16
- #include "pycore_code.h"
17
- #include "pycore_initconfig.h"
18
- #include "pycore_object.h"
19
- #include "pycore_pyerrors.h"
20
- #include "pycore_pylifecycle.h"
14
+ #include "pycore_call.h" // _PyObject_FastCallDictTstate()
15
+ #include "pycore_ceval.h" // _PyEval_SignalAsyncExc()
16
+ #include "pycore_code.h" // _PyCode_InitOpcache()
17
+ #include "pycore_initconfig.h" // _PyStatus_OK()
18
+ #include "pycore_object.h" // _PyObject_GC_TRACK()
19
+ #include "pycore_pyerrors.h" // _PyErr_Fetch()
20
+ #include "pycore_pylifecycle.h" // _PyErr_Print()
21
21
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
22
22
#include "pycore_pystate.h" // _PyInterpreterState_GET()
23
- #include "pycore_sysmodule.h"
24
- #include "pycore_tupleobject .h"
23
+ #include "pycore_sysmodule.h" // _PySys_Audit()
24
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
25
25
26
26
#include "code.h"
27
27
#include "dictobject.h"
Original file line number Diff line number Diff line change 2
2
/* New getargs implementation */
3
3
4
4
#include "Python.h"
5
- #include "pycore_tupleobject .h"
5
+ #include "pycore_tuple .h" // _PyTuple_ITEMS()
6
6
7
7
#include <ctype.h>
8
8
#include <float.h>
Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ Data members:
15
15
*/
16
16
17
17
#include "Python.h"
18
- #include "code.h"
19
- #include "frameobject.h" // PyFrame_GetBack()
20
18
#include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark()
21
- #include "pycore_initconfig.h"
22
- #include "pycore_object.h"
23
- #include "pycore_pathconfig.h"
24
- #include "pycore_pyerrors.h"
25
- #include "pycore_pylifecycle.h"
19
+ #include "pycore_initconfig.h" // _PyStatus_EXCEPTION()
20
+ #include "pycore_object.h" // _PyObject_IS_GC()
21
+ #include "pycore_pathconfig.h" // _PyPathConfig_ComputeSysPath0()
22
+ #include "pycore_pyerrors.h" // _PyErr_Fetch()
23
+ #include "pycore_pylifecycle.h" // _PyErr_WriteUnraisableDefaultHook()
26
24
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
27
25
#include "pycore_pystate.h" // _PyThreadState_GET()
28
- #include "pycore_tupleobject .h"
26
+ #include "pycore_tuple .h" // _PyTuple_FromArray()
29
27
28
+ #include "code.h"
29
+ #include "frameobject.h" // PyFrame_GetBack()
30
30
#include "pydtrace.h"
31
31
#include "osdefs.h" // DELIM
32
32
#include <locale.h>
You can’t perform that action at this time.
0 commit comments