rlua_lua54_sys/
bindings.rs

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