PEP 757: Make PyLong_DigitArray.obj private (#3966)
This commit is contained in:
parent
02a70341a2
commit
5a1529c658
|
@ -90,9 +90,6 @@ Export API
|
||||||
Export a Python integer as a digits array::
|
Export a Python integer as a digits array::
|
||||||
|
|
||||||
typedef struct PyLong_DigitArray {
|
typedef struct PyLong_DigitArray {
|
||||||
// Strong reference to the Python int object.
|
|
||||||
PyObject *obj;
|
|
||||||
|
|
||||||
// 1 if the number is negative, 0 otherwise.
|
// 1 if the number is negative, 0 otherwise.
|
||||||
int negative;
|
int negative;
|
||||||
|
|
||||||
|
@ -101,6 +98,9 @@ Export a Python integer as a digits array::
|
||||||
|
|
||||||
// Read-only array of unsigned digits.
|
// Read-only array of unsigned digits.
|
||||||
const void *digits;
|
const void *digits;
|
||||||
|
|
||||||
|
// Member used internally, must not be used for other purpose.
|
||||||
|
Py_uintptr_t _reserved;
|
||||||
} PyLong_DigitArray;
|
} PyLong_DigitArray;
|
||||||
|
|
||||||
PyAPI_FUNC(int) PyLong_AsDigitArray(
|
PyAPI_FUNC(int) PyLong_AsDigitArray(
|
||||||
|
|
Loading…
Reference in New Issue