cbqn_sys/
pregenerated.rs

1/* automatically generated by rust-bindgen 0.70.1 */
2
3pub const _STDINT_H: u32 = 1;
4pub const _FEATURES_H: u32 = 1;
5pub const _DEFAULT_SOURCE: u32 = 1;
6pub const __GLIBC_USE_ISOC23: u32 = 0;
7pub const __USE_ISOC11: u32 = 1;
8pub const __USE_ISOC99: u32 = 1;
9pub const __USE_ISOC95: u32 = 1;
10pub const __USE_POSIX_IMPLICITLY: u32 = 1;
11pub const _POSIX_SOURCE: u32 = 1;
12pub const _POSIX_C_SOURCE: u32 = 200809;
13pub const __USE_POSIX: u32 = 1;
14pub const __USE_POSIX2: u32 = 1;
15pub const __USE_POSIX199309: u32 = 1;
16pub const __USE_POSIX199506: u32 = 1;
17pub const __USE_XOPEN2K: u32 = 1;
18pub const __USE_XOPEN2K8: u32 = 1;
19pub const _ATFILE_SOURCE: u32 = 1;
20pub const __WORDSIZE: u32 = 64;
21pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
22pub const __SYSCALL_WORDSIZE: u32 = 64;
23pub const __TIMESIZE: u32 = 64;
24pub const __USE_TIME_BITS64: u32 = 1;
25pub const __USE_MISC: u32 = 1;
26pub const __USE_ATFILE: u32 = 1;
27pub const __USE_FORTIFY_LEVEL: u32 = 0;
28pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
29pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
30pub const __GLIBC_USE_C23_STRTOL: u32 = 0;
31pub const _STDC_PREDEF_H: u32 = 1;
32pub const __STDC_IEC_559__: u32 = 1;
33pub const __STDC_IEC_60559_BFP__: u32 = 201404;
34pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
35pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
36pub const __STDC_ISO_10646__: u32 = 201706;
37pub const __GNU_LIBRARY__: u32 = 6;
38pub const __GLIBC__: u32 = 2;
39pub const __GLIBC_MINOR__: u32 = 40;
40pub const _SYS_CDEFS_H: u32 = 1;
41pub const __glibc_c99_flexarr_available: u32 = 1;
42pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
43pub const __HAVE_GENERIC_SELECTION: u32 = 1;
44pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
45pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
46pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23: u32 = 0;
47pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
48pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
49pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23: u32 = 0;
50pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
51pub const _BITS_TYPES_H: u32 = 1;
52pub const _BITS_TYPESIZES_H: u32 = 1;
53pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
54pub const __INO_T_MATCHES_INO64_T: u32 = 1;
55pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
56pub const __STATFS_MATCHES_STATFS64: u32 = 1;
57pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
58pub const __FD_SETSIZE: u32 = 1024;
59pub const _BITS_TIME64_H: u32 = 1;
60pub const _BITS_WCHAR_H: u32 = 1;
61pub const _BITS_STDINT_INTN_H: u32 = 1;
62pub const _BITS_STDINT_UINTN_H: u32 = 1;
63pub const _BITS_STDINT_LEAST_H: u32 = 1;
64pub const INT8_MIN: i32 = -128;
65pub const INT16_MIN: i32 = -32768;
66pub const INT32_MIN: i32 = -2147483648;
67pub const INT8_MAX: u32 = 127;
68pub const INT16_MAX: u32 = 32767;
69pub const INT32_MAX: u32 = 2147483647;
70pub const UINT8_MAX: u32 = 255;
71pub const UINT16_MAX: u32 = 65535;
72pub const UINT32_MAX: u32 = 4294967295;
73pub const INT_LEAST8_MIN: i32 = -128;
74pub const INT_LEAST16_MIN: i32 = -32768;
75pub const INT_LEAST32_MIN: i32 = -2147483648;
76pub const INT_LEAST8_MAX: u32 = 127;
77pub const INT_LEAST16_MAX: u32 = 32767;
78pub const INT_LEAST32_MAX: u32 = 2147483647;
79pub const UINT_LEAST8_MAX: u32 = 255;
80pub const UINT_LEAST16_MAX: u32 = 65535;
81pub const UINT_LEAST32_MAX: u32 = 4294967295;
82pub const INT_FAST8_MIN: i32 = -128;
83pub const INT_FAST16_MIN: i64 = -9223372036854775808;
84pub const INT_FAST32_MIN: i64 = -9223372036854775808;
85pub const INT_FAST8_MAX: u32 = 127;
86pub const INT_FAST16_MAX: u64 = 9223372036854775807;
87pub const INT_FAST32_MAX: u64 = 9223372036854775807;
88pub const UINT_FAST8_MAX: u32 = 255;
89pub const UINT_FAST16_MAX: i32 = -1;
90pub const UINT_FAST32_MAX: i32 = -1;
91pub const INTPTR_MIN: i64 = -9223372036854775808;
92pub const INTPTR_MAX: u64 = 9223372036854775807;
93pub const UINTPTR_MAX: i32 = -1;
94pub const PTRDIFF_MIN: i64 = -9223372036854775808;
95pub const PTRDIFF_MAX: u64 = 9223372036854775807;
96pub const SIG_ATOMIC_MIN: i32 = -2147483648;
97pub const SIG_ATOMIC_MAX: u32 = 2147483647;
98pub const SIZE_MAX: i32 = -1;
99pub const WINT_MIN: u32 = 0;
100pub const WINT_MAX: u32 = 4294967295;
101pub const __bool_true_false_are_defined: u32 = 1;
102pub const true_: u32 = 1;
103pub const false_: u32 = 0;
104pub type wchar_t = ::std::os::raw::c_int;
105#[repr(C)]
106#[repr(align(16))]
107#[derive(Debug, Copy, Clone)]
108pub struct max_align_t {
109    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
110    pub __bindgen_padding_0: u64,
111    pub __clang_max_align_nonce2: u128,
112}
113#[allow(clippy::unnecessary_operation, clippy::identity_op)]
114const _: () = {
115    ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
116    ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
117    ["Offset of field: max_align_t::__clang_max_align_nonce1"]
118        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
119    ["Offset of field: max_align_t::__clang_max_align_nonce2"]
120        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
121};
122pub type __u_char = ::std::os::raw::c_uchar;
123pub type __u_short = ::std::os::raw::c_ushort;
124pub type __u_int = ::std::os::raw::c_uint;
125pub type __u_long = ::std::os::raw::c_ulong;
126pub type __int8_t = ::std::os::raw::c_schar;
127pub type __uint8_t = ::std::os::raw::c_uchar;
128pub type __int16_t = ::std::os::raw::c_short;
129pub type __uint16_t = ::std::os::raw::c_ushort;
130pub type __int32_t = ::std::os::raw::c_int;
131pub type __uint32_t = ::std::os::raw::c_uint;
132pub type __int64_t = ::std::os::raw::c_long;
133pub type __uint64_t = ::std::os::raw::c_ulong;
134pub type __int_least8_t = __int8_t;
135pub type __uint_least8_t = __uint8_t;
136pub type __int_least16_t = __int16_t;
137pub type __uint_least16_t = __uint16_t;
138pub type __int_least32_t = __int32_t;
139pub type __uint_least32_t = __uint32_t;
140pub type __int_least64_t = __int64_t;
141pub type __uint_least64_t = __uint64_t;
142pub type __quad_t = ::std::os::raw::c_long;
143pub type __u_quad_t = ::std::os::raw::c_ulong;
144pub type __intmax_t = ::std::os::raw::c_long;
145pub type __uintmax_t = ::std::os::raw::c_ulong;
146pub type __dev_t = ::std::os::raw::c_ulong;
147pub type __uid_t = ::std::os::raw::c_uint;
148pub type __gid_t = ::std::os::raw::c_uint;
149pub type __ino_t = ::std::os::raw::c_ulong;
150pub type __ino64_t = ::std::os::raw::c_ulong;
151pub type __mode_t = ::std::os::raw::c_uint;
152pub type __nlink_t = ::std::os::raw::c_ulong;
153pub type __off_t = ::std::os::raw::c_long;
154pub type __off64_t = ::std::os::raw::c_long;
155pub type __pid_t = ::std::os::raw::c_int;
156#[repr(C)]
157#[derive(Debug, Copy, Clone)]
158pub struct __fsid_t {
159    pub __val: [::std::os::raw::c_int; 2usize],
160}
161#[allow(clippy::unnecessary_operation, clippy::identity_op)]
162const _: () = {
163    ["Size of __fsid_t"][::std::mem::size_of::<__fsid_t>() - 8usize];
164    ["Alignment of __fsid_t"][::std::mem::align_of::<__fsid_t>() - 4usize];
165    ["Offset of field: __fsid_t::__val"][::std::mem::offset_of!(__fsid_t, __val) - 0usize];
166};
167pub type __clock_t = ::std::os::raw::c_long;
168pub type __rlim_t = ::std::os::raw::c_ulong;
169pub type __rlim64_t = ::std::os::raw::c_ulong;
170pub type __id_t = ::std::os::raw::c_uint;
171pub type __time_t = ::std::os::raw::c_long;
172pub type __useconds_t = ::std::os::raw::c_uint;
173pub type __suseconds_t = ::std::os::raw::c_long;
174pub type __suseconds64_t = ::std::os::raw::c_long;
175pub type __daddr_t = ::std::os::raw::c_int;
176pub type __key_t = ::std::os::raw::c_int;
177pub type __clockid_t = ::std::os::raw::c_int;
178pub type __timer_t = *mut ::std::os::raw::c_void;
179pub type __blksize_t = ::std::os::raw::c_long;
180pub type __blkcnt_t = ::std::os::raw::c_long;
181pub type __blkcnt64_t = ::std::os::raw::c_long;
182pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
183pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
184pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
185pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
186pub type __fsword_t = ::std::os::raw::c_long;
187pub type __ssize_t = ::std::os::raw::c_long;
188pub type __syscall_slong_t = ::std::os::raw::c_long;
189pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
190pub type __loff_t = __off64_t;
191pub type __caddr_t = *mut ::std::os::raw::c_char;
192pub type __intptr_t = ::std::os::raw::c_long;
193pub type __socklen_t = ::std::os::raw::c_uint;
194pub type __sig_atomic_t = ::std::os::raw::c_int;
195pub type int_least8_t = __int_least8_t;
196pub type int_least16_t = __int_least16_t;
197pub type int_least32_t = __int_least32_t;
198pub type int_least64_t = __int_least64_t;
199pub type uint_least8_t = __uint_least8_t;
200pub type uint_least16_t = __uint_least16_t;
201pub type uint_least32_t = __uint_least32_t;
202pub type uint_least64_t = __uint_least64_t;
203pub type int_fast8_t = ::std::os::raw::c_schar;
204pub type int_fast16_t = ::std::os::raw::c_long;
205pub type int_fast32_t = ::std::os::raw::c_long;
206pub type int_fast64_t = ::std::os::raw::c_long;
207pub type uint_fast8_t = ::std::os::raw::c_uchar;
208pub type uint_fast16_t = ::std::os::raw::c_ulong;
209pub type uint_fast32_t = ::std::os::raw::c_ulong;
210pub type uint_fast64_t = ::std::os::raw::c_ulong;
211pub type intmax_t = __intmax_t;
212pub type uintmax_t = __uintmax_t;
213pub type BQNV = u64;
214extern "C" {
215    pub fn bqn_init();
216}
217extern "C" {
218    pub fn bqn_free(v: BQNV);
219}
220extern "C" {
221    pub fn bqn_copy(v: BQNV) -> BQNV;
222}
223extern "C" {
224    pub fn bqn_toF64(v: BQNV) -> f64;
225}
226extern "C" {
227    pub fn bqn_toChar(v: BQNV) -> u32;
228}
229extern "C" {
230    pub fn bqn_readF64(v: BQNV) -> f64;
231}
232extern "C" {
233    pub fn bqn_readChar(v: BQNV) -> u32;
234}
235extern "C" {
236    pub fn bqn_type(v: BQNV) -> ::std::os::raw::c_int;
237}
238extern "C" {
239    pub fn bqn_call1(f: BQNV, x: BQNV) -> BQNV;
240}
241extern "C" {
242    pub fn bqn_call2(f: BQNV, w: BQNV, x: BQNV) -> BQNV;
243}
244extern "C" {
245    pub fn bqn_eval(src: BQNV) -> BQNV;
246}
247extern "C" {
248    pub fn bqn_evalCStr(str_: *const ::std::os::raw::c_char) -> BQNV;
249}
250extern "C" {
251    pub fn bqn_bound(a: BQNV) -> usize;
252}
253extern "C" {
254    pub fn bqn_rank(a: BQNV) -> usize;
255}
256extern "C" {
257    pub fn bqn_shape(a: BQNV, buf: *mut usize);
258}
259extern "C" {
260    pub fn bqn_pick(a: BQNV, pos: usize) -> BQNV;
261}
262extern "C" {
263    pub fn bqn_readI8Arr(a: BQNV, buf: *mut i8);
264}
265extern "C" {
266    pub fn bqn_readI16Arr(a: BQNV, buf: *mut i16);
267}
268extern "C" {
269    pub fn bqn_readI32Arr(a: BQNV, buf: *mut i32);
270}
271extern "C" {
272    pub fn bqn_readF64Arr(a: BQNV, buf: *mut f64);
273}
274extern "C" {
275    pub fn bqn_readC8Arr(a: BQNV, buf: *mut u8);
276}
277extern "C" {
278    pub fn bqn_readC16Arr(a: BQNV, buf: *mut u16);
279}
280extern "C" {
281    pub fn bqn_readC32Arr(a: BQNV, buf: *mut u32);
282}
283extern "C" {
284    pub fn bqn_readObjArr(a: BQNV, buf: *mut BQNV);
285}
286extern "C" {
287    pub fn bqn_hasField(ns: BQNV, name: BQNV) -> bool;
288}
289extern "C" {
290    pub fn bqn_getField(ns: BQNV, name: BQNV) -> BQNV;
291}
292extern "C" {
293    pub fn bqn_makeF64(d: f64) -> BQNV;
294}
295extern "C" {
296    pub fn bqn_makeChar(c: u32) -> BQNV;
297}
298extern "C" {
299    pub fn bqn_makeI8Arr(rank: usize, shape: *const usize, data: *const i8) -> BQNV;
300}
301extern "C" {
302    pub fn bqn_makeI16Arr(rank: usize, shape: *const usize, data: *const i16) -> BQNV;
303}
304extern "C" {
305    pub fn bqn_makeI32Arr(rank: usize, shape: *const usize, data: *const i32) -> BQNV;
306}
307extern "C" {
308    pub fn bqn_makeF64Arr(rank: usize, shape: *const usize, data: *const f64) -> BQNV;
309}
310extern "C" {
311    pub fn bqn_makeC8Arr(rank: usize, shape: *const usize, data: *const u8) -> BQNV;
312}
313extern "C" {
314    pub fn bqn_makeC16Arr(rank: usize, shape: *const usize, data: *const u16) -> BQNV;
315}
316extern "C" {
317    pub fn bqn_makeC32Arr(rank: usize, shape: *const usize, data: *const u32) -> BQNV;
318}
319extern "C" {
320    pub fn bqn_makeObjArr(rank: usize, shape: *const usize, data: *const BQNV) -> BQNV;
321}
322extern "C" {
323    pub fn bqn_makeI8Vec(len: usize, data: *const i8) -> BQNV;
324}
325extern "C" {
326    pub fn bqn_makeI16Vec(len: usize, data: *const i16) -> BQNV;
327}
328extern "C" {
329    pub fn bqn_makeI32Vec(len: usize, data: *const i32) -> BQNV;
330}
331extern "C" {
332    pub fn bqn_makeF64Vec(len: usize, data: *const f64) -> BQNV;
333}
334extern "C" {
335    pub fn bqn_makeC8Vec(len: usize, data: *const u8) -> BQNV;
336}
337extern "C" {
338    pub fn bqn_makeC16Vec(len: usize, data: *const u16) -> BQNV;
339}
340extern "C" {
341    pub fn bqn_makeC32Vec(len: usize, data: *const u32) -> BQNV;
342}
343extern "C" {
344    pub fn bqn_makeObjVec(len: usize, data: *const BQNV) -> BQNV;
345}
346extern "C" {
347    pub fn bqn_makeUTF8Str(len: usize, str_: *const ::std::os::raw::c_char) -> BQNV;
348}
349pub type bqn_boundFn1 = ::std::option::Option<unsafe extern "C" fn(obj: BQNV, x: BQNV) -> BQNV>;
350pub type bqn_boundFn2 =
351    ::std::option::Option<unsafe extern "C" fn(obj: BQNV, w: BQNV, x: BQNV) -> BQNV>;
352extern "C" {
353    pub fn bqn_makeBoundFn1(f: bqn_boundFn1, obj: BQNV) -> BQNV;
354}
355extern "C" {
356    pub fn bqn_makeBoundFn2(f: bqn_boundFn2, obj: BQNV) -> BQNV;
357}
358pub const BQNElType_elt_unk: BQNElType = 0;
359pub const BQNElType_elt_i8: BQNElType = 1;
360pub const BQNElType_elt_i16: BQNElType = 2;
361pub const BQNElType_elt_i32: BQNElType = 3;
362pub const BQNElType_elt_f64: BQNElType = 4;
363pub const BQNElType_elt_c8: BQNElType = 5;
364pub const BQNElType_elt_c16: BQNElType = 6;
365pub const BQNElType_elt_c32: BQNElType = 7;
366pub type BQNElType = ::std::os::raw::c_uint;
367extern "C" {
368    pub fn bqn_directArrType(a: BQNV) -> BQNElType;
369}
370extern "C" {
371    pub fn bqn_directI8(a: BQNV) -> *const i8;
372}
373extern "C" {
374    pub fn bqn_directI16(a: BQNV) -> *const i16;
375}
376extern "C" {
377    pub fn bqn_directI32(a: BQNV) -> *const i32;
378}
379extern "C" {
380    pub fn bqn_directF64(a: BQNV) -> *const f64;
381}
382extern "C" {
383    pub fn bqn_directC8(a: BQNV) -> *const u8;
384}
385extern "C" {
386    pub fn bqn_directC16(a: BQNV) -> *const u16;
387}
388extern "C" {
389    pub fn bqn_directC32(a: BQNV) -> *const u32;
390}