Skip to content

Commit

Permalink
Get rid of borrows from Objects/tupleobject.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Martin DeMello authored and facebook-github-bot committed Nov 2, 2024
1 parent 784f655 commit a388282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit a388282

Please sign in to comment.