diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-14 23:50:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 23:50:28 (GMT) |
commit | 37b1d607bf0f1a9c1e89b1715349efc24dc180e0 (patch) | |
tree | 5115d4b858df130997a63f16c7144ffdda1f4c36 /Include | |
parent | 7076bef8ba8836a19d5033f4ceb8eb9837de2301 (diff) | |
download | cpython-37b1d607bf0f1a9c1e89b1715349efc24dc180e0.zip cpython-37b1d607bf0f1a9c1e89b1715349efc24dc180e0.tar.gz cpython-37b1d607bf0f1a9c1e89b1715349efc24dc180e0.tar.bz2 |
po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958)
Remove redundant "#ifndef Py_LIMITED_API" in funcobject.h.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python.h | 2 | ||||
-rw-r--r-- | Include/cpython/funcobject.h (renamed from Include/funcobject.h) | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Include/Python.h b/Include/Python.h index dc5c9b8..e8e061b 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -60,7 +60,7 @@ #include "setobject.h" #include "methodobject.h" #include "moduleobject.h" -#include "funcobject.h" +#include "cpython/funcobject.h" #include "classobject.h" #include "fileobject.h" #include "pycapsule.h" diff --git a/Include/funcobject.h b/Include/cpython/funcobject.h index 6bc03f5..60b7022 100644 --- a/Include/funcobject.h +++ b/Include/cpython/funcobject.h @@ -1,5 +1,5 @@ - /* Function object interface */ + #ifndef Py_LIMITED_API #ifndef Py_FUNCOBJECT_H #define Py_FUNCOBJECT_H @@ -76,7 +76,6 @@ PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyFunction_GetAnnotations(PyObject *); PyAPI_FUNC(int) PyFunction_SetAnnotations(PyObject *, PyObject *); -#ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) _PyFunction_Vectorcall( PyObject *func, PyObject *const *stack, @@ -84,7 +83,6 @@ PyAPI_FUNC(PyObject *) _PyFunction_Vectorcall( PyObject *kwnames); uint32_t _PyFunction_GetVersionForCurrentState(PyFunctionObject *func); -#endif /* Macros for direct access to these values. Type checks are *not* done, so use with care. */ |