]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Export _PyEval_SetProfile() as a function, not data (#106887)
authorVictor Stinner <vstinner@python.org>
Wed, 19 Jul 2023 11:07:40 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 11:07:40 +0000 (11:07 +0000)
Include/cpython/ceval.h

index a9616bd6a4f5186b1e1d8408639e5729f04ab6b1..5255d715142b97690b1f88625a9089f60d57c74e 100644 (file)
@@ -4,7 +4,7 @@
 
 PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
 PyAPI_FUNC(void) PyEval_SetProfileAllThreads(Py_tracefunc, PyObject *);
-PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
+PyAPI_FUNC(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
 PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
 PyAPI_FUNC(void) PyEval_SetTraceAllThreads(Py_tracefunc, PyObject *);
 PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);