@@ -3,7 +3,10 @@ use libc::{c_char, c_double, c_int, c_long, c_longlong, c_ulong, c_ulonglong, c_
3
3
use crate :: object:: * ;
4
4
use crate :: pyport:: Py_ssize_t ;
5
5
6
- //#[repr(C)] struct PyLongObject { /* representation hidden */ }
6
+ ignore ! {
7
+ #[ repr( C ) ]
8
+ struct PyLongObject { /* representation hidden */ }
9
+ }
7
10
8
11
#[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
9
12
extern "C" {
@@ -57,25 +60,34 @@ extern "C" {
57
60
58
61
pub fn PyLong_GetInfo ( ) -> * mut PyObject ;
59
62
60
- /*
61
- pub fn _PyLong_AsInt(arg1: *mut PyObject) -> c_int;
62
- pub fn _PyLong_Frexp(a: *mut PyLongObject, e: *mut Py_ssize_t)
63
- -> c_double;
64
-
65
- pub fn _PyLong_Sign(v: *mut PyObject) -> c_int;
66
- pub fn _PyLong_NumBits(v: *mut PyObject) -> size_t;
67
- pub fn _PyLong_FromByteArray(bytes: *const c_uchar, n: size_t,
68
- little_endian: c_int,
69
- is_signed: c_int) -> *mut PyObject;
70
- pub fn _PyLong_AsByteArray(v: *mut PyLongObject,
71
- bytes: *mut c_uchar, n: size_t,
72
- little_endian: c_int,
73
- is_signed: c_int) -> c_int;
74
- pub fn _PyLong_Format(aa: *mut PyObject, base: c_int,
75
- addL: c_int, newstyle: c_int)
76
- -> *mut PyObject;
77
- pub fn _PyLong_FormatAdvanced(obj: *mut PyObject,
78
- format_spec: *mut c_char,
79
- format_spec_len: Py_ssize_t)
80
- -> *mut PyObject;*/
63
+ ignore ! {
64
+ pub fn _PyLong_AsInt( arg1: * mut PyObject ) -> c_int;
65
+ pub fn _PyLong_Frexp( a: * mut PyLongObject , e: * mut Py_ssize_t ) -> c_double;
66
+ pub fn _PyLong_Sign( v: * mut PyObject ) -> c_int;
67
+ pub fn _PyLong_NumBits( v: * mut PyObject ) -> size_t;
68
+ pub fn _PyLong_FromByteArray(
69
+ bytes: * const c_uchar,
70
+ n: size_t,
71
+ little_endian: c_int,
72
+ is_signed: c_int,
73
+ ) -> * mut PyObject ;
74
+ pub fn _PyLong_AsByteArray(
75
+ v: * mut PyLongObject ,
76
+ bytes: * mut c_uchar,
77
+ n: size_t,
78
+ little_endian: c_int,
79
+ is_signed: c_int,
80
+ ) -> c_int;
81
+ pub fn _PyLong_Format(
82
+ aa: * mut PyObject ,
83
+ base: c_int,
84
+ addL: c_int,
85
+ newstyle: c_int,
86
+ ) -> * mut PyObject ;
87
+ pub fn _PyLong_FormatAdvanced(
88
+ obj: * mut PyObject ,
89
+ format_spec: * mut c_char,
90
+ format_spec_len: Py_ssize_t ,
91
+ ) -> * mut PyObject ;
92
+ }
81
93
}
0 commit comments