bpo-35059: Remove Py_STATIC_INLINE() macro (GH-10216)

"static inline" should be used directly. Forcing the compiler to
inline is not recommended.
This commit is contained in:
Victor Stinner 2018-10-29 14:49:24 +01:00 committed by GitHub
parent 2aaf0c1204
commit 542497aa9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 41 deletions

View file

@ -144,7 +144,7 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
See also pymem.h.
These inline functions expect non-NULL object pointers. */
Py_STATIC_INLINE(PyObject*)
static inline PyObject*
PyObject_INIT(PyObject *op, PyTypeObject *typeobj)
{
assert(op != NULL);
@ -153,7 +153,7 @@ PyObject_INIT(PyObject *op, PyTypeObject *typeobj)
return op;
}
Py_STATIC_INLINE(PyVarObject*)
static inline PyVarObject*
PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size)
{
assert(op != NULL);