1pub const __GNUC_VA_LIST: u32 = 1;
4pub const _LIBC_LIMITS_H_: u32 = 1;
5pub const _FEATURES_H: u32 = 1;
6pub const _DEFAULT_SOURCE: u32 = 1;
7pub const __GLIBC_USE_ISOC2X: u32 = 0;
8pub const __USE_ISOC11: u32 = 1;
9pub const __USE_ISOC99: u32 = 1;
10pub const __USE_ISOC95: u32 = 1;
11pub const __USE_POSIX_IMPLICITLY: u32 = 1;
12pub const _POSIX_SOURCE: u32 = 1;
13pub const _POSIX_C_SOURCE: u32 = 200809;
14pub const __USE_POSIX: u32 = 1;
15pub const __USE_POSIX2: u32 = 1;
16pub const __USE_POSIX199309: u32 = 1;
17pub const __USE_POSIX199506: u32 = 1;
18pub const __USE_XOPEN2K: u32 = 1;
19pub const __USE_XOPEN2K8: u32 = 1;
20pub const _ATFILE_SOURCE: u32 = 1;
21pub const __USE_MISC: u32 = 1;
22pub const __USE_ATFILE: u32 = 1;
23pub const __USE_FORTIFY_LEVEL: u32 = 0;
24pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
25pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
26pub const _STDC_PREDEF_H: u32 = 1;
27pub const __STDC_IEC_559__: u32 = 1;
28pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
29pub const __STDC_ISO_10646__: u32 = 201706;
30pub const __GNU_LIBRARY__: u32 = 6;
31pub const __GLIBC__: u32 = 2;
32pub const __GLIBC_MINOR__: u32 = 31;
33pub const _SYS_CDEFS_H: u32 = 1;
34pub const __glibc_c99_flexarr_available: u32 = 1;
35pub const __WORDSIZE: u32 = 64;
36pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
37pub const __SYSCALL_WORDSIZE: u32 = 64;
38pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
39pub const __HAVE_GENERIC_SELECTION: u32 = 1;
40pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
41pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
42pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
43pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
44pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
45pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
46pub const MB_LEN_MAX: u32 = 16;
47pub const _BITS_POSIX1_LIM_H: u32 = 1;
48pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
49pub const _POSIX_AIO_MAX: u32 = 1;
50pub const _POSIX_ARG_MAX: u32 = 4096;
51pub const _POSIX_CHILD_MAX: u32 = 25;
52pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
53pub const _POSIX_HOST_NAME_MAX: u32 = 255;
54pub const _POSIX_LINK_MAX: u32 = 8;
55pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
56pub const _POSIX_MAX_CANON: u32 = 255;
57pub const _POSIX_MAX_INPUT: u32 = 255;
58pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
59pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
60pub const _POSIX_NAME_MAX: u32 = 14;
61pub const _POSIX_NGROUPS_MAX: u32 = 8;
62pub const _POSIX_OPEN_MAX: u32 = 20;
63pub const _POSIX_PATH_MAX: u32 = 256;
64pub const _POSIX_PIPE_BUF: u32 = 512;
65pub const _POSIX_RE_DUP_MAX: u32 = 255;
66pub const _POSIX_RTSIG_MAX: u32 = 8;
67pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
68pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
69pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
70pub const _POSIX_SSIZE_MAX: u32 = 32767;
71pub const _POSIX_STREAM_MAX: u32 = 8;
72pub const _POSIX_SYMLINK_MAX: u32 = 255;
73pub const _POSIX_SYMLOOP_MAX: u32 = 8;
74pub const _POSIX_TIMER_MAX: u32 = 32;
75pub const _POSIX_TTY_NAME_MAX: u32 = 9;
76pub const _POSIX_TZNAME_MAX: u32 = 6;
77pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
78pub const NR_OPEN: u32 = 1024;
79pub const NGROUPS_MAX: u32 = 65536;
80pub const ARG_MAX: u32 = 131072;
81pub const LINK_MAX: u32 = 127;
82pub const MAX_CANON: u32 = 255;
83pub const MAX_INPUT: u32 = 255;
84pub const NAME_MAX: u32 = 255;
85pub const PATH_MAX: u32 = 4096;
86pub const PIPE_BUF: u32 = 4096;
87pub const XATTR_NAME_MAX: u32 = 255;
88pub const XATTR_SIZE_MAX: u32 = 65536;
89pub const XATTR_LIST_MAX: u32 = 65536;
90pub const RTSIG_MAX: u32 = 32;
91pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
92pub const PTHREAD_KEYS_MAX: u32 = 1024;
93pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
94pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
95pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
96pub const AIO_PRIO_DELTA_MAX: u32 = 20;
97pub const PTHREAD_STACK_MIN: u32 = 16384;
98pub const DELAYTIMER_MAX: u32 = 2147483647;
99pub const TTY_NAME_MAX: u32 = 32;
100pub const LOGIN_NAME_MAX: u32 = 256;
101pub const HOST_NAME_MAX: u32 = 64;
102pub const MQ_PRIO_MAX: u32 = 32768;
103pub const SEM_VALUE_MAX: u32 = 2147483647;
104pub const _BITS_POSIX2_LIM_H: u32 = 1;
105pub const _POSIX2_BC_BASE_MAX: u32 = 99;
106pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
107pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
108pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
109pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
110pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
111pub const _POSIX2_LINE_MAX: u32 = 2048;
112pub const _POSIX2_RE_DUP_MAX: u32 = 255;
113pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
114pub const BC_BASE_MAX: u32 = 99;
115pub const BC_DIM_MAX: u32 = 2048;
116pub const BC_SCALE_MAX: u32 = 99;
117pub const BC_STRING_MAX: u32 = 1000;
118pub const COLL_WEIGHTS_MAX: u32 = 255;
119pub const EXPR_NEST_MAX: u32 = 32;
120pub const LINE_MAX: u32 = 2048;
121pub const CHARCLASS_NAME_MAX: u32 = 2048;
122pub const RE_DUP_MAX: u32 = 32767;
123pub const LUAI_BITSINT: u32 = 32;
124pub const LUA_INT_INT: u32 = 1;
125pub const LUA_INT_LONG: u32 = 2;
126pub const LUA_INT_LONGLONG: u32 = 3;
127pub const LUA_FLOAT_FLOAT: u32 = 1;
128pub const LUA_FLOAT_DOUBLE: u32 = 2;
129pub const LUA_FLOAT_LONGDOUBLE: u32 = 3;
130pub const LUA_INT_TYPE: u32 = 3;
131pub const LUA_FLOAT_TYPE: u32 = 2;
132pub const LUA_PATH_SEP: &[u8; 2] = b";\0";
133pub const LUA_PATH_MARK: &[u8; 2] = b"?\0";
134pub const LUA_EXEC_DIR: &[u8; 2] = b"!\0";
135pub const LUA_ROOT: &[u8; 12] = b"/usr/local/\0";
136pub const LUA_DIRSEP: &[u8; 2] = b"/\0";
137pub const LUA_NUMBER_FRMLEN: &[u8; 1] = b"\0";
138pub const LUA_NUMBER_FMT: &[u8; 6] = b"%.14g\0";
139pub const LUA_INTEGER_FRMLEN: &[u8; 3] = b"ll\0";
140pub const _STDINT_H: u32 = 1;
141pub const _BITS_TYPES_H: u32 = 1;
142pub const __TIMESIZE: u32 = 64;
143pub const _BITS_TYPESIZES_H: u32 = 1;
144pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
145pub const __INO_T_MATCHES_INO64_T: u32 = 1;
146pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
147pub const __STATFS_MATCHES_STATFS64: u32 = 1;
148pub const __FD_SETSIZE: u32 = 1024;
149pub const _BITS_TIME64_H: u32 = 1;
150pub const _BITS_WCHAR_H: u32 = 1;
151pub const _BITS_STDINT_INTN_H: u32 = 1;
152pub const _BITS_STDINT_UINTN_H: u32 = 1;
153pub const INT8_MIN: i32 = -128;
154pub const INT16_MIN: i32 = -32768;
155pub const INT32_MIN: i32 = -2147483648;
156pub const INT8_MAX: u32 = 127;
157pub const INT16_MAX: u32 = 32767;
158pub const INT32_MAX: u32 = 2147483647;
159pub const UINT8_MAX: u32 = 255;
160pub const UINT16_MAX: u32 = 65535;
161pub const UINT32_MAX: u32 = 4294967295;
162pub const INT_LEAST8_MIN: i32 = -128;
163pub const INT_LEAST16_MIN: i32 = -32768;
164pub const INT_LEAST32_MIN: i32 = -2147483648;
165pub const INT_LEAST8_MAX: u32 = 127;
166pub const INT_LEAST16_MAX: u32 = 32767;
167pub const INT_LEAST32_MAX: u32 = 2147483647;
168pub const UINT_LEAST8_MAX: u32 = 255;
169pub const UINT_LEAST16_MAX: u32 = 65535;
170pub const UINT_LEAST32_MAX: u32 = 4294967295;
171pub const INT_FAST8_MIN: i32 = -128;
172pub const INT_FAST16_MIN: i64 = -9223372036854775808;
173pub const INT_FAST32_MIN: i64 = -9223372036854775808;
174pub const INT_FAST8_MAX: u32 = 127;
175pub const INT_FAST16_MAX: u64 = 9223372036854775807;
176pub const INT_FAST32_MAX: u64 = 9223372036854775807;
177pub const UINT_FAST8_MAX: u32 = 255;
178pub const UINT_FAST16_MAX: i32 = -1;
179pub const UINT_FAST32_MAX: i32 = -1;
180pub const INTPTR_MIN: i64 = -9223372036854775808;
181pub const INTPTR_MAX: u64 = 9223372036854775807;
182pub const UINTPTR_MAX: i32 = -1;
183pub const PTRDIFF_MIN: i64 = -9223372036854775808;
184pub const PTRDIFF_MAX: u64 = 9223372036854775807;
185pub const SIG_ATOMIC_MIN: i32 = -2147483648;
186pub const SIG_ATOMIC_MAX: u32 = 2147483647;
187pub const SIZE_MAX: i32 = -1;
188pub const WINT_MIN: u32 = 0;
189pub const WINT_MAX: u32 = 4294967295;
190pub const LUAI_MAXSTACK: u32 = 1000000;
191pub const LUA_IDSIZE: u32 = 60;
192pub const LUA_VERSION_MAJOR: &[u8; 2] = b"5\0";
193pub const LUA_VERSION_MINOR: &[u8; 2] = b"3\0";
194pub const LUA_VERSION_NUM: u32 = 503;
195pub const LUA_VERSION_RELEASE: &[u8; 2] = b"6\0";
196pub const LUA_VERSION: &[u8; 8] = b"Lua 5.3\0";
197pub const LUA_RELEASE: &[u8; 10] = b"Lua 5.3.6\0";
198pub const LUA_COPYRIGHT: &[u8; 52] = b"Lua 5.3.6 Copyright (C) 1994-2020 Lua.org, PUC-Rio\0";
199pub const LUA_AUTHORS: &[u8; 48] = b"R. Ierusalimschy, L. H. de Figueiredo, W. Celes\0";
200pub const LUA_SIGNATURE: &[u8; 5] = b"\x1BLua\0";
201pub const LUA_MULTRET: i32 = -1;
202pub const LUA_REGISTRYINDEX: i32 = -1001000;
203pub const LUA_OK: u32 = 0;
204pub const LUA_YIELD: u32 = 1;
205pub const LUA_ERRRUN: u32 = 2;
206pub const LUA_ERRSYNTAX: u32 = 3;
207pub const LUA_ERRMEM: u32 = 4;
208pub const LUA_ERRGCMM: u32 = 5;
209pub const LUA_ERRERR: u32 = 6;
210pub const LUA_TNONE: i32 = -1;
211pub const LUA_TNIL: u32 = 0;
212pub const LUA_TBOOLEAN: u32 = 1;
213pub const LUA_TLIGHTUSERDATA: u32 = 2;
214pub const LUA_TNUMBER: u32 = 3;
215pub const LUA_TSTRING: u32 = 4;
216pub const LUA_TTABLE: u32 = 5;
217pub const LUA_TFUNCTION: u32 = 6;
218pub const LUA_TUSERDATA: u32 = 7;
219pub const LUA_TTHREAD: u32 = 8;
220pub const LUA_NUMTAGS: u32 = 9;
221pub const LUA_MINSTACK: u32 = 20;
222pub const LUA_RIDX_MAINTHREAD: u32 = 1;
223pub const LUA_RIDX_GLOBALS: u32 = 2;
224pub const LUA_RIDX_LAST: u32 = 2;
225pub const LUA_OPADD: u32 = 0;
226pub const LUA_OPSUB: u32 = 1;
227pub const LUA_OPMUL: u32 = 2;
228pub const LUA_OPMOD: u32 = 3;
229pub const LUA_OPPOW: u32 = 4;
230pub const LUA_OPDIV: u32 = 5;
231pub const LUA_OPIDIV: u32 = 6;
232pub const LUA_OPBAND: u32 = 7;
233pub const LUA_OPBOR: u32 = 8;
234pub const LUA_OPBXOR: u32 = 9;
235pub const LUA_OPSHL: u32 = 10;
236pub const LUA_OPSHR: u32 = 11;
237pub const LUA_OPUNM: u32 = 12;
238pub const LUA_OPBNOT: u32 = 13;
239pub const LUA_OPEQ: u32 = 0;
240pub const LUA_OPLT: u32 = 1;
241pub const LUA_OPLE: u32 = 2;
242pub const LUA_GCSTOP: u32 = 0;
243pub const LUA_GCRESTART: u32 = 1;
244pub const LUA_GCCOLLECT: u32 = 2;
245pub const LUA_GCCOUNT: u32 = 3;
246pub const LUA_GCCOUNTB: u32 = 4;
247pub const LUA_GCSTEP: u32 = 5;
248pub const LUA_GCSETPAUSE: u32 = 6;
249pub const LUA_GCSETSTEPMUL: u32 = 7;
250pub const LUA_GCISRUNNING: u32 = 9;
251pub const LUA_HOOKCALL: u32 = 0;
252pub const LUA_HOOKRET: u32 = 1;
253pub const LUA_HOOKLINE: u32 = 2;
254pub const LUA_HOOKCOUNT: u32 = 3;
255pub const LUA_HOOKTAILCALL: u32 = 4;
256pub const LUA_MASKCALL: u32 = 1;
257pub const LUA_MASKRET: u32 = 2;
258pub const LUA_MASKLINE: u32 = 4;
259pub const LUA_MASKCOUNT: u32 = 8;
260pub const LUA_VERSUFFIX: &[u8; 5] = b"_5_3\0";
261pub const LUA_COLIBNAME: &[u8; 10] = b"coroutine\0";
262pub const LUA_TABLIBNAME: &[u8; 6] = b"table\0";
263pub const LUA_IOLIBNAME: &[u8; 3] = b"io\0";
264pub const LUA_OSLIBNAME: &[u8; 3] = b"os\0";
265pub const LUA_STRLIBNAME: &[u8; 7] = b"string\0";
266pub const LUA_UTF8LIBNAME: &[u8; 5] = b"utf8\0";
267pub const LUA_BITLIBNAME: &[u8; 6] = b"bit32\0";
268pub const LUA_MATHLIBNAME: &[u8; 5] = b"math\0";
269pub const LUA_DBLIBNAME: &[u8; 6] = b"debug\0";
270pub const LUA_LOADLIBNAME: &[u8; 8] = b"package\0";
271pub const _STDIO_H: u32 = 1;
272pub const _____fpos_t_defined: u32 = 1;
273pub const ____mbstate_t_defined: u32 = 1;
274pub const _____fpos64_t_defined: u32 = 1;
275pub const ____FILE_defined: u32 = 1;
276pub const __FILE_defined: u32 = 1;
277pub const __struct_FILE_defined: u32 = 1;
278pub const _IO_EOF_SEEN: u32 = 16;
279pub const _IO_ERR_SEEN: u32 = 32;
280pub const _IO_USER_LOCK: u32 = 32768;
281pub const _IOFBF: u32 = 0;
282pub const _IOLBF: u32 = 1;
283pub const _IONBF: u32 = 2;
284pub const BUFSIZ: u32 = 8192;
285pub const EOF: i32 = -1;
286pub const SEEK_SET: u32 = 0;
287pub const SEEK_CUR: u32 = 1;
288pub const SEEK_END: u32 = 2;
289pub const P_tmpdir: &[u8; 5] = b"/tmp\0";
290pub const _BITS_STDIO_LIM_H: u32 = 1;
291pub const L_tmpnam: u32 = 20;
292pub const TMP_MAX: u32 = 238328;
293pub const FILENAME_MAX: u32 = 4096;
294pub const L_ctermid: u32 = 9;
295pub const FOPEN_MAX: u32 = 16;
296pub const LUA_ERRFILE: u32 = 7;
297pub const LUA_LOADED_TABLE: &[u8; 8] = b"_LOADED\0";
298pub const LUA_PRELOAD_TABLE: &[u8; 9] = b"_PRELOAD\0";
299pub const LUA_NOREF: i32 = -2;
300pub const LUA_REFNIL: i32 = -1;
301pub const LUA_FILEHANDLE: &[u8; 6] = b"FILE*\0";
302pub type va_list = __builtin_va_list;
303pub type __gnuc_va_list = __builtin_va_list;
304pub type wchar_t = ::std::os::raw::c_int;
305#[repr(C)]
306#[repr(align(16))]
307#[derive(Debug, Copy, Clone)]
308pub struct max_align_t {
309 pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
310 pub __bindgen_padding_0: u64,
311 pub __clang_max_align_nonce2: u128,
312}
313#[test]
314fn bindgen_test_layout_max_align_t() {
315 const UNINIT: ::std::mem::MaybeUninit<max_align_t> = ::std::mem::MaybeUninit::uninit();
316 let ptr = UNINIT.as_ptr();
317 assert_eq!(
318 ::std::mem::size_of::<max_align_t>(),
319 32usize,
320 concat!("Size of: ", stringify!(max_align_t))
321 );
322 assert_eq!(
323 ::std::mem::align_of::<max_align_t>(),
324 16usize,
325 concat!("Alignment of ", stringify!(max_align_t))
326 );
327 assert_eq!(
328 unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize },
329 0usize,
330 concat!(
331 "Offset of field: ",
332 stringify!(max_align_t),
333 "::",
334 stringify!(__clang_max_align_nonce1)
335 )
336 );
337 assert_eq!(
338 unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize },
339 16usize,
340 concat!(
341 "Offset of field: ",
342 stringify!(max_align_t),
343 "::",
344 stringify!(__clang_max_align_nonce2)
345 )
346 );
347}
348pub type __u_char = ::std::os::raw::c_uchar;
349pub type __u_short = ::std::os::raw::c_ushort;
350pub type __u_int = ::std::os::raw::c_uint;
351pub type __u_long = ::std::os::raw::c_ulong;
352pub type __int8_t = ::std::os::raw::c_schar;
353pub type __uint8_t = ::std::os::raw::c_uchar;
354pub type __int16_t = ::std::os::raw::c_short;
355pub type __uint16_t = ::std::os::raw::c_ushort;
356pub type __int32_t = ::std::os::raw::c_int;
357pub type __uint32_t = ::std::os::raw::c_uint;
358pub type __int64_t = ::std::os::raw::c_long;
359pub type __uint64_t = ::std::os::raw::c_ulong;
360pub type __int_least8_t = __int8_t;
361pub type __uint_least8_t = __uint8_t;
362pub type __int_least16_t = __int16_t;
363pub type __uint_least16_t = __uint16_t;
364pub type __int_least32_t = __int32_t;
365pub type __uint_least32_t = __uint32_t;
366pub type __int_least64_t = __int64_t;
367pub type __uint_least64_t = __uint64_t;
368pub type __quad_t = ::std::os::raw::c_long;
369pub type __u_quad_t = ::std::os::raw::c_ulong;
370pub type __intmax_t = ::std::os::raw::c_long;
371pub type __uintmax_t = ::std::os::raw::c_ulong;
372pub type __dev_t = ::std::os::raw::c_ulong;
373pub type __uid_t = ::std::os::raw::c_uint;
374pub type __gid_t = ::std::os::raw::c_uint;
375pub type __ino_t = ::std::os::raw::c_ulong;
376pub type __ino64_t = ::std::os::raw::c_ulong;
377pub type __mode_t = ::std::os::raw::c_uint;
378pub type __nlink_t = ::std::os::raw::c_ulong;
379pub type __off_t = ::std::os::raw::c_long;
380pub type __off64_t = ::std::os::raw::c_long;
381pub type __pid_t = ::std::os::raw::c_int;
382#[repr(C)]
383#[derive(Debug, Copy, Clone)]
384pub struct __fsid_t {
385 pub __val: [::std::os::raw::c_int; 2usize],
386}
387#[test]
388fn bindgen_test_layout___fsid_t() {
389 const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
390 let ptr = UNINIT.as_ptr();
391 assert_eq!(
392 ::std::mem::size_of::<__fsid_t>(),
393 8usize,
394 concat!("Size of: ", stringify!(__fsid_t))
395 );
396 assert_eq!(
397 ::std::mem::align_of::<__fsid_t>(),
398 4usize,
399 concat!("Alignment of ", stringify!(__fsid_t))
400 );
401 assert_eq!(
402 unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
403 0usize,
404 concat!(
405 "Offset of field: ",
406 stringify!(__fsid_t),
407 "::",
408 stringify!(__val)
409 )
410 );
411}
412pub type __clock_t = ::std::os::raw::c_long;
413pub type __rlim_t = ::std::os::raw::c_ulong;
414pub type __rlim64_t = ::std::os::raw::c_ulong;
415pub type __id_t = ::std::os::raw::c_uint;
416pub type __time_t = ::std::os::raw::c_long;
417pub type __useconds_t = ::std::os::raw::c_uint;
418pub type __suseconds_t = ::std::os::raw::c_long;
419pub type __daddr_t = ::std::os::raw::c_int;
420pub type __key_t = ::std::os::raw::c_int;
421pub type __clockid_t = ::std::os::raw::c_int;
422pub type __timer_t = *mut ::std::os::raw::c_void;
423pub type __blksize_t = ::std::os::raw::c_long;
424pub type __blkcnt_t = ::std::os::raw::c_long;
425pub type __blkcnt64_t = ::std::os::raw::c_long;
426pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
427pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
428pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
429pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
430pub type __fsword_t = ::std::os::raw::c_long;
431pub type __ssize_t = ::std::os::raw::c_long;
432pub type __syscall_slong_t = ::std::os::raw::c_long;
433pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
434pub type __loff_t = __off64_t;
435pub type __caddr_t = *mut ::std::os::raw::c_char;
436pub type __intptr_t = ::std::os::raw::c_long;
437pub type __socklen_t = ::std::os::raw::c_uint;
438pub type __sig_atomic_t = ::std::os::raw::c_int;
439pub type int_least8_t = __int_least8_t;
440pub type int_least16_t = __int_least16_t;
441pub type int_least32_t = __int_least32_t;
442pub type int_least64_t = __int_least64_t;
443pub type uint_least8_t = __uint_least8_t;
444pub type uint_least16_t = __uint_least16_t;
445pub type uint_least32_t = __uint_least32_t;
446pub type uint_least64_t = __uint_least64_t;
447pub type int_fast8_t = ::std::os::raw::c_schar;
448pub type int_fast16_t = ::std::os::raw::c_long;
449pub type int_fast32_t = ::std::os::raw::c_long;
450pub type int_fast64_t = ::std::os::raw::c_long;
451pub type uint_fast8_t = ::std::os::raw::c_uchar;
452pub type uint_fast16_t = ::std::os::raw::c_ulong;
453pub type uint_fast32_t = ::std::os::raw::c_ulong;
454pub type uint_fast64_t = ::std::os::raw::c_ulong;
455pub type intmax_t = __intmax_t;
456pub type uintmax_t = __uintmax_t;
457#[repr(C)]
458#[derive(Debug, Copy, Clone)]
459pub struct lua_State {
460 _unused: [u8; 0],
461}
462pub type lua_Number = f64;
463pub type lua_Integer = ::std::os::raw::c_longlong;
464pub type lua_Unsigned = ::std::os::raw::c_ulonglong;
465pub type lua_KContext = isize;
466pub type lua_CFunction =
467 ::std::option::Option<unsafe extern "C" fn(L: *mut lua_State) -> ::std::os::raw::c_int>;
468pub type lua_KFunction = ::std::option::Option<
469 unsafe extern "C" fn(
470 L: *mut lua_State,
471 status: ::std::os::raw::c_int,
472 ctx: lua_KContext,
473 ) -> ::std::os::raw::c_int,
474>;
475pub type lua_Reader = ::std::option::Option<
476 unsafe extern "C" fn(
477 L: *mut lua_State,
478 ud: *mut ::std::os::raw::c_void,
479 sz: *mut usize,
480 ) -> *const ::std::os::raw::c_char,
481>;
482pub type lua_Writer = ::std::option::Option<
483 unsafe extern "C" fn(
484 L: *mut lua_State,
485 p: *const ::std::os::raw::c_void,
486 sz: usize,
487 ud: *mut ::std::os::raw::c_void,
488 ) -> ::std::os::raw::c_int,
489>;
490pub type lua_Alloc = ::std::option::Option<
491 unsafe extern "C" fn(
492 ud: *mut ::std::os::raw::c_void,
493 ptr: *mut ::std::os::raw::c_void,
494 osize: usize,
495 nsize: usize,
496 ) -> *mut ::std::os::raw::c_void,
497>;
498extern "C" {
499 pub static lua_ident: [::std::os::raw::c_char; 0usize];
500}
501extern "C" {
502 pub fn lua_newstate(f: lua_Alloc, ud: *mut ::std::os::raw::c_void) -> *mut lua_State;
503}
504extern "C" {
505 pub fn lua_close(L: *mut lua_State);
506}
507extern "C" {
508 pub fn lua_newthread(L: *mut lua_State) -> *mut lua_State;
509}
510extern "C" {
511 pub fn lua_atpanic(L: *mut lua_State, panicf: lua_CFunction) -> lua_CFunction;
512}
513extern "C" {
514 pub fn lua_version(L: *mut lua_State) -> *const lua_Number;
515}
516extern "C" {
517 pub fn lua_absindex(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
518}
519extern "C" {
520 pub fn lua_gettop(L: *mut lua_State) -> ::std::os::raw::c_int;
521}
522extern "C" {
523 pub fn lua_settop(L: *mut lua_State, idx: ::std::os::raw::c_int);
524}
525extern "C" {
526 pub fn lua_pushvalue(L: *mut lua_State, idx: ::std::os::raw::c_int);
527}
528extern "C" {
529 pub fn lua_rotate(L: *mut lua_State, idx: ::std::os::raw::c_int, n: ::std::os::raw::c_int);
530}
531extern "C" {
532 pub fn lua_copy(
533 L: *mut lua_State,
534 fromidx: ::std::os::raw::c_int,
535 toidx: ::std::os::raw::c_int,
536 );
537}
538extern "C" {
539 pub fn lua_checkstack(L: *mut lua_State, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
540}
541extern "C" {
542 pub fn lua_xmove(from: *mut lua_State, to: *mut lua_State, n: ::std::os::raw::c_int);
543}
544extern "C" {
545 pub fn lua_isnumber(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
546}
547extern "C" {
548 pub fn lua_isstring(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
549}
550extern "C" {
551 pub fn lua_iscfunction(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
552}
553extern "C" {
554 pub fn lua_isinteger(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
555}
556extern "C" {
557 pub fn lua_isuserdata(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
558}
559extern "C" {
560 pub fn lua_type(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
561}
562extern "C" {
563 pub fn lua_typename(
564 L: *mut lua_State,
565 tp: ::std::os::raw::c_int,
566 ) -> *const ::std::os::raw::c_char;
567}
568extern "C" {
569 pub fn lua_tonumberx(
570 L: *mut lua_State,
571 idx: ::std::os::raw::c_int,
572 isnum: *mut ::std::os::raw::c_int,
573 ) -> lua_Number;
574}
575extern "C" {
576 pub fn lua_tointegerx(
577 L: *mut lua_State,
578 idx: ::std::os::raw::c_int,
579 isnum: *mut ::std::os::raw::c_int,
580 ) -> lua_Integer;
581}
582extern "C" {
583 pub fn lua_toboolean(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
584}
585extern "C" {
586 pub fn lua_tolstring(
587 L: *mut lua_State,
588 idx: ::std::os::raw::c_int,
589 len: *mut usize,
590 ) -> *const ::std::os::raw::c_char;
591}
592extern "C" {
593 pub fn lua_rawlen(L: *mut lua_State, idx: ::std::os::raw::c_int) -> usize;
594}
595extern "C" {
596 pub fn lua_tocfunction(L: *mut lua_State, idx: ::std::os::raw::c_int) -> lua_CFunction;
597}
598extern "C" {
599 pub fn lua_touserdata(
600 L: *mut lua_State,
601 idx: ::std::os::raw::c_int,
602 ) -> *mut ::std::os::raw::c_void;
603}
604extern "C" {
605 pub fn lua_tothread(L: *mut lua_State, idx: ::std::os::raw::c_int) -> *mut lua_State;
606}
607extern "C" {
608 pub fn lua_topointer(
609 L: *mut lua_State,
610 idx: ::std::os::raw::c_int,
611 ) -> *const ::std::os::raw::c_void;
612}
613extern "C" {
614 pub fn lua_arith(L: *mut lua_State, op: ::std::os::raw::c_int);
615}
616extern "C" {
617 pub fn lua_rawequal(
618 L: *mut lua_State,
619 idx1: ::std::os::raw::c_int,
620 idx2: ::std::os::raw::c_int,
621 ) -> ::std::os::raw::c_int;
622}
623extern "C" {
624 pub fn lua_compare(
625 L: *mut lua_State,
626 idx1: ::std::os::raw::c_int,
627 idx2: ::std::os::raw::c_int,
628 op: ::std::os::raw::c_int,
629 ) -> ::std::os::raw::c_int;
630}
631extern "C" {
632 pub fn lua_pushnil(L: *mut lua_State);
633}
634extern "C" {
635 pub fn lua_pushnumber(L: *mut lua_State, n: lua_Number);
636}
637extern "C" {
638 pub fn lua_pushinteger(L: *mut lua_State, n: lua_Integer);
639}
640extern "C" {
641 pub fn lua_pushlstring(
642 L: *mut lua_State,
643 s: *const ::std::os::raw::c_char,
644 len: usize,
645 ) -> *const ::std::os::raw::c_char;
646}
647extern "C" {
648 pub fn lua_pushstring(
649 L: *mut lua_State,
650 s: *const ::std::os::raw::c_char,
651 ) -> *const ::std::os::raw::c_char;
652}
653extern "C" {
654 pub fn lua_pushvfstring(
655 L: *mut lua_State,
656 fmt: *const ::std::os::raw::c_char,
657 argp: *mut __va_list_tag,
658 ) -> *const ::std::os::raw::c_char;
659}
660extern "C" {
661 pub fn lua_pushfstring(
662 L: *mut lua_State,
663 fmt: *const ::std::os::raw::c_char,
664 ...
665 ) -> *const ::std::os::raw::c_char;
666}
667extern "C" {
668 pub fn lua_pushcclosure(L: *mut lua_State, fn_: lua_CFunction, n: ::std::os::raw::c_int);
669}
670extern "C" {
671 pub fn lua_pushboolean(L: *mut lua_State, b: ::std::os::raw::c_int);
672}
673extern "C" {
674 pub fn lua_pushlightuserdata(L: *mut lua_State, p: *mut ::std::os::raw::c_void);
675}
676extern "C" {
677 pub fn lua_pushthread(L: *mut lua_State) -> ::std::os::raw::c_int;
678}
679extern "C" {
680 pub fn lua_getglobal(
681 L: *mut lua_State,
682 name: *const ::std::os::raw::c_char,
683 ) -> ::std::os::raw::c_int;
684}
685extern "C" {
686 pub fn lua_gettable(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
687}
688extern "C" {
689 pub fn lua_getfield(
690 L: *mut lua_State,
691 idx: ::std::os::raw::c_int,
692 k: *const ::std::os::raw::c_char,
693 ) -> ::std::os::raw::c_int;
694}
695extern "C" {
696 pub fn lua_geti(
697 L: *mut lua_State,
698 idx: ::std::os::raw::c_int,
699 n: lua_Integer,
700 ) -> ::std::os::raw::c_int;
701}
702extern "C" {
703 pub fn lua_rawget(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
704}
705extern "C" {
706 pub fn lua_rawgeti(
707 L: *mut lua_State,
708 idx: ::std::os::raw::c_int,
709 n: lua_Integer,
710 ) -> ::std::os::raw::c_int;
711}
712extern "C" {
713 pub fn lua_rawgetp(
714 L: *mut lua_State,
715 idx: ::std::os::raw::c_int,
716 p: *const ::std::os::raw::c_void,
717 ) -> ::std::os::raw::c_int;
718}
719extern "C" {
720 pub fn lua_createtable(
721 L: *mut lua_State,
722 narr: ::std::os::raw::c_int,
723 nrec: ::std::os::raw::c_int,
724 );
725}
726extern "C" {
727 pub fn lua_newuserdata(L: *mut lua_State, sz: usize) -> *mut ::std::os::raw::c_void;
728}
729extern "C" {
730 pub fn lua_getmetatable(
731 L: *mut lua_State,
732 objindex: ::std::os::raw::c_int,
733 ) -> ::std::os::raw::c_int;
734}
735extern "C" {
736 pub fn lua_getuservalue(L: *mut lua_State, idx: ::std::os::raw::c_int)
737 -> ::std::os::raw::c_int;
738}
739extern "C" {
740 pub fn lua_setglobal(L: *mut lua_State, name: *const ::std::os::raw::c_char);
741}
742extern "C" {
743 pub fn lua_settable(L: *mut lua_State, idx: ::std::os::raw::c_int);
744}
745extern "C" {
746 pub fn lua_setfield(
747 L: *mut lua_State,
748 idx: ::std::os::raw::c_int,
749 k: *const ::std::os::raw::c_char,
750 );
751}
752extern "C" {
753 pub fn lua_seti(L: *mut lua_State, idx: ::std::os::raw::c_int, n: lua_Integer);
754}
755extern "C" {
756 pub fn lua_rawset(L: *mut lua_State, idx: ::std::os::raw::c_int);
757}
758extern "C" {
759 pub fn lua_rawseti(L: *mut lua_State, idx: ::std::os::raw::c_int, n: lua_Integer);
760}
761extern "C" {
762 pub fn lua_rawsetp(
763 L: *mut lua_State,
764 idx: ::std::os::raw::c_int,
765 p: *const ::std::os::raw::c_void,
766 );
767}
768extern "C" {
769 pub fn lua_setmetatable(
770 L: *mut lua_State,
771 objindex: ::std::os::raw::c_int,
772 ) -> ::std::os::raw::c_int;
773}
774extern "C" {
775 pub fn lua_setuservalue(L: *mut lua_State, idx: ::std::os::raw::c_int);
776}
777extern "C" {
778 pub fn lua_callk(
779 L: *mut lua_State,
780 nargs: ::std::os::raw::c_int,
781 nresults: ::std::os::raw::c_int,
782 ctx: lua_KContext,
783 k: lua_KFunction,
784 );
785}
786extern "C" {
787 pub fn lua_pcallk(
788 L: *mut lua_State,
789 nargs: ::std::os::raw::c_int,
790 nresults: ::std::os::raw::c_int,
791 errfunc: ::std::os::raw::c_int,
792 ctx: lua_KContext,
793 k: lua_KFunction,
794 ) -> ::std::os::raw::c_int;
795}
796extern "C" {
797 pub fn lua_load(
798 L: *mut lua_State,
799 reader: lua_Reader,
800 dt: *mut ::std::os::raw::c_void,
801 chunkname: *const ::std::os::raw::c_char,
802 mode: *const ::std::os::raw::c_char,
803 ) -> ::std::os::raw::c_int;
804}
805extern "C" {
806 pub fn lua_dump(
807 L: *mut lua_State,
808 writer: lua_Writer,
809 data: *mut ::std::os::raw::c_void,
810 strip: ::std::os::raw::c_int,
811 ) -> ::std::os::raw::c_int;
812}
813extern "C" {
814 pub fn lua_yieldk(
815 L: *mut lua_State,
816 nresults: ::std::os::raw::c_int,
817 ctx: lua_KContext,
818 k: lua_KFunction,
819 ) -> ::std::os::raw::c_int;
820}
821extern "C" {
822 pub fn lua_resume(
823 L: *mut lua_State,
824 from: *mut lua_State,
825 narg: ::std::os::raw::c_int,
826 ) -> ::std::os::raw::c_int;
827}
828extern "C" {
829 pub fn lua_status(L: *mut lua_State) -> ::std::os::raw::c_int;
830}
831extern "C" {
832 pub fn lua_isyieldable(L: *mut lua_State) -> ::std::os::raw::c_int;
833}
834extern "C" {
835 pub fn lua_gc(
836 L: *mut lua_State,
837 what: ::std::os::raw::c_int,
838 data: ::std::os::raw::c_int,
839 ) -> ::std::os::raw::c_int;
840}
841extern "C" {
842 pub fn lua_error(L: *mut lua_State) -> ::std::os::raw::c_int;
843}
844extern "C" {
845 pub fn lua_next(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
846}
847extern "C" {
848 pub fn lua_concat(L: *mut lua_State, n: ::std::os::raw::c_int);
849}
850extern "C" {
851 pub fn lua_len(L: *mut lua_State, idx: ::std::os::raw::c_int);
852}
853extern "C" {
854 pub fn lua_stringtonumber(L: *mut lua_State, s: *const ::std::os::raw::c_char) -> usize;
855}
856extern "C" {
857 pub fn lua_getallocf(L: *mut lua_State, ud: *mut *mut ::std::os::raw::c_void) -> lua_Alloc;
858}
859extern "C" {
860 pub fn lua_setallocf(L: *mut lua_State, f: lua_Alloc, ud: *mut ::std::os::raw::c_void);
861}
862pub type lua_Hook =
863 ::std::option::Option<unsafe extern "C" fn(L: *mut lua_State, ar: *mut lua_Debug)>;
864extern "C" {
865 pub fn lua_getstack(
866 L: *mut lua_State,
867 level: ::std::os::raw::c_int,
868 ar: *mut lua_Debug,
869 ) -> ::std::os::raw::c_int;
870}
871extern "C" {
872 pub fn lua_getinfo(
873 L: *mut lua_State,
874 what: *const ::std::os::raw::c_char,
875 ar: *mut lua_Debug,
876 ) -> ::std::os::raw::c_int;
877}
878extern "C" {
879 pub fn lua_getlocal(
880 L: *mut lua_State,
881 ar: *const lua_Debug,
882 n: ::std::os::raw::c_int,
883 ) -> *const ::std::os::raw::c_char;
884}
885extern "C" {
886 pub fn lua_setlocal(
887 L: *mut lua_State,
888 ar: *const lua_Debug,
889 n: ::std::os::raw::c_int,
890 ) -> *const ::std::os::raw::c_char;
891}
892extern "C" {
893 pub fn lua_getupvalue(
894 L: *mut lua_State,
895 funcindex: ::std::os::raw::c_int,
896 n: ::std::os::raw::c_int,
897 ) -> *const ::std::os::raw::c_char;
898}
899extern "C" {
900 pub fn lua_setupvalue(
901 L: *mut lua_State,
902 funcindex: ::std::os::raw::c_int,
903 n: ::std::os::raw::c_int,
904 ) -> *const ::std::os::raw::c_char;
905}
906extern "C" {
907 pub fn lua_upvalueid(
908 L: *mut lua_State,
909 fidx: ::std::os::raw::c_int,
910 n: ::std::os::raw::c_int,
911 ) -> *mut ::std::os::raw::c_void;
912}
913extern "C" {
914 pub fn lua_upvaluejoin(
915 L: *mut lua_State,
916 fidx1: ::std::os::raw::c_int,
917 n1: ::std::os::raw::c_int,
918 fidx2: ::std::os::raw::c_int,
919 n2: ::std::os::raw::c_int,
920 );
921}
922extern "C" {
923 pub fn lua_sethook(
924 L: *mut lua_State,
925 func: lua_Hook,
926 mask: ::std::os::raw::c_int,
927 count: ::std::os::raw::c_int,
928 );
929}
930extern "C" {
931 pub fn lua_gethook(L: *mut lua_State) -> lua_Hook;
932}
933extern "C" {
934 pub fn lua_gethookmask(L: *mut lua_State) -> ::std::os::raw::c_int;
935}
936extern "C" {
937 pub fn lua_gethookcount(L: *mut lua_State) -> ::std::os::raw::c_int;
938}
939#[repr(C)]
940#[derive(Debug, Copy, Clone)]
941pub struct lua_Debug {
942 pub event: ::std::os::raw::c_int,
943 pub name: *const ::std::os::raw::c_char,
944 pub namewhat: *const ::std::os::raw::c_char,
945 pub what: *const ::std::os::raw::c_char,
946 pub source: *const ::std::os::raw::c_char,
947 pub currentline: ::std::os::raw::c_int,
948 pub linedefined: ::std::os::raw::c_int,
949 pub lastlinedefined: ::std::os::raw::c_int,
950 pub nups: ::std::os::raw::c_uchar,
951 pub nparams: ::std::os::raw::c_uchar,
952 pub isvararg: ::std::os::raw::c_char,
953 pub istailcall: ::std::os::raw::c_char,
954 pub short_src: [::std::os::raw::c_char; 60usize],
955 pub i_ci: *mut CallInfo,
956}
957#[test]
958fn bindgen_test_layout_lua_Debug() {
959 const UNINIT: ::std::mem::MaybeUninit<lua_Debug> = ::std::mem::MaybeUninit::uninit();
960 let ptr = UNINIT.as_ptr();
961 assert_eq!(
962 ::std::mem::size_of::<lua_Debug>(),
963 128usize,
964 concat!("Size of: ", stringify!(lua_Debug))
965 );
966 assert_eq!(
967 ::std::mem::align_of::<lua_Debug>(),
968 8usize,
969 concat!("Alignment of ", stringify!(lua_Debug))
970 );
971 assert_eq!(
972 unsafe { ::std::ptr::addr_of!((*ptr).event) as usize - ptr as usize },
973 0usize,
974 concat!(
975 "Offset of field: ",
976 stringify!(lua_Debug),
977 "::",
978 stringify!(event)
979 )
980 );
981 assert_eq!(
982 unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
983 8usize,
984 concat!(
985 "Offset of field: ",
986 stringify!(lua_Debug),
987 "::",
988 stringify!(name)
989 )
990 );
991 assert_eq!(
992 unsafe { ::std::ptr::addr_of!((*ptr).namewhat) as usize - ptr as usize },
993 16usize,
994 concat!(
995 "Offset of field: ",
996 stringify!(lua_Debug),
997 "::",
998 stringify!(namewhat)
999 )
1000 );
1001 assert_eq!(
1002 unsafe { ::std::ptr::addr_of!((*ptr).what) as usize - ptr as usize },
1003 24usize,
1004 concat!(
1005 "Offset of field: ",
1006 stringify!(lua_Debug),
1007 "::",
1008 stringify!(what)
1009 )
1010 );
1011 assert_eq!(
1012 unsafe { ::std::ptr::addr_of!((*ptr).source) as usize - ptr as usize },
1013 32usize,
1014 concat!(
1015 "Offset of field: ",
1016 stringify!(lua_Debug),
1017 "::",
1018 stringify!(source)
1019 )
1020 );
1021 assert_eq!(
1022 unsafe { ::std::ptr::addr_of!((*ptr).currentline) as usize - ptr as usize },
1023 40usize,
1024 concat!(
1025 "Offset of field: ",
1026 stringify!(lua_Debug),
1027 "::",
1028 stringify!(currentline)
1029 )
1030 );
1031 assert_eq!(
1032 unsafe { ::std::ptr::addr_of!((*ptr).linedefined) as usize - ptr as usize },
1033 44usize,
1034 concat!(
1035 "Offset of field: ",
1036 stringify!(lua_Debug),
1037 "::",
1038 stringify!(linedefined)
1039 )
1040 );
1041 assert_eq!(
1042 unsafe { ::std::ptr::addr_of!((*ptr).lastlinedefined) as usize - ptr as usize },
1043 48usize,
1044 concat!(
1045 "Offset of field: ",
1046 stringify!(lua_Debug),
1047 "::",
1048 stringify!(lastlinedefined)
1049 )
1050 );
1051 assert_eq!(
1052 unsafe { ::std::ptr::addr_of!((*ptr).nups) as usize - ptr as usize },
1053 52usize,
1054 concat!(
1055 "Offset of field: ",
1056 stringify!(lua_Debug),
1057 "::",
1058 stringify!(nups)
1059 )
1060 );
1061 assert_eq!(
1062 unsafe { ::std::ptr::addr_of!((*ptr).nparams) as usize - ptr as usize },
1063 53usize,
1064 concat!(
1065 "Offset of field: ",
1066 stringify!(lua_Debug),
1067 "::",
1068 stringify!(nparams)
1069 )
1070 );
1071 assert_eq!(
1072 unsafe { ::std::ptr::addr_of!((*ptr).isvararg) as usize - ptr as usize },
1073 54usize,
1074 concat!(
1075 "Offset of field: ",
1076 stringify!(lua_Debug),
1077 "::",
1078 stringify!(isvararg)
1079 )
1080 );
1081 assert_eq!(
1082 unsafe { ::std::ptr::addr_of!((*ptr).istailcall) as usize - ptr as usize },
1083 55usize,
1084 concat!(
1085 "Offset of field: ",
1086 stringify!(lua_Debug),
1087 "::",
1088 stringify!(istailcall)
1089 )
1090 );
1091 assert_eq!(
1092 unsafe { ::std::ptr::addr_of!((*ptr).short_src) as usize - ptr as usize },
1093 56usize,
1094 concat!(
1095 "Offset of field: ",
1096 stringify!(lua_Debug),
1097 "::",
1098 stringify!(short_src)
1099 )
1100 );
1101 assert_eq!(
1102 unsafe { ::std::ptr::addr_of!((*ptr).i_ci) as usize - ptr as usize },
1103 120usize,
1104 concat!(
1105 "Offset of field: ",
1106 stringify!(lua_Debug),
1107 "::",
1108 stringify!(i_ci)
1109 )
1110 );
1111}
1112extern "C" {
1113 pub fn luaopen_base(L: *mut lua_State) -> ::std::os::raw::c_int;
1114}
1115extern "C" {
1116 pub fn luaopen_coroutine(L: *mut lua_State) -> ::std::os::raw::c_int;
1117}
1118extern "C" {
1119 pub fn luaopen_table(L: *mut lua_State) -> ::std::os::raw::c_int;
1120}
1121extern "C" {
1122 pub fn luaopen_io(L: *mut lua_State) -> ::std::os::raw::c_int;
1123}
1124extern "C" {
1125 pub fn luaopen_os(L: *mut lua_State) -> ::std::os::raw::c_int;
1126}
1127extern "C" {
1128 pub fn luaopen_string(L: *mut lua_State) -> ::std::os::raw::c_int;
1129}
1130extern "C" {
1131 pub fn luaopen_utf8(L: *mut lua_State) -> ::std::os::raw::c_int;
1132}
1133extern "C" {
1134 pub fn luaopen_bit32(L: *mut lua_State) -> ::std::os::raw::c_int;
1135}
1136extern "C" {
1137 pub fn luaopen_math(L: *mut lua_State) -> ::std::os::raw::c_int;
1138}
1139extern "C" {
1140 pub fn luaopen_debug(L: *mut lua_State) -> ::std::os::raw::c_int;
1141}
1142extern "C" {
1143 pub fn luaopen_package(L: *mut lua_State) -> ::std::os::raw::c_int;
1144}
1145extern "C" {
1146 pub fn luaL_openlibs(L: *mut lua_State);
1147}
1148#[repr(C)]
1149#[derive(Copy, Clone)]
1150pub struct __mbstate_t {
1151 pub __count: ::std::os::raw::c_int,
1152 pub __value: __mbstate_t__bindgen_ty_1,
1153}
1154#[repr(C)]
1155#[derive(Copy, Clone)]
1156pub union __mbstate_t__bindgen_ty_1 {
1157 pub __wch: ::std::os::raw::c_uint,
1158 pub __wchb: [::std::os::raw::c_char; 4usize],
1159}
1160#[test]
1161fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
1162 const UNINIT: ::std::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> =
1163 ::std::mem::MaybeUninit::uninit();
1164 let ptr = UNINIT.as_ptr();
1165 assert_eq!(
1166 ::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
1167 4usize,
1168 concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
1169 );
1170 assert_eq!(
1171 ::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
1172 4usize,
1173 concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
1174 );
1175 assert_eq!(
1176 unsafe { ::std::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize },
1177 0usize,
1178 concat!(
1179 "Offset of field: ",
1180 stringify!(__mbstate_t__bindgen_ty_1),
1181 "::",
1182 stringify!(__wch)
1183 )
1184 );
1185 assert_eq!(
1186 unsafe { ::std::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize },
1187 0usize,
1188 concat!(
1189 "Offset of field: ",
1190 stringify!(__mbstate_t__bindgen_ty_1),
1191 "::",
1192 stringify!(__wchb)
1193 )
1194 );
1195}
1196#[test]
1197fn bindgen_test_layout___mbstate_t() {
1198 const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
1199 let ptr = UNINIT.as_ptr();
1200 assert_eq!(
1201 ::std::mem::size_of::<__mbstate_t>(),
1202 8usize,
1203 concat!("Size of: ", stringify!(__mbstate_t))
1204 );
1205 assert_eq!(
1206 ::std::mem::align_of::<__mbstate_t>(),
1207 4usize,
1208 concat!("Alignment of ", stringify!(__mbstate_t))
1209 );
1210 assert_eq!(
1211 unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
1212 0usize,
1213 concat!(
1214 "Offset of field: ",
1215 stringify!(__mbstate_t),
1216 "::",
1217 stringify!(__count)
1218 )
1219 );
1220 assert_eq!(
1221 unsafe { ::std::ptr::addr_of!((*ptr).__value) as usize - ptr as usize },
1222 4usize,
1223 concat!(
1224 "Offset of field: ",
1225 stringify!(__mbstate_t),
1226 "::",
1227 stringify!(__value)
1228 )
1229 );
1230}
1231#[repr(C)]
1232#[derive(Copy, Clone)]
1233pub struct _G_fpos_t {
1234 pub __pos: __off_t,
1235 pub __state: __mbstate_t,
1236}
1237#[test]
1238fn bindgen_test_layout__G_fpos_t() {
1239 const UNINIT: ::std::mem::MaybeUninit<_G_fpos_t> = ::std::mem::MaybeUninit::uninit();
1240 let ptr = UNINIT.as_ptr();
1241 assert_eq!(
1242 ::std::mem::size_of::<_G_fpos_t>(),
1243 16usize,
1244 concat!("Size of: ", stringify!(_G_fpos_t))
1245 );
1246 assert_eq!(
1247 ::std::mem::align_of::<_G_fpos_t>(),
1248 8usize,
1249 concat!("Alignment of ", stringify!(_G_fpos_t))
1250 );
1251 assert_eq!(
1252 unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
1253 0usize,
1254 concat!(
1255 "Offset of field: ",
1256 stringify!(_G_fpos_t),
1257 "::",
1258 stringify!(__pos)
1259 )
1260 );
1261 assert_eq!(
1262 unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
1263 8usize,
1264 concat!(
1265 "Offset of field: ",
1266 stringify!(_G_fpos_t),
1267 "::",
1268 stringify!(__state)
1269 )
1270 );
1271}
1272pub type __fpos_t = _G_fpos_t;
1273#[repr(C)]
1274#[derive(Copy, Clone)]
1275pub struct _G_fpos64_t {
1276 pub __pos: __off64_t,
1277 pub __state: __mbstate_t,
1278}
1279#[test]
1280fn bindgen_test_layout__G_fpos64_t() {
1281 const UNINIT: ::std::mem::MaybeUninit<_G_fpos64_t> = ::std::mem::MaybeUninit::uninit();
1282 let ptr = UNINIT.as_ptr();
1283 assert_eq!(
1284 ::std::mem::size_of::<_G_fpos64_t>(),
1285 16usize,
1286 concat!("Size of: ", stringify!(_G_fpos64_t))
1287 );
1288 assert_eq!(
1289 ::std::mem::align_of::<_G_fpos64_t>(),
1290 8usize,
1291 concat!("Alignment of ", stringify!(_G_fpos64_t))
1292 );
1293 assert_eq!(
1294 unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
1295 0usize,
1296 concat!(
1297 "Offset of field: ",
1298 stringify!(_G_fpos64_t),
1299 "::",
1300 stringify!(__pos)
1301 )
1302 );
1303 assert_eq!(
1304 unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
1305 8usize,
1306 concat!(
1307 "Offset of field: ",
1308 stringify!(_G_fpos64_t),
1309 "::",
1310 stringify!(__state)
1311 )
1312 );
1313}
1314pub type __fpos64_t = _G_fpos64_t;
1315pub type __FILE = _IO_FILE;
1316pub type FILE = _IO_FILE;
1317#[repr(C)]
1318#[derive(Debug, Copy, Clone)]
1319pub struct _IO_marker {
1320 _unused: [u8; 0],
1321}
1322#[repr(C)]
1323#[derive(Debug, Copy, Clone)]
1324pub struct _IO_codecvt {
1325 _unused: [u8; 0],
1326}
1327#[repr(C)]
1328#[derive(Debug, Copy, Clone)]
1329pub struct _IO_wide_data {
1330 _unused: [u8; 0],
1331}
1332pub type _IO_lock_t = ::std::os::raw::c_void;
1333#[repr(C)]
1334#[derive(Debug, Copy, Clone)]
1335pub struct _IO_FILE {
1336 pub _flags: ::std::os::raw::c_int,
1337 pub _IO_read_ptr: *mut ::std::os::raw::c_char,
1338 pub _IO_read_end: *mut ::std::os::raw::c_char,
1339 pub _IO_read_base: *mut ::std::os::raw::c_char,
1340 pub _IO_write_base: *mut ::std::os::raw::c_char,
1341 pub _IO_write_ptr: *mut ::std::os::raw::c_char,
1342 pub _IO_write_end: *mut ::std::os::raw::c_char,
1343 pub _IO_buf_base: *mut ::std::os::raw::c_char,
1344 pub _IO_buf_end: *mut ::std::os::raw::c_char,
1345 pub _IO_save_base: *mut ::std::os::raw::c_char,
1346 pub _IO_backup_base: *mut ::std::os::raw::c_char,
1347 pub _IO_save_end: *mut ::std::os::raw::c_char,
1348 pub _markers: *mut _IO_marker,
1349 pub _chain: *mut _IO_FILE,
1350 pub _fileno: ::std::os::raw::c_int,
1351 pub _flags2: ::std::os::raw::c_int,
1352 pub _old_offset: __off_t,
1353 pub _cur_column: ::std::os::raw::c_ushort,
1354 pub _vtable_offset: ::std::os::raw::c_schar,
1355 pub _shortbuf: [::std::os::raw::c_char; 1usize],
1356 pub _lock: *mut _IO_lock_t,
1357 pub _offset: __off64_t,
1358 pub _codecvt: *mut _IO_codecvt,
1359 pub _wide_data: *mut _IO_wide_data,
1360 pub _freeres_list: *mut _IO_FILE,
1361 pub _freeres_buf: *mut ::std::os::raw::c_void,
1362 pub __pad5: usize,
1363 pub _mode: ::std::os::raw::c_int,
1364 pub _unused2: [::std::os::raw::c_char; 20usize],
1365}
1366#[test]
1367fn bindgen_test_layout__IO_FILE() {
1368 const UNINIT: ::std::mem::MaybeUninit<_IO_FILE> = ::std::mem::MaybeUninit::uninit();
1369 let ptr = UNINIT.as_ptr();
1370 assert_eq!(
1371 ::std::mem::size_of::<_IO_FILE>(),
1372 216usize,
1373 concat!("Size of: ", stringify!(_IO_FILE))
1374 );
1375 assert_eq!(
1376 ::std::mem::align_of::<_IO_FILE>(),
1377 8usize,
1378 concat!("Alignment of ", stringify!(_IO_FILE))
1379 );
1380 assert_eq!(
1381 unsafe { ::std::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize },
1382 0usize,
1383 concat!(
1384 "Offset of field: ",
1385 stringify!(_IO_FILE),
1386 "::",
1387 stringify!(_flags)
1388 )
1389 );
1390 assert_eq!(
1391 unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize },
1392 8usize,
1393 concat!(
1394 "Offset of field: ",
1395 stringify!(_IO_FILE),
1396 "::",
1397 stringify!(_IO_read_ptr)
1398 )
1399 );
1400 assert_eq!(
1401 unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize },
1402 16usize,
1403 concat!(
1404 "Offset of field: ",
1405 stringify!(_IO_FILE),
1406 "::",
1407 stringify!(_IO_read_end)
1408 )
1409 );
1410 assert_eq!(
1411 unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize },
1412 24usize,
1413 concat!(
1414 "Offset of field: ",
1415 stringify!(_IO_FILE),
1416 "::",
1417 stringify!(_IO_read_base)
1418 )
1419 );
1420 assert_eq!(
1421 unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize },
1422 32usize,
1423 concat!(
1424 "Offset of field: ",
1425 stringify!(_IO_FILE),
1426 "::",
1427 stringify!(_IO_write_base)
1428 )
1429 );
1430 assert_eq!(
1431 unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize },
1432 40usize,
1433 concat!(
1434 "Offset of field: ",
1435 stringify!(_IO_FILE),
1436 "::",
1437 stringify!(_IO_write_ptr)
1438 )
1439 );
1440 assert_eq!(
1441 unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize },
1442 48usize,
1443 concat!(
1444 "Offset of field: ",
1445 stringify!(_IO_FILE),
1446 "::",
1447 stringify!(_IO_write_end)
1448 )
1449 );
1450 assert_eq!(
1451 unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize },
1452 56usize,
1453 concat!(
1454 "Offset of field: ",
1455 stringify!(_IO_FILE),
1456 "::",
1457 stringify!(_IO_buf_base)
1458 )
1459 );
1460 assert_eq!(
1461 unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize },
1462 64usize,
1463 concat!(
1464 "Offset of field: ",
1465 stringify!(_IO_FILE),
1466 "::",
1467 stringify!(_IO_buf_end)
1468 )
1469 );
1470 assert_eq!(
1471 unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize },
1472 72usize,
1473 concat!(
1474 "Offset of field: ",
1475 stringify!(_IO_FILE),
1476 "::",
1477 stringify!(_IO_save_base)
1478 )
1479 );
1480 assert_eq!(
1481 unsafe { ::std::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize },
1482 80usize,
1483 concat!(
1484 "Offset of field: ",
1485 stringify!(_IO_FILE),
1486 "::",
1487 stringify!(_IO_backup_base)
1488 )
1489 );
1490 assert_eq!(
1491 unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize },
1492 88usize,
1493 concat!(
1494 "Offset of field: ",
1495 stringify!(_IO_FILE),
1496 "::",
1497 stringify!(_IO_save_end)
1498 )
1499 );
1500 assert_eq!(
1501 unsafe { ::std::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize },
1502 96usize,
1503 concat!(
1504 "Offset of field: ",
1505 stringify!(_IO_FILE),
1506 "::",
1507 stringify!(_markers)
1508 )
1509 );
1510 assert_eq!(
1511 unsafe { ::std::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize },
1512 104usize,
1513 concat!(
1514 "Offset of field: ",
1515 stringify!(_IO_FILE),
1516 "::",
1517 stringify!(_chain)
1518 )
1519 );
1520 assert_eq!(
1521 unsafe { ::std::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize },
1522 112usize,
1523 concat!(
1524 "Offset of field: ",
1525 stringify!(_IO_FILE),
1526 "::",
1527 stringify!(_fileno)
1528 )
1529 );
1530 assert_eq!(
1531 unsafe { ::std::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize },
1532 116usize,
1533 concat!(
1534 "Offset of field: ",
1535 stringify!(_IO_FILE),
1536 "::",
1537 stringify!(_flags2)
1538 )
1539 );
1540 assert_eq!(
1541 unsafe { ::std::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize },
1542 120usize,
1543 concat!(
1544 "Offset of field: ",
1545 stringify!(_IO_FILE),
1546 "::",
1547 stringify!(_old_offset)
1548 )
1549 );
1550 assert_eq!(
1551 unsafe { ::std::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize },
1552 128usize,
1553 concat!(
1554 "Offset of field: ",
1555 stringify!(_IO_FILE),
1556 "::",
1557 stringify!(_cur_column)
1558 )
1559 );
1560 assert_eq!(
1561 unsafe { ::std::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize },
1562 130usize,
1563 concat!(
1564 "Offset of field: ",
1565 stringify!(_IO_FILE),
1566 "::",
1567 stringify!(_vtable_offset)
1568 )
1569 );
1570 assert_eq!(
1571 unsafe { ::std::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize },
1572 131usize,
1573 concat!(
1574 "Offset of field: ",
1575 stringify!(_IO_FILE),
1576 "::",
1577 stringify!(_shortbuf)
1578 )
1579 );
1580 assert_eq!(
1581 unsafe { ::std::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize },
1582 136usize,
1583 concat!(
1584 "Offset of field: ",
1585 stringify!(_IO_FILE),
1586 "::",
1587 stringify!(_lock)
1588 )
1589 );
1590 assert_eq!(
1591 unsafe { ::std::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize },
1592 144usize,
1593 concat!(
1594 "Offset of field: ",
1595 stringify!(_IO_FILE),
1596 "::",
1597 stringify!(_offset)
1598 )
1599 );
1600 assert_eq!(
1601 unsafe { ::std::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize },
1602 152usize,
1603 concat!(
1604 "Offset of field: ",
1605 stringify!(_IO_FILE),
1606 "::",
1607 stringify!(_codecvt)
1608 )
1609 );
1610 assert_eq!(
1611 unsafe { ::std::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize },
1612 160usize,
1613 concat!(
1614 "Offset of field: ",
1615 stringify!(_IO_FILE),
1616 "::",
1617 stringify!(_wide_data)
1618 )
1619 );
1620 assert_eq!(
1621 unsafe { ::std::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize },
1622 168usize,
1623 concat!(
1624 "Offset of field: ",
1625 stringify!(_IO_FILE),
1626 "::",
1627 stringify!(_freeres_list)
1628 )
1629 );
1630 assert_eq!(
1631 unsafe { ::std::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize },
1632 176usize,
1633 concat!(
1634 "Offset of field: ",
1635 stringify!(_IO_FILE),
1636 "::",
1637 stringify!(_freeres_buf)
1638 )
1639 );
1640 assert_eq!(
1641 unsafe { ::std::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize },
1642 184usize,
1643 concat!(
1644 "Offset of field: ",
1645 stringify!(_IO_FILE),
1646 "::",
1647 stringify!(__pad5)
1648 )
1649 );
1650 assert_eq!(
1651 unsafe { ::std::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize },
1652 192usize,
1653 concat!(
1654 "Offset of field: ",
1655 stringify!(_IO_FILE),
1656 "::",
1657 stringify!(_mode)
1658 )
1659 );
1660 assert_eq!(
1661 unsafe { ::std::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize },
1662 196usize,
1663 concat!(
1664 "Offset of field: ",
1665 stringify!(_IO_FILE),
1666 "::",
1667 stringify!(_unused2)
1668 )
1669 );
1670}
1671pub type off_t = __off_t;
1672pub type fpos_t = __fpos_t;
1673extern "C" {
1674 pub static mut stdin: *mut FILE;
1675}
1676extern "C" {
1677 pub static mut stdout: *mut FILE;
1678}
1679extern "C" {
1680 pub static mut stderr: *mut FILE;
1681}
1682extern "C" {
1683 pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1684}
1685extern "C" {
1686 pub fn rename(
1687 __old: *const ::std::os::raw::c_char,
1688 __new: *const ::std::os::raw::c_char,
1689 ) -> ::std::os::raw::c_int;
1690}
1691extern "C" {
1692 pub fn renameat(
1693 __oldfd: ::std::os::raw::c_int,
1694 __old: *const ::std::os::raw::c_char,
1695 __newfd: ::std::os::raw::c_int,
1696 __new: *const ::std::os::raw::c_char,
1697 ) -> ::std::os::raw::c_int;
1698}
1699extern "C" {
1700 pub fn tmpfile() -> *mut FILE;
1701}
1702extern "C" {
1703 pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1704}
1705extern "C" {
1706 pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1707}
1708extern "C" {
1709 pub fn tempnam(
1710 __dir: *const ::std::os::raw::c_char,
1711 __pfx: *const ::std::os::raw::c_char,
1712 ) -> *mut ::std::os::raw::c_char;
1713}
1714extern "C" {
1715 pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
1716}
1717extern "C" {
1718 pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int;
1719}
1720extern "C" {
1721 pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1722}
1723extern "C" {
1724 pub fn fopen(
1725 __filename: *const ::std::os::raw::c_char,
1726 __modes: *const ::std::os::raw::c_char,
1727 ) -> *mut FILE;
1728}
1729extern "C" {
1730 pub fn freopen(
1731 __filename: *const ::std::os::raw::c_char,
1732 __modes: *const ::std::os::raw::c_char,
1733 __stream: *mut FILE,
1734 ) -> *mut FILE;
1735}
1736extern "C" {
1737 pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
1738 -> *mut FILE;
1739}
1740extern "C" {
1741 pub fn fmemopen(
1742 __s: *mut ::std::os::raw::c_void,
1743 __len: usize,
1744 __modes: *const ::std::os::raw::c_char,
1745 ) -> *mut FILE;
1746}
1747extern "C" {
1748 pub fn open_memstream(
1749 __bufloc: *mut *mut ::std::os::raw::c_char,
1750 __sizeloc: *mut usize,
1751 ) -> *mut FILE;
1752}
1753extern "C" {
1754 pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char);
1755}
1756extern "C" {
1757 pub fn setvbuf(
1758 __stream: *mut FILE,
1759 __buf: *mut ::std::os::raw::c_char,
1760 __modes: ::std::os::raw::c_int,
1761 __n: usize,
1762 ) -> ::std::os::raw::c_int;
1763}
1764extern "C" {
1765 pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
1766}
1767extern "C" {
1768 pub fn setlinebuf(__stream: *mut FILE);
1769}
1770extern "C" {
1771 pub fn fprintf(
1772 __stream: *mut FILE,
1773 __format: *const ::std::os::raw::c_char,
1774 ...
1775 ) -> ::std::os::raw::c_int;
1776}
1777extern "C" {
1778 pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1779}
1780extern "C" {
1781 pub fn sprintf(
1782 __s: *mut ::std::os::raw::c_char,
1783 __format: *const ::std::os::raw::c_char,
1784 ...
1785 ) -> ::std::os::raw::c_int;
1786}
1787extern "C" {
1788 pub fn vfprintf(
1789 __s: *mut FILE,
1790 __format: *const ::std::os::raw::c_char,
1791 __arg: *mut __va_list_tag,
1792 ) -> ::std::os::raw::c_int;
1793}
1794extern "C" {
1795 pub fn vprintf(
1796 __format: *const ::std::os::raw::c_char,
1797 __arg: *mut __va_list_tag,
1798 ) -> ::std::os::raw::c_int;
1799}
1800extern "C" {
1801 pub fn vsprintf(
1802 __s: *mut ::std::os::raw::c_char,
1803 __format: *const ::std::os::raw::c_char,
1804 __arg: *mut __va_list_tag,
1805 ) -> ::std::os::raw::c_int;
1806}
1807extern "C" {
1808 pub fn snprintf(
1809 __s: *mut ::std::os::raw::c_char,
1810 __maxlen: ::std::os::raw::c_ulong,
1811 __format: *const ::std::os::raw::c_char,
1812 ...
1813 ) -> ::std::os::raw::c_int;
1814}
1815extern "C" {
1816 pub fn vsnprintf(
1817 __s: *mut ::std::os::raw::c_char,
1818 __maxlen: ::std::os::raw::c_ulong,
1819 __format: *const ::std::os::raw::c_char,
1820 __arg: *mut __va_list_tag,
1821 ) -> ::std::os::raw::c_int;
1822}
1823extern "C" {
1824 pub fn vdprintf(
1825 __fd: ::std::os::raw::c_int,
1826 __fmt: *const ::std::os::raw::c_char,
1827 __arg: *mut __va_list_tag,
1828 ) -> ::std::os::raw::c_int;
1829}
1830extern "C" {
1831 pub fn dprintf(
1832 __fd: ::std::os::raw::c_int,
1833 __fmt: *const ::std::os::raw::c_char,
1834 ...
1835 ) -> ::std::os::raw::c_int;
1836}
1837extern "C" {
1838 pub fn fscanf(
1839 __stream: *mut FILE,
1840 __format: *const ::std::os::raw::c_char,
1841 ...
1842 ) -> ::std::os::raw::c_int;
1843}
1844extern "C" {
1845 pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1846}
1847extern "C" {
1848 pub fn sscanf(
1849 __s: *const ::std::os::raw::c_char,
1850 __format: *const ::std::os::raw::c_char,
1851 ...
1852 ) -> ::std::os::raw::c_int;
1853}
1854extern "C" {
1855 #[link_name = "\u{1}__isoc99_fscanf"]
1856 pub fn fscanf1(
1857 __stream: *mut FILE,
1858 __format: *const ::std::os::raw::c_char,
1859 ...
1860 ) -> ::std::os::raw::c_int;
1861}
1862extern "C" {
1863 #[link_name = "\u{1}__isoc99_scanf"]
1864 pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1865}
1866extern "C" {
1867 #[link_name = "\u{1}__isoc99_sscanf"]
1868 pub fn sscanf1(
1869 __s: *const ::std::os::raw::c_char,
1870 __format: *const ::std::os::raw::c_char,
1871 ...
1872 ) -> ::std::os::raw::c_int;
1873}
1874extern "C" {
1875 pub fn vfscanf(
1876 __s: *mut FILE,
1877 __format: *const ::std::os::raw::c_char,
1878 __arg: *mut __va_list_tag,
1879 ) -> ::std::os::raw::c_int;
1880}
1881extern "C" {
1882 pub fn vscanf(
1883 __format: *const ::std::os::raw::c_char,
1884 __arg: *mut __va_list_tag,
1885 ) -> ::std::os::raw::c_int;
1886}
1887extern "C" {
1888 pub fn vsscanf(
1889 __s: *const ::std::os::raw::c_char,
1890 __format: *const ::std::os::raw::c_char,
1891 __arg: *mut __va_list_tag,
1892 ) -> ::std::os::raw::c_int;
1893}
1894extern "C" {
1895 #[link_name = "\u{1}__isoc99_vfscanf"]
1896 pub fn vfscanf1(
1897 __s: *mut FILE,
1898 __format: *const ::std::os::raw::c_char,
1899 __arg: *mut __va_list_tag,
1900 ) -> ::std::os::raw::c_int;
1901}
1902extern "C" {
1903 #[link_name = "\u{1}__isoc99_vscanf"]
1904 pub fn vscanf1(
1905 __format: *const ::std::os::raw::c_char,
1906 __arg: *mut __va_list_tag,
1907 ) -> ::std::os::raw::c_int;
1908}
1909extern "C" {
1910 #[link_name = "\u{1}__isoc99_vsscanf"]
1911 pub fn vsscanf1(
1912 __s: *const ::std::os::raw::c_char,
1913 __format: *const ::std::os::raw::c_char,
1914 __arg: *mut __va_list_tag,
1915 ) -> ::std::os::raw::c_int;
1916}
1917extern "C" {
1918 pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
1919}
1920extern "C" {
1921 pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
1922}
1923extern "C" {
1924 pub fn getchar() -> ::std::os::raw::c_int;
1925}
1926extern "C" {
1927 pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1928}
1929extern "C" {
1930 pub fn getchar_unlocked() -> ::std::os::raw::c_int;
1931}
1932extern "C" {
1933 pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1934}
1935extern "C" {
1936 pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1937}
1938extern "C" {
1939 pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1940}
1941extern "C" {
1942 pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1943}
1944extern "C" {
1945 pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
1946 -> ::std::os::raw::c_int;
1947}
1948extern "C" {
1949 pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1950}
1951extern "C" {
1952 pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1953}
1954extern "C" {
1955 pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
1956}
1957extern "C" {
1958 pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1959}
1960extern "C" {
1961 pub fn fgets(
1962 __s: *mut ::std::os::raw::c_char,
1963 __n: ::std::os::raw::c_int,
1964 __stream: *mut FILE,
1965 ) -> *mut ::std::os::raw::c_char;
1966}
1967extern "C" {
1968 pub fn __getdelim(
1969 __lineptr: *mut *mut ::std::os::raw::c_char,
1970 __n: *mut usize,
1971 __delimiter: ::std::os::raw::c_int,
1972 __stream: *mut FILE,
1973 ) -> __ssize_t;
1974}
1975extern "C" {
1976 pub fn getdelim(
1977 __lineptr: *mut *mut ::std::os::raw::c_char,
1978 __n: *mut usize,
1979 __delimiter: ::std::os::raw::c_int,
1980 __stream: *mut FILE,
1981 ) -> __ssize_t;
1982}
1983extern "C" {
1984 pub fn getline(
1985 __lineptr: *mut *mut ::std::os::raw::c_char,
1986 __n: *mut usize,
1987 __stream: *mut FILE,
1988 ) -> __ssize_t;
1989}
1990extern "C" {
1991 pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
1992}
1993extern "C" {
1994 pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1995}
1996extern "C" {
1997 pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1998}
1999extern "C" {
2000 pub fn fread(
2001 __ptr: *mut ::std::os::raw::c_void,
2002 __size: ::std::os::raw::c_ulong,
2003 __n: ::std::os::raw::c_ulong,
2004 __stream: *mut FILE,
2005 ) -> ::std::os::raw::c_ulong;
2006}
2007extern "C" {
2008 pub fn fwrite(
2009 __ptr: *const ::std::os::raw::c_void,
2010 __size: ::std::os::raw::c_ulong,
2011 __n: ::std::os::raw::c_ulong,
2012 __s: *mut FILE,
2013 ) -> ::std::os::raw::c_ulong;
2014}
2015extern "C" {
2016 pub fn fread_unlocked(
2017 __ptr: *mut ::std::os::raw::c_void,
2018 __size: usize,
2019 __n: usize,
2020 __stream: *mut FILE,
2021 ) -> usize;
2022}
2023extern "C" {
2024 pub fn fwrite_unlocked(
2025 __ptr: *const ::std::os::raw::c_void,
2026 __size: usize,
2027 __n: usize,
2028 __stream: *mut FILE,
2029 ) -> usize;
2030}
2031extern "C" {
2032 pub fn fseek(
2033 __stream: *mut FILE,
2034 __off: ::std::os::raw::c_long,
2035 __whence: ::std::os::raw::c_int,
2036 ) -> ::std::os::raw::c_int;
2037}
2038extern "C" {
2039 pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
2040}
2041extern "C" {
2042 pub fn rewind(__stream: *mut FILE);
2043}
2044extern "C" {
2045 pub fn fseeko(
2046 __stream: *mut FILE,
2047 __off: __off_t,
2048 __whence: ::std::os::raw::c_int,
2049 ) -> ::std::os::raw::c_int;
2050}
2051extern "C" {
2052 pub fn ftello(__stream: *mut FILE) -> __off_t;
2053}
2054extern "C" {
2055 pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
2056}
2057extern "C" {
2058 pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
2059}
2060extern "C" {
2061 pub fn clearerr(__stream: *mut FILE);
2062}
2063extern "C" {
2064 pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
2065}
2066extern "C" {
2067 pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
2068}
2069extern "C" {
2070 pub fn clearerr_unlocked(__stream: *mut FILE);
2071}
2072extern "C" {
2073 pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
2074}
2075extern "C" {
2076 pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
2077}
2078extern "C" {
2079 pub fn perror(__s: *const ::std::os::raw::c_char);
2080}
2081extern "C" {
2082 pub static mut sys_nerr: ::std::os::raw::c_int;
2083}
2084extern "C" {
2085 pub static sys_errlist: [*const ::std::os::raw::c_char; 0usize];
2086}
2087extern "C" {
2088 pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
2089}
2090extern "C" {
2091 pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
2092}
2093extern "C" {
2094 pub fn popen(
2095 __command: *const ::std::os::raw::c_char,
2096 __modes: *const ::std::os::raw::c_char,
2097 ) -> *mut FILE;
2098}
2099extern "C" {
2100 pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
2101}
2102extern "C" {
2103 pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
2104}
2105extern "C" {
2106 pub fn flockfile(__stream: *mut FILE);
2107}
2108extern "C" {
2109 pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
2110}
2111extern "C" {
2112 pub fn funlockfile(__stream: *mut FILE);
2113}
2114extern "C" {
2115 pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
2116}
2117extern "C" {
2118 pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
2119}
2120#[repr(C)]
2121#[derive(Debug, Copy, Clone)]
2122pub struct luaL_Reg {
2123 pub name: *const ::std::os::raw::c_char,
2124 pub func: lua_CFunction,
2125}
2126#[test]
2127fn bindgen_test_layout_luaL_Reg() {
2128 const UNINIT: ::std::mem::MaybeUninit<luaL_Reg> = ::std::mem::MaybeUninit::uninit();
2129 let ptr = UNINIT.as_ptr();
2130 assert_eq!(
2131 ::std::mem::size_of::<luaL_Reg>(),
2132 16usize,
2133 concat!("Size of: ", stringify!(luaL_Reg))
2134 );
2135 assert_eq!(
2136 ::std::mem::align_of::<luaL_Reg>(),
2137 8usize,
2138 concat!("Alignment of ", stringify!(luaL_Reg))
2139 );
2140 assert_eq!(
2141 unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
2142 0usize,
2143 concat!(
2144 "Offset of field: ",
2145 stringify!(luaL_Reg),
2146 "::",
2147 stringify!(name)
2148 )
2149 );
2150 assert_eq!(
2151 unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize },
2152 8usize,
2153 concat!(
2154 "Offset of field: ",
2155 stringify!(luaL_Reg),
2156 "::",
2157 stringify!(func)
2158 )
2159 );
2160}
2161extern "C" {
2162 pub fn luaL_checkversion_(L: *mut lua_State, ver: lua_Number, sz: usize);
2163}
2164extern "C" {
2165 pub fn luaL_getmetafield(
2166 L: *mut lua_State,
2167 obj: ::std::os::raw::c_int,
2168 e: *const ::std::os::raw::c_char,
2169 ) -> ::std::os::raw::c_int;
2170}
2171extern "C" {
2172 pub fn luaL_callmeta(
2173 L: *mut lua_State,
2174 obj: ::std::os::raw::c_int,
2175 e: *const ::std::os::raw::c_char,
2176 ) -> ::std::os::raw::c_int;
2177}
2178extern "C" {
2179 pub fn luaL_tolstring(
2180 L: *mut lua_State,
2181 idx: ::std::os::raw::c_int,
2182 len: *mut usize,
2183 ) -> *const ::std::os::raw::c_char;
2184}
2185extern "C" {
2186 pub fn luaL_argerror(
2187 L: *mut lua_State,
2188 arg: ::std::os::raw::c_int,
2189 extramsg: *const ::std::os::raw::c_char,
2190 ) -> ::std::os::raw::c_int;
2191}
2192extern "C" {
2193 pub fn luaL_checklstring(
2194 L: *mut lua_State,
2195 arg: ::std::os::raw::c_int,
2196 l: *mut usize,
2197 ) -> *const ::std::os::raw::c_char;
2198}
2199extern "C" {
2200 pub fn luaL_optlstring(
2201 L: *mut lua_State,
2202 arg: ::std::os::raw::c_int,
2203 def: *const ::std::os::raw::c_char,
2204 l: *mut usize,
2205 ) -> *const ::std::os::raw::c_char;
2206}
2207extern "C" {
2208 pub fn luaL_checknumber(L: *mut lua_State, arg: ::std::os::raw::c_int) -> lua_Number;
2209}
2210extern "C" {
2211 pub fn luaL_optnumber(
2212 L: *mut lua_State,
2213 arg: ::std::os::raw::c_int,
2214 def: lua_Number,
2215 ) -> lua_Number;
2216}
2217extern "C" {
2218 pub fn luaL_checkinteger(L: *mut lua_State, arg: ::std::os::raw::c_int) -> lua_Integer;
2219}
2220extern "C" {
2221 pub fn luaL_optinteger(
2222 L: *mut lua_State,
2223 arg: ::std::os::raw::c_int,
2224 def: lua_Integer,
2225 ) -> lua_Integer;
2226}
2227extern "C" {
2228 pub fn luaL_checkstack(
2229 L: *mut lua_State,
2230 sz: ::std::os::raw::c_int,
2231 msg: *const ::std::os::raw::c_char,
2232 );
2233}
2234extern "C" {
2235 pub fn luaL_checktype(L: *mut lua_State, arg: ::std::os::raw::c_int, t: ::std::os::raw::c_int);
2236}
2237extern "C" {
2238 pub fn luaL_checkany(L: *mut lua_State, arg: ::std::os::raw::c_int);
2239}
2240extern "C" {
2241 pub fn luaL_newmetatable(
2242 L: *mut lua_State,
2243 tname: *const ::std::os::raw::c_char,
2244 ) -> ::std::os::raw::c_int;
2245}
2246extern "C" {
2247 pub fn luaL_setmetatable(L: *mut lua_State, tname: *const ::std::os::raw::c_char);
2248}
2249extern "C" {
2250 pub fn luaL_testudata(
2251 L: *mut lua_State,
2252 ud: ::std::os::raw::c_int,
2253 tname: *const ::std::os::raw::c_char,
2254 ) -> *mut ::std::os::raw::c_void;
2255}
2256extern "C" {
2257 pub fn luaL_checkudata(
2258 L: *mut lua_State,
2259 ud: ::std::os::raw::c_int,
2260 tname: *const ::std::os::raw::c_char,
2261 ) -> *mut ::std::os::raw::c_void;
2262}
2263extern "C" {
2264 pub fn luaL_where(L: *mut lua_State, lvl: ::std::os::raw::c_int);
2265}
2266extern "C" {
2267 pub fn luaL_error(
2268 L: *mut lua_State,
2269 fmt: *const ::std::os::raw::c_char,
2270 ...
2271 ) -> ::std::os::raw::c_int;
2272}
2273extern "C" {
2274 pub fn luaL_checkoption(
2275 L: *mut lua_State,
2276 arg: ::std::os::raw::c_int,
2277 def: *const ::std::os::raw::c_char,
2278 lst: *const *const ::std::os::raw::c_char,
2279 ) -> ::std::os::raw::c_int;
2280}
2281extern "C" {
2282 pub fn luaL_fileresult(
2283 L: *mut lua_State,
2284 stat: ::std::os::raw::c_int,
2285 fname: *const ::std::os::raw::c_char,
2286 ) -> ::std::os::raw::c_int;
2287}
2288extern "C" {
2289 pub fn luaL_execresult(L: *mut lua_State, stat: ::std::os::raw::c_int)
2290 -> ::std::os::raw::c_int;
2291}
2292extern "C" {
2293 pub fn luaL_ref(L: *mut lua_State, t: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
2294}
2295extern "C" {
2296 pub fn luaL_unref(L: *mut lua_State, t: ::std::os::raw::c_int, ref_: ::std::os::raw::c_int);
2297}
2298extern "C" {
2299 pub fn luaL_loadfilex(
2300 L: *mut lua_State,
2301 filename: *const ::std::os::raw::c_char,
2302 mode: *const ::std::os::raw::c_char,
2303 ) -> ::std::os::raw::c_int;
2304}
2305extern "C" {
2306 pub fn luaL_loadbufferx(
2307 L: *mut lua_State,
2308 buff: *const ::std::os::raw::c_char,
2309 sz: usize,
2310 name: *const ::std::os::raw::c_char,
2311 mode: *const ::std::os::raw::c_char,
2312 ) -> ::std::os::raw::c_int;
2313}
2314extern "C" {
2315 pub fn luaL_loadstring(
2316 L: *mut lua_State,
2317 s: *const ::std::os::raw::c_char,
2318 ) -> ::std::os::raw::c_int;
2319}
2320extern "C" {
2321 pub fn luaL_newstate() -> *mut lua_State;
2322}
2323extern "C" {
2324 pub fn luaL_len(L: *mut lua_State, idx: ::std::os::raw::c_int) -> lua_Integer;
2325}
2326extern "C" {
2327 pub fn luaL_gsub(
2328 L: *mut lua_State,
2329 s: *const ::std::os::raw::c_char,
2330 p: *const ::std::os::raw::c_char,
2331 r: *const ::std::os::raw::c_char,
2332 ) -> *const ::std::os::raw::c_char;
2333}
2334extern "C" {
2335 pub fn luaL_setfuncs(L: *mut lua_State, l: *const luaL_Reg, nup: ::std::os::raw::c_int);
2336}
2337extern "C" {
2338 pub fn luaL_getsubtable(
2339 L: *mut lua_State,
2340 idx: ::std::os::raw::c_int,
2341 fname: *const ::std::os::raw::c_char,
2342 ) -> ::std::os::raw::c_int;
2343}
2344extern "C" {
2345 pub fn luaL_traceback(
2346 L: *mut lua_State,
2347 L1: *mut lua_State,
2348 msg: *const ::std::os::raw::c_char,
2349 level: ::std::os::raw::c_int,
2350 );
2351}
2352extern "C" {
2353 pub fn luaL_requiref(
2354 L: *mut lua_State,
2355 modname: *const ::std::os::raw::c_char,
2356 openf: lua_CFunction,
2357 glb: ::std::os::raw::c_int,
2358 );
2359}
2360#[repr(C)]
2361#[derive(Debug, Copy, Clone)]
2362pub struct luaL_Buffer {
2363 pub b: *mut ::std::os::raw::c_char,
2364 pub size: usize,
2365 pub n: usize,
2366 pub L: *mut lua_State,
2367 pub initb: [::std::os::raw::c_char; 8192usize],
2368}
2369#[test]
2370fn bindgen_test_layout_luaL_Buffer() {
2371 const UNINIT: ::std::mem::MaybeUninit<luaL_Buffer> = ::std::mem::MaybeUninit::uninit();
2372 let ptr = UNINIT.as_ptr();
2373 assert_eq!(
2374 ::std::mem::size_of::<luaL_Buffer>(),
2375 8224usize,
2376 concat!("Size of: ", stringify!(luaL_Buffer))
2377 );
2378 assert_eq!(
2379 ::std::mem::align_of::<luaL_Buffer>(),
2380 8usize,
2381 concat!("Alignment of ", stringify!(luaL_Buffer))
2382 );
2383 assert_eq!(
2384 unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
2385 0usize,
2386 concat!(
2387 "Offset of field: ",
2388 stringify!(luaL_Buffer),
2389 "::",
2390 stringify!(b)
2391 )
2392 );
2393 assert_eq!(
2394 unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
2395 8usize,
2396 concat!(
2397 "Offset of field: ",
2398 stringify!(luaL_Buffer),
2399 "::",
2400 stringify!(size)
2401 )
2402 );
2403 assert_eq!(
2404 unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize },
2405 16usize,
2406 concat!(
2407 "Offset of field: ",
2408 stringify!(luaL_Buffer),
2409 "::",
2410 stringify!(n)
2411 )
2412 );
2413 assert_eq!(
2414 unsafe { ::std::ptr::addr_of!((*ptr).L) as usize - ptr as usize },
2415 24usize,
2416 concat!(
2417 "Offset of field: ",
2418 stringify!(luaL_Buffer),
2419 "::",
2420 stringify!(L)
2421 )
2422 );
2423 assert_eq!(
2424 unsafe { ::std::ptr::addr_of!((*ptr).initb) as usize - ptr as usize },
2425 32usize,
2426 concat!(
2427 "Offset of field: ",
2428 stringify!(luaL_Buffer),
2429 "::",
2430 stringify!(initb)
2431 )
2432 );
2433}
2434extern "C" {
2435 pub fn luaL_buffinit(L: *mut lua_State, B: *mut luaL_Buffer);
2436}
2437extern "C" {
2438 pub fn luaL_prepbuffsize(B: *mut luaL_Buffer, sz: usize) -> *mut ::std::os::raw::c_char;
2439}
2440extern "C" {
2441 pub fn luaL_addlstring(B: *mut luaL_Buffer, s: *const ::std::os::raw::c_char, l: usize);
2442}
2443extern "C" {
2444 pub fn luaL_addstring(B: *mut luaL_Buffer, s: *const ::std::os::raw::c_char);
2445}
2446extern "C" {
2447 pub fn luaL_addvalue(B: *mut luaL_Buffer);
2448}
2449extern "C" {
2450 pub fn luaL_pushresult(B: *mut luaL_Buffer);
2451}
2452extern "C" {
2453 pub fn luaL_pushresultsize(B: *mut luaL_Buffer, sz: usize);
2454}
2455extern "C" {
2456 pub fn luaL_buffinitsize(
2457 L: *mut lua_State,
2458 B: *mut luaL_Buffer,
2459 sz: usize,
2460 ) -> *mut ::std::os::raw::c_char;
2461}
2462#[repr(C)]
2463#[derive(Debug, Copy, Clone)]
2464pub struct luaL_Stream {
2465 pub f: *mut FILE,
2466 pub closef: lua_CFunction,
2467}
2468#[test]
2469fn bindgen_test_layout_luaL_Stream() {
2470 const UNINIT: ::std::mem::MaybeUninit<luaL_Stream> = ::std::mem::MaybeUninit::uninit();
2471 let ptr = UNINIT.as_ptr();
2472 assert_eq!(
2473 ::std::mem::size_of::<luaL_Stream>(),
2474 16usize,
2475 concat!("Size of: ", stringify!(luaL_Stream))
2476 );
2477 assert_eq!(
2478 ::std::mem::align_of::<luaL_Stream>(),
2479 8usize,
2480 concat!("Alignment of ", stringify!(luaL_Stream))
2481 );
2482 assert_eq!(
2483 unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
2484 0usize,
2485 concat!(
2486 "Offset of field: ",
2487 stringify!(luaL_Stream),
2488 "::",
2489 stringify!(f)
2490 )
2491 );
2492 assert_eq!(
2493 unsafe { ::std::ptr::addr_of!((*ptr).closef) as usize - ptr as usize },
2494 8usize,
2495 concat!(
2496 "Offset of field: ",
2497 stringify!(luaL_Stream),
2498 "::",
2499 stringify!(closef)
2500 )
2501 );
2502}
2503pub type __builtin_va_list = [__va_list_tag; 1usize];
2504#[repr(C)]
2505#[derive(Debug, Copy, Clone)]
2506pub struct __va_list_tag {
2507 pub gp_offset: ::std::os::raw::c_uint,
2508 pub fp_offset: ::std::os::raw::c_uint,
2509 pub overflow_arg_area: *mut ::std::os::raw::c_void,
2510 pub reg_save_area: *mut ::std::os::raw::c_void,
2511}
2512#[test]
2513fn bindgen_test_layout___va_list_tag() {
2514 const UNINIT: ::std::mem::MaybeUninit<__va_list_tag> = ::std::mem::MaybeUninit::uninit();
2515 let ptr = UNINIT.as_ptr();
2516 assert_eq!(
2517 ::std::mem::size_of::<__va_list_tag>(),
2518 24usize,
2519 concat!("Size of: ", stringify!(__va_list_tag))
2520 );
2521 assert_eq!(
2522 ::std::mem::align_of::<__va_list_tag>(),
2523 8usize,
2524 concat!("Alignment of ", stringify!(__va_list_tag))
2525 );
2526 assert_eq!(
2527 unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize },
2528 0usize,
2529 concat!(
2530 "Offset of field: ",
2531 stringify!(__va_list_tag),
2532 "::",
2533 stringify!(gp_offset)
2534 )
2535 );
2536 assert_eq!(
2537 unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize },
2538 4usize,
2539 concat!(
2540 "Offset of field: ",
2541 stringify!(__va_list_tag),
2542 "::",
2543 stringify!(fp_offset)
2544 )
2545 );
2546 assert_eq!(
2547 unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize },
2548 8usize,
2549 concat!(
2550 "Offset of field: ",
2551 stringify!(__va_list_tag),
2552 "::",
2553 stringify!(overflow_arg_area)
2554 )
2555 );
2556 assert_eq!(
2557 unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize },
2558 16usize,
2559 concat!(
2560 "Offset of field: ",
2561 stringify!(__va_list_tag),
2562 "::",
2563 stringify!(reg_save_area)
2564 )
2565 );
2566}
2567#[repr(C)]
2568#[derive(Debug, Copy, Clone)]
2569pub struct CallInfo {
2570 pub _address: u8,
2571}