Skip to content

Commit

Permalink
pythongh-111415: restoring _PyLong_New() as public
Browse files Browse the repository at this point in the history
This partially reverts python#108604.
  • Loading branch information
skirpichev committed Oct 28, 2023
1 parent 74f0772 commit cc5240c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Include/cpython/longintrepr.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ struct _longobject {
_PyLongValue long_value;
};

PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);


/* Inline some internals for speed. These should be in pycore_long.h
* if user code didn't need them inlined. */
Expand Down
2 changes: 0 additions & 2 deletions Include/internal/pycore_long.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ extern "C" {
# error "_PY_LONG_DEFAULT_MAX_STR_DIGITS smaller than threshold."
#endif

extern PyLongObject* _PyLong_New(Py_ssize_t);

// Return a copy of src.
extern PyObject* _PyLong_Copy(PyLongObject *src);

Expand Down

0 comments on commit cc5240c

Please sign in to comment.