diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-25 15:07:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 15:07:14 (GMT) |
commit | 8f2a337a80a283c66e1a4252839792fa229d2763 (patch) | |
tree | 0497a8e2db3ceeb7e5a4960a38dcf2c7310bfdd1 /Python | |
parent | 26aba295a9c1bcb0812fe44bd7e68ddd1d8a6828 (diff) | |
download | cpython-8f2a337a80a283c66e1a4252839792fa229d2763.zip cpython-8f2a337a80a283c66e1a4252839792fa229d2763.tar.gz cpython-8f2a337a80a283c66e1a4252839792fa229d2763.tar.bz2 |
bpo-45316: Move private functions to internal C API (GH-31579)
Move the unexported private functions to the internal C API:
* pycore_frame.h: _PyFrame_New_NoTrack()
* pycore_function.h: _PyFunction_GetVersionForCurrentState()
* pycore_genobject.h: _PyAsyncGenValueWrapperNew()
* pycore_genobject.h: _PyCoro_GetAwaitableIter()
* pycore_genobject.h: _PyGen_yf()
Diffstat (limited to 'Python')
-rw-r--r-- | Python/specialize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index e1db12b..1624f19 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -1,6 +1,7 @@ #include "Python.h" #include "pycore_code.h" #include "pycore_dict.h" +#include "pycore_function.h" // _PyFunction_GetVersionForCurrentState() #include "pycore_global_strings.h" // _Py_ID() #include "pycore_long.h" #include "pycore_moduleobject.h" @@ -1928,7 +1929,7 @@ void _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr, int oparg) { - assert(_PyOpcode_InlineCacheEntries[BINARY_OP] == + assert(_PyOpcode_InlineCacheEntries[BINARY_OP] == INLINE_CACHE_ENTRIES_BINARY_OP); _PyBinaryOpCache *cache = (_PyBinaryOpCache *)(instr + 1); switch (oparg) { |