From a388282d291463302f6d4c34ec9ae6521d460063 Mon Sep 17 00:00:00 2001 From: Martin DeMello Date: Fri, 1 Nov 2024 20:10:21 -0700 Subject: [PATCH] Get rid of borrows from Objects/tupleobject.c Summary: Add a PyAPI declaration to the functions we need and remove the borrows from them and their dependencies. Reviewed By: DinoV Differential Revision: D65365902 fbshipit-source-id: 49c01edaf36a0fd01ac1458d14c1f0d664286a01 --- Include/internal/pycore_tuple.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/pycore_tuple.h b/Include/internal/pycore_tuple.h index b5b2083073a..f8f55cd1ba3 100644 --- a/Include/internal/pycore_tuple.h +++ b/Include/internal/pycore_tuple.h @@ -63,7 +63,7 @@ struct _Py_tuple_state { #define _PyTuple_ITEMS(op) _Py_RVALUE(_PyTuple_CAST(op)->ob_item) -extern PyObject *_PyTuple_FromArray(PyObject *const *, Py_ssize_t); +PyAPI_FUNC(PyObject *) _PyTuple_FromArray(PyObject *const *, Py_ssize_t); PyAPI_FUNC(PyObject *) _PyTuple_FromArraySteal(PyObject *const *, Py_ssize_t);