summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2023-02-28 08:31:01 (GMT)
committerGitHub <noreply@github.com>2023-02-28 08:31:01 (GMT)
commit6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd (patch)
treefa34a8d7217783a1e9069144b94d369cfb573052 /Objects
parentc41af812c948ec3cb07b2ef7a46a238f5cab3dc2 (diff)
downloadcpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.zip
cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.gz
cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.bz2
gh-101101: Unstable C API tier (PEP 689) (GH-101102)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index a03b14e..175bd57 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -567,7 +567,8 @@ _PyCode_New(struct _PyCodeConstructor *con)
******************/
PyCodeObject *
-PyCode_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwonlyargcount,
+PyUnstable_Code_NewWithPosOnlyArgs(
+ int argcount, int posonlyargcount, int kwonlyargcount,
int nlocals, int stacksize, int flags,
PyObject *code, PyObject *consts, PyObject *names,
PyObject *varnames, PyObject *freevars, PyObject *cellvars,
@@ -691,7 +692,7 @@ error:
}
PyCodeObject *
-PyCode_New(int argcount, int kwonlyargcount,
+PyUnstable_Code_New(int argcount, int kwonlyargcount,
int nlocals, int stacksize, int flags,
PyObject *code, PyObject *consts, PyObject *names,
PyObject *varnames, PyObject *freevars, PyObject *cellvars,
@@ -1371,7 +1372,7 @@ typedef struct {
int
-_PyCode_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
+PyUnstable_Code_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
{
if (!PyCode_Check(code)) {
PyErr_BadInternalCall();
@@ -1392,7 +1393,7 @@ _PyCode_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
int
-_PyCode_SetExtra(PyObject *code, Py_ssize_t index, void *extra)
+PyUnstable_Code_SetExtra(PyObject *code, Py_ssize_t index, void *extra)
{
PyInterpreterState *interp = _PyInterpreterState_GET();