Rename args of _PyLong_FromByteArray/_PyLong_AsByteArray

This commit is contained in:
kngwyu 2018-06-05 23:03:53 +09:00
parent 9ffbae30ab
commit 0b964b503f
2 changed files with 20 additions and 18 deletions

View file

@ -60,16 +60,17 @@ pub unsafe fn PyLong_CheckExact(op : *mut PyObject) -> c_int {
pub fn PyLong_GetInfo() -> *mut PyObject;
pub fn _PyLong_FromByteArray(
arg1: *const c_uchar,
arg2: size_t,
arg3: c_int, // is_little_endian
arg4: c_int, // is_signed
bytes: *const c_uchar,
n: size_t,
little_endian: c_int,
is_signed: c_int,
) -> *mut PyObject;
pub fn _PyLong_AsByteArray(
arg1: *mut PyLongObject,
arg2: *const c_uchar,
arg3: size_t,
arg4: c_int, // is_little_endian
arg5: c_int, // is_signed
v: *mut PyLongObject,
bytes: *const c_uchar,
n: size_t,
little_endian: c_int,
is_signed: c_int,
) -> c_int;
}

View file

@ -65,16 +65,17 @@ pub unsafe fn PyLong_CheckExact(op : *mut PyObject) -> c_int {
#[cfg_attr(windows, link(name = "pythonXY"))]
extern "C" {
pub fn _PyLong_FromByteArray(
arg1: *const c_uchar,
arg2: size_t,
arg3: c_int, // is_little_endian
arg4: c_int, // is_signed
bytes: *const c_uchar,
n: size_t,
little_endian: c_int,
is_signed: c_int,
) -> *mut PyObject;
pub fn _PyLong_AsByteArray(
arg1: *mut PyLongObject,
arg2: *const c_uchar,
arg3: size_t,
arg4: c_int, // is_little_endian
arg5: c_int, // is_signed
v: *mut PyLongObject,
bytes: *const c_uchar,
n: size_t,
little_endian: c_int,
is_signed: c_int,
) -> c_int;
}