lua_latest_sys/
bindings.rs

1/* automatically generated by rust-bindgen 0.59.2 */
2
3pub const __GNUC_VA_LIST: i32 = 1;
4pub const _LIBC_LIMITS_H_: i32 = 1;
5pub const _FEATURES_H: i32 = 1;
6pub const _ISOC95_SOURCE: i32 = 1;
7pub const _ISOC99_SOURCE: i32 = 1;
8pub const _ISOC11_SOURCE: i32 = 1;
9pub const _ISOC2X_SOURCE: i32 = 1;
10pub const _POSIX_SOURCE: i32 = 1;
11pub const _POSIX_C_SOURCE: i32 = 200809;
12pub const _XOPEN_SOURCE: i32 = 700;
13pub const _XOPEN_SOURCE_EXTENDED: i32 = 1;
14pub const _LARGEFILE64_SOURCE: i32 = 1;
15pub const _DEFAULT_SOURCE: i32 = 1;
16pub const _ATFILE_SOURCE: i32 = 1;
17pub const __GLIBC_USE_ISOC2X: i32 = 1;
18pub const __USE_ISOC11: i32 = 1;
19pub const __USE_ISOC99: i32 = 1;
20pub const __USE_ISOC95: i32 = 1;
21pub const __USE_ISOCXX11: i32 = 1;
22pub const __USE_POSIX: i32 = 1;
23pub const __USE_POSIX2: i32 = 1;
24pub const __USE_POSIX199309: i32 = 1;
25pub const __USE_POSIX199506: i32 = 1;
26pub const __USE_XOPEN2K: i32 = 1;
27pub const __USE_XOPEN2K8: i32 = 1;
28pub const __USE_XOPEN: i32 = 1;
29pub const __USE_XOPEN_EXTENDED: i32 = 1;
30pub const __USE_UNIX98: i32 = 1;
31pub const _LARGEFILE_SOURCE: i32 = 1;
32pub const __USE_XOPEN2K8XSI: i32 = 1;
33pub const __USE_XOPEN2KXSI: i32 = 1;
34pub const __USE_LARGEFILE: i32 = 1;
35pub const __USE_LARGEFILE64: i32 = 1;
36pub const __USE_MISC: i32 = 1;
37pub const __USE_ATFILE: i32 = 1;
38pub const __USE_GNU: i32 = 1;
39pub const __USE_FORTIFY_LEVEL: i32 = 0;
40pub const __GLIBC_USE_DEPRECATED_GETS: i32 = 0;
41pub const __GLIBC_USE_DEPRECATED_SCANF: i32 = 0;
42pub const _STDC_PREDEF_H: i32 = 1;
43pub const __STDC_IEC_559__: i32 = 1;
44pub const __STDC_IEC_559_COMPLEX__: i32 = 1;
45pub const __STDC_ISO_10646__: i32 = 201706;
46pub const __GNU_LIBRARY__: i32 = 6;
47pub const __GLIBC__: i32 = 2;
48pub const __GLIBC_MINOR__: i32 = 31;
49pub const _SYS_CDEFS_H: i32 = 1;
50pub const __glibc_c99_flexarr_available: i32 = 1;
51pub const __WORDSIZE: i32 = 64;
52pub const __WORDSIZE_TIME64_COMPAT32: i32 = 1;
53pub const __SYSCALL_WORDSIZE: i32 = 64;
54pub const __LONG_DOUBLE_USES_FLOAT128: i32 = 0;
55pub const __HAVE_GENERIC_SELECTION: i32 = 0;
56pub const __GLIBC_USE_LIB_EXT2: i32 = 1;
57pub const __GLIBC_USE_IEC_60559_BFP_EXT: i32 = 1;
58pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: i32 = 1;
59pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: i32 = 1;
60pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: i32 = 1;
61pub const __GLIBC_USE_IEC_60559_TYPES_EXT: i32 = 1;
62pub const MB_LEN_MAX: i32 = 16;
63pub const CHAR_WIDTH: i32 = 8;
64pub const SCHAR_WIDTH: i32 = 8;
65pub const UCHAR_WIDTH: i32 = 8;
66pub const SHRT_WIDTH: i32 = 16;
67pub const USHRT_WIDTH: i32 = 16;
68pub const INT_WIDTH: i32 = 32;
69pub const UINT_WIDTH: i32 = 32;
70pub const LONG_WIDTH: i32 = 64;
71pub const ULONG_WIDTH: i32 = 64;
72pub const LLONG_WIDTH: i32 = 64;
73pub const ULLONG_WIDTH: i32 = 64;
74pub const _BITS_POSIX1_LIM_H: i32 = 1;
75pub const _POSIX_AIO_LISTIO_MAX: i32 = 2;
76pub const _POSIX_AIO_MAX: i32 = 1;
77pub const _POSIX_ARG_MAX: i32 = 4096;
78pub const _POSIX_CHILD_MAX: i32 = 25;
79pub const _POSIX_DELAYTIMER_MAX: i32 = 32;
80pub const _POSIX_HOST_NAME_MAX: i32 = 255;
81pub const _POSIX_LINK_MAX: i32 = 8;
82pub const _POSIX_LOGIN_NAME_MAX: i32 = 9;
83pub const _POSIX_MAX_CANON: i32 = 255;
84pub const _POSIX_MAX_INPUT: i32 = 255;
85pub const _POSIX_MQ_OPEN_MAX: i32 = 8;
86pub const _POSIX_MQ_PRIO_MAX: i32 = 32;
87pub const _POSIX_NAME_MAX: i32 = 14;
88pub const _POSIX_NGROUPS_MAX: i32 = 8;
89pub const _POSIX_OPEN_MAX: i32 = 20;
90pub const _POSIX_FD_SETSIZE: i32 = 20;
91pub const _POSIX_PATH_MAX: i32 = 256;
92pub const _POSIX_PIPE_BUF: i32 = 512;
93pub const _POSIX_RE_DUP_MAX: i32 = 255;
94pub const _POSIX_RTSIG_MAX: i32 = 8;
95pub const _POSIX_SEM_NSEMS_MAX: i32 = 256;
96pub const _POSIX_SEM_VALUE_MAX: i32 = 32767;
97pub const _POSIX_SIGQUEUE_MAX: i32 = 32;
98pub const _POSIX_SSIZE_MAX: i32 = 32767;
99pub const _POSIX_STREAM_MAX: i32 = 8;
100pub const _POSIX_SYMLINK_MAX: i32 = 255;
101pub const _POSIX_SYMLOOP_MAX: i32 = 8;
102pub const _POSIX_TIMER_MAX: i32 = 32;
103pub const _POSIX_TTY_NAME_MAX: i32 = 9;
104pub const _POSIX_TZNAME_MAX: i32 = 6;
105pub const _POSIX_QLIMIT: i32 = 1;
106pub const _POSIX_HIWAT: i32 = 512;
107pub const _POSIX_UIO_MAXIOV: i32 = 16;
108pub const _POSIX_CLOCKRES_MIN: i32 = 20000000;
109pub const NR_OPEN: i32 = 1024;
110pub const NGROUPS_MAX: i32 = 65536;
111pub const ARG_MAX: i32 = 131072;
112pub const LINK_MAX: i32 = 127;
113pub const MAX_CANON: i32 = 255;
114pub const MAX_INPUT: i32 = 255;
115pub const NAME_MAX: i32 = 255;
116pub const PATH_MAX: i32 = 4096;
117pub const PIPE_BUF: i32 = 4096;
118pub const XATTR_NAME_MAX: i32 = 255;
119pub const XATTR_SIZE_MAX: i32 = 65536;
120pub const XATTR_LIST_MAX: i32 = 65536;
121pub const RTSIG_MAX: i32 = 32;
122pub const _POSIX_THREAD_KEYS_MAX: i32 = 128;
123pub const PTHREAD_KEYS_MAX: i32 = 1024;
124pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: i32 = 4;
125pub const PTHREAD_DESTRUCTOR_ITERATIONS: i32 = 4;
126pub const _POSIX_THREAD_THREADS_MAX: i32 = 64;
127pub const AIO_PRIO_DELTA_MAX: i32 = 20;
128pub const PTHREAD_STACK_MIN: i32 = 16384;
129pub const DELAYTIMER_MAX: i32 = 2147483647;
130pub const TTY_NAME_MAX: i32 = 32;
131pub const LOGIN_NAME_MAX: i32 = 256;
132pub const HOST_NAME_MAX: i32 = 64;
133pub const MQ_PRIO_MAX: i32 = 32768;
134pub const SEM_VALUE_MAX: i32 = 2147483647;
135pub const _BITS_POSIX2_LIM_H: i32 = 1;
136pub const _POSIX2_BC_BASE_MAX: i32 = 99;
137pub const _POSIX2_BC_DIM_MAX: i32 = 2048;
138pub const _POSIX2_BC_SCALE_MAX: i32 = 99;
139pub const _POSIX2_BC_STRING_MAX: i32 = 1000;
140pub const _POSIX2_COLL_WEIGHTS_MAX: i32 = 2;
141pub const _POSIX2_EXPR_NEST_MAX: i32 = 32;
142pub const _POSIX2_LINE_MAX: i32 = 2048;
143pub const _POSIX2_RE_DUP_MAX: i32 = 255;
144pub const _POSIX2_CHARCLASS_NAME_MAX: i32 = 14;
145pub const BC_BASE_MAX: i32 = 99;
146pub const BC_DIM_MAX: i32 = 2048;
147pub const BC_SCALE_MAX: i32 = 99;
148pub const BC_STRING_MAX: i32 = 1000;
149pub const COLL_WEIGHTS_MAX: i32 = 255;
150pub const EXPR_NEST_MAX: i32 = 32;
151pub const LINE_MAX: i32 = 2048;
152pub const CHARCLASS_NAME_MAX: i32 = 2048;
153pub const RE_DUP_MAX: i32 = 32767;
154pub const _XOPEN_LIM_H: i32 = 1;
155pub const _XOPEN_IOV_MAX: i32 = 16;
156pub const _BITS_UIO_LIM_H: i32 = 1;
157pub const __IOV_MAX: i32 = 1024;
158pub const IOV_MAX: i32 = 1024;
159pub const NL_ARGMAX: i32 = 4096;
160pub const NL_LANGMAX: i32 = 2048;
161pub const NZERO: i32 = 20;
162pub const WORD_BIT: i32 = 32;
163pub const LONG_BIT: i32 = 64;
164pub const LUA_INT_INT: i32 = 1;
165pub const LUA_INT_LONG: i32 = 2;
166pub const LUA_INT_LONGLONG: i32 = 3;
167pub const LUA_FLOAT_FLOAT: i32 = 1;
168pub const LUA_FLOAT_DOUBLE: i32 = 2;
169pub const LUA_FLOAT_LONGDOUBLE: i32 = 3;
170pub const LUA_INT_DEFAULT: i32 = 3;
171pub const LUA_FLOAT_DEFAULT: i32 = 2;
172pub const LUA_32BITS: i32 = 0;
173pub const LUA_C89_NUMBERS: i32 = 0;
174pub const LUA_INT_TYPE: i32 = 3;
175pub const LUA_FLOAT_TYPE: i32 = 2;
176pub const LUA_PATH_SEP: &[u8; 2usize] = b";\0";
177pub const LUA_PATH_MARK: &[u8; 2usize] = b"?\0";
178pub const LUA_EXEC_DIR: &[u8; 2usize] = b"!\0";
179pub const LUA_ROOT: &[u8; 12usize] = b"/usr/local/\0";
180pub const LUA_DIRSEP: &[u8; 2usize] = b"/\0";
181pub const LUA_NUMBER_FRMLEN: &[u8; 1usize] = b"\0";
182pub const LUA_NUMBER_FMT: &[u8; 6usize] = b"%.14g\0";
183pub const LUA_INTEGER_FRMLEN: &[u8; 3usize] = b"ll\0";
184pub const LUAI_MAXSTACK: i32 = 1000000;
185pub const LUA_IDSIZE: i32 = 60;
186pub const LUA_VERSION_MAJOR: &[u8; 2usize] = b"5\0";
187pub const LUA_VERSION_MINOR: &[u8; 2usize] = b"4\0";
188pub const LUA_VERSION_RELEASE: &[u8; 2usize] = b"4\0";
189pub const LUA_VERSION_NUM: i32 = 504;
190pub const LUA_VERSION_RELEASE_NUM: i32 = 50404;
191pub const LUA_VERSION: &[u8; 8usize] = b"Lua 5.4\0";
192pub const LUA_RELEASE: &[u8; 10usize] = b"Lua 5.4.4\0";
193pub const LUA_COPYRIGHT: &[u8; 52usize] = b"Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio\0";
194pub const LUA_AUTHORS: &[u8; 48usize] = b"R. Ierusalimschy, L. H. de Figueiredo, W. Celes\0";
195pub const LUA_SIGNATURE: &[u8; 5usize] = b"\x1BLua\0";
196pub const LUA_MULTRET: i32 = -1;
197pub const LUA_REGISTRYINDEX: i32 = -1001000;
198pub const LUA_OK: i32 = 0;
199pub const LUA_YIELD: i32 = 1;
200pub const LUA_ERRRUN: i32 = 2;
201pub const LUA_ERRSYNTAX: i32 = 3;
202pub const LUA_ERRMEM: i32 = 4;
203pub const LUA_ERRERR: i32 = 5;
204pub const LUA_TNONE: i32 = -1;
205pub const LUA_TNIL: i32 = 0;
206pub const LUA_TBOOLEAN: i32 = 1;
207pub const LUA_TLIGHTUSERDATA: i32 = 2;
208pub const LUA_TNUMBER: i32 = 3;
209pub const LUA_TSTRING: i32 = 4;
210pub const LUA_TTABLE: i32 = 5;
211pub const LUA_TFUNCTION: i32 = 6;
212pub const LUA_TUSERDATA: i32 = 7;
213pub const LUA_TTHREAD: i32 = 8;
214pub const LUA_NUMTYPES: i32 = 9;
215pub const LUA_MINSTACK: i32 = 20;
216pub const LUA_RIDX_MAINTHREAD: i32 = 1;
217pub const LUA_RIDX_GLOBALS: i32 = 2;
218pub const LUA_RIDX_LAST: i32 = 2;
219pub const LUA_OPADD: i32 = 0;
220pub const LUA_OPSUB: i32 = 1;
221pub const LUA_OPMUL: i32 = 2;
222pub const LUA_OPMOD: i32 = 3;
223pub const LUA_OPPOW: i32 = 4;
224pub const LUA_OPDIV: i32 = 5;
225pub const LUA_OPIDIV: i32 = 6;
226pub const LUA_OPBAND: i32 = 7;
227pub const LUA_OPBOR: i32 = 8;
228pub const LUA_OPBXOR: i32 = 9;
229pub const LUA_OPSHL: i32 = 10;
230pub const LUA_OPSHR: i32 = 11;
231pub const LUA_OPUNM: i32 = 12;
232pub const LUA_OPBNOT: i32 = 13;
233pub const LUA_OPEQ: i32 = 0;
234pub const LUA_OPLT: i32 = 1;
235pub const LUA_OPLE: i32 = 2;
236pub const LUA_GCSTOP: i32 = 0;
237pub const LUA_GCRESTART: i32 = 1;
238pub const LUA_GCCOLLECT: i32 = 2;
239pub const LUA_GCCOUNT: i32 = 3;
240pub const LUA_GCCOUNTB: i32 = 4;
241pub const LUA_GCSTEP: i32 = 5;
242pub const LUA_GCSETPAUSE: i32 = 6;
243pub const LUA_GCSETSTEPMUL: i32 = 7;
244pub const LUA_GCISRUNNING: i32 = 9;
245pub const LUA_GCGEN: i32 = 10;
246pub const LUA_GCINC: i32 = 11;
247pub const LUA_NUMTAGS: i32 = 9;
248pub const LUA_HOOKCALL: i32 = 0;
249pub const LUA_HOOKRET: i32 = 1;
250pub const LUA_HOOKLINE: i32 = 2;
251pub const LUA_HOOKCOUNT: i32 = 3;
252pub const LUA_HOOKTAILCALL: i32 = 4;
253pub const LUA_MASKCALL: i32 = 1;
254pub const LUA_MASKRET: i32 = 2;
255pub const LUA_MASKLINE: i32 = 4;
256pub const LUA_MASKCOUNT: i32 = 8;
257pub const LUA_VERSUFFIX: &[u8; 5usize] = b"_5_4\0";
258pub const LUA_COLIBNAME: &[u8; 10usize] = b"coroutine\0";
259pub const LUA_TABLIBNAME: &[u8; 6usize] = b"table\0";
260pub const LUA_IOLIBNAME: &[u8; 3usize] = b"io\0";
261pub const LUA_OSLIBNAME: &[u8; 3usize] = b"os\0";
262pub const LUA_STRLIBNAME: &[u8; 7usize] = b"string\0";
263pub const LUA_UTF8LIBNAME: &[u8; 5usize] = b"utf8\0";
264pub const LUA_MATHLIBNAME: &[u8; 5usize] = b"math\0";
265pub const LUA_DBLIBNAME: &[u8; 6usize] = b"debug\0";
266pub const LUA_LOADLIBNAME: &[u8; 8usize] = b"package\0";
267pub const _STDIO_H: i32 = 1;
268pub const _BITS_TYPES_H: i32 = 1;
269pub const __TIMESIZE: i32 = 64;
270pub const _BITS_TYPESIZES_H: i32 = 1;
271pub const __OFF_T_MATCHES_OFF64_T: i32 = 1;
272pub const __INO_T_MATCHES_INO64_T: i32 = 1;
273pub const __RLIM_T_MATCHES_RLIM64_T: i32 = 1;
274pub const __STATFS_MATCHES_STATFS64: i32 = 1;
275pub const __FD_SETSIZE: i32 = 1024;
276pub const _BITS_TIME64_H: i32 = 1;
277pub const _____fpos_t_defined: i32 = 1;
278pub const ____mbstate_t_defined: i32 = 1;
279pub const _____fpos64_t_defined: i32 = 1;
280pub const ____FILE_defined: i32 = 1;
281pub const __FILE_defined: i32 = 1;
282pub const __struct_FILE_defined: i32 = 1;
283pub const _IO_EOF_SEEN: i32 = 16;
284pub const _IO_ERR_SEEN: i32 = 32;
285pub const _IO_USER_LOCK: i32 = 32768;
286pub const __cookie_io_functions_t_defined: i32 = 1;
287pub const _IOFBF: i32 = 0;
288pub const _IOLBF: i32 = 1;
289pub const _IONBF: i32 = 2;
290pub const BUFSIZ: i32 = 8192;
291pub const EOF: i32 = -1;
292pub const SEEK_SET: i32 = 0;
293pub const SEEK_CUR: i32 = 1;
294pub const SEEK_END: i32 = 2;
295pub const SEEK_DATA: i32 = 3;
296pub const SEEK_HOLE: i32 = 4;
297pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0";
298pub const _BITS_STDIO_LIM_H: i32 = 1;
299pub const L_tmpnam: i32 = 20;
300pub const TMP_MAX: i32 = 238328;
301pub const FILENAME_MAX: i32 = 4096;
302pub const L_ctermid: i32 = 9;
303pub const L_cuserid: i32 = 9;
304pub const FOPEN_MAX: i32 = 16;
305pub const RENAME_NOREPLACE: i32 = 1;
306pub const RENAME_EXCHANGE: i32 = 2;
307pub const RENAME_WHITEOUT: i32 = 4;
308pub const LUA_GNAME: &[u8; 3usize] = b"_G\0";
309pub const LUA_ERRFILE: i32 = 6;
310pub const LUA_LOADED_TABLE: &[u8; 8usize] = b"_LOADED\0";
311pub const LUA_PRELOAD_TABLE: &[u8; 9usize] = b"_PRELOAD\0";
312pub const LUA_NOREF: i32 = -2;
313pub const LUA_REFNIL: i32 = -1;
314pub const LUA_FILEHANDLE: &[u8; 6usize] = b"FILE*\0";
315pub type va_list = __builtin_va_list;
316pub type __gnuc_va_list = __builtin_va_list;
317#[repr(C)]
318#[repr(align(16))]
319#[derive(Debug, Copy, Clone)]
320pub struct max_align_t {
321    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
322    pub __bindgen_padding_0: u64,
323    pub __clang_max_align_nonce2: u128,
324}
325#[repr(C)]
326#[derive(Debug, Copy, Clone)]
327pub struct lua_State {
328    _unused: [u8; 0],
329}
330pub type lua_Number = f64;
331pub type lua_Integer = ::std::os::raw::c_longlong;
332pub type lua_Unsigned = ::std::os::raw::c_ulonglong;
333pub type lua_KContext = isize;
334pub type lua_CFunction =
335    ::std::option::Option<unsafe extern "C" fn(L: *mut lua_State) -> ::std::os::raw::c_int>;
336pub type lua_KFunction = ::std::option::Option<
337    unsafe extern "C" fn(
338        L: *mut lua_State,
339        status: ::std::os::raw::c_int,
340        ctx: lua_KContext,
341    ) -> ::std::os::raw::c_int,
342>;
343pub type lua_Reader = ::std::option::Option<
344    unsafe extern "C" fn(
345        L: *mut lua_State,
346        ud: *mut ::std::os::raw::c_void,
347        sz: *mut usize,
348    ) -> *const ::std::os::raw::c_char,
349>;
350pub type lua_Writer = ::std::option::Option<
351    unsafe extern "C" fn(
352        L: *mut lua_State,
353        p: *const ::std::os::raw::c_void,
354        sz: usize,
355        ud: *mut ::std::os::raw::c_void,
356    ) -> ::std::os::raw::c_int,
357>;
358pub type lua_Alloc = ::std::option::Option<
359    unsafe extern "C" fn(
360        ud: *mut ::std::os::raw::c_void,
361        ptr: *mut ::std::os::raw::c_void,
362        osize: usize,
363        nsize: usize,
364    ) -> *mut ::std::os::raw::c_void,
365>;
366pub type lua_WarnFunction = ::std::option::Option<
367    unsafe extern "C" fn(
368        ud: *mut ::std::os::raw::c_void,
369        msg: *const ::std::os::raw::c_char,
370        tocont: ::std::os::raw::c_int,
371    ),
372>;
373extern "C" {
374    pub static mut lua_ident: [::std::os::raw::c_char; 0usize];
375}
376extern "C" {
377    pub fn lua_newstate(f: lua_Alloc, ud: *mut ::std::os::raw::c_void) -> *mut lua_State;
378}
379extern "C" {
380    pub fn lua_close(L: *mut lua_State);
381}
382extern "C" {
383    pub fn lua_newthread(L: *mut lua_State) -> *mut lua_State;
384}
385extern "C" {
386    pub fn lua_resetthread(L: *mut lua_State) -> ::std::os::raw::c_int;
387}
388extern "C" {
389    pub fn lua_atpanic(L: *mut lua_State, panicf: lua_CFunction) -> lua_CFunction;
390}
391extern "C" {
392    pub fn lua_version(L: *mut lua_State) -> lua_Number;
393}
394extern "C" {
395    pub fn lua_absindex(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
396}
397extern "C" {
398    pub fn lua_gettop(L: *mut lua_State) -> ::std::os::raw::c_int;
399}
400extern "C" {
401    pub fn lua_settop(L: *mut lua_State, idx: ::std::os::raw::c_int);
402}
403extern "C" {
404    pub fn lua_pushvalue(L: *mut lua_State, idx: ::std::os::raw::c_int);
405}
406extern "C" {
407    pub fn lua_rotate(L: *mut lua_State, idx: ::std::os::raw::c_int, n: ::std::os::raw::c_int);
408}
409extern "C" {
410    pub fn lua_copy(
411        L: *mut lua_State,
412        fromidx: ::std::os::raw::c_int,
413        toidx: ::std::os::raw::c_int,
414    );
415}
416extern "C" {
417    pub fn lua_checkstack(L: *mut lua_State, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
418}
419extern "C" {
420    pub fn lua_xmove(from: *mut lua_State, to: *mut lua_State, n: ::std::os::raw::c_int);
421}
422extern "C" {
423    pub fn lua_isnumber(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
424}
425extern "C" {
426    pub fn lua_isstring(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
427}
428extern "C" {
429    pub fn lua_iscfunction(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
430}
431extern "C" {
432    pub fn lua_isinteger(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
433}
434extern "C" {
435    pub fn lua_isuserdata(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
436}
437extern "C" {
438    pub fn lua_type(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
439}
440extern "C" {
441    pub fn lua_typename(
442        L: *mut lua_State,
443        tp: ::std::os::raw::c_int,
444    ) -> *const ::std::os::raw::c_char;
445}
446extern "C" {
447    pub fn lua_tonumberx(
448        L: *mut lua_State,
449        idx: ::std::os::raw::c_int,
450        isnum: *mut ::std::os::raw::c_int,
451    ) -> lua_Number;
452}
453extern "C" {
454    pub fn lua_tointegerx(
455        L: *mut lua_State,
456        idx: ::std::os::raw::c_int,
457        isnum: *mut ::std::os::raw::c_int,
458    ) -> lua_Integer;
459}
460extern "C" {
461    pub fn lua_toboolean(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
462}
463extern "C" {
464    pub fn lua_tolstring(
465        L: *mut lua_State,
466        idx: ::std::os::raw::c_int,
467        len: *mut usize,
468    ) -> *const ::std::os::raw::c_char;
469}
470extern "C" {
471    pub fn lua_rawlen(L: *mut lua_State, idx: ::std::os::raw::c_int) -> lua_Unsigned;
472}
473extern "C" {
474    pub fn lua_tocfunction(L: *mut lua_State, idx: ::std::os::raw::c_int) -> lua_CFunction;
475}
476extern "C" {
477    pub fn lua_touserdata(
478        L: *mut lua_State,
479        idx: ::std::os::raw::c_int,
480    ) -> *mut ::std::os::raw::c_void;
481}
482extern "C" {
483    pub fn lua_tothread(L: *mut lua_State, idx: ::std::os::raw::c_int) -> *mut lua_State;
484}
485extern "C" {
486    pub fn lua_topointer(
487        L: *mut lua_State,
488        idx: ::std::os::raw::c_int,
489    ) -> *const ::std::os::raw::c_void;
490}
491extern "C" {
492    pub fn lua_arith(L: *mut lua_State, op: ::std::os::raw::c_int);
493}
494extern "C" {
495    pub fn lua_rawequal(
496        L: *mut lua_State,
497        idx1: ::std::os::raw::c_int,
498        idx2: ::std::os::raw::c_int,
499    ) -> ::std::os::raw::c_int;
500}
501extern "C" {
502    pub fn lua_compare(
503        L: *mut lua_State,
504        idx1: ::std::os::raw::c_int,
505        idx2: ::std::os::raw::c_int,
506        op: ::std::os::raw::c_int,
507    ) -> ::std::os::raw::c_int;
508}
509extern "C" {
510    pub fn lua_pushnil(L: *mut lua_State);
511}
512extern "C" {
513    pub fn lua_pushnumber(L: *mut lua_State, n: lua_Number);
514}
515extern "C" {
516    pub fn lua_pushinteger(L: *mut lua_State, n: lua_Integer);
517}
518extern "C" {
519    pub fn lua_pushlstring(
520        L: *mut lua_State,
521        s: *const ::std::os::raw::c_char,
522        len: usize,
523    ) -> *const ::std::os::raw::c_char;
524}
525extern "C" {
526    pub fn lua_pushstring(
527        L: *mut lua_State,
528        s: *const ::std::os::raw::c_char,
529    ) -> *const ::std::os::raw::c_char;
530}
531extern "C" {
532    pub fn lua_pushvfstring(
533        L: *mut lua_State,
534        fmt: *const ::std::os::raw::c_char,
535        argp: *mut __va_list_tag,
536    ) -> *const ::std::os::raw::c_char;
537}
538extern "C" {
539    pub fn lua_pushfstring(
540        L: *mut lua_State,
541        fmt: *const ::std::os::raw::c_char,
542        ...
543    ) -> *const ::std::os::raw::c_char;
544}
545extern "C" {
546    pub fn lua_pushcclosure(L: *mut lua_State, fn_: lua_CFunction, n: ::std::os::raw::c_int);
547}
548extern "C" {
549    pub fn lua_pushboolean(L: *mut lua_State, b: ::std::os::raw::c_int);
550}
551extern "C" {
552    pub fn lua_pushlightuserdata(L: *mut lua_State, p: *mut ::std::os::raw::c_void);
553}
554extern "C" {
555    pub fn lua_pushthread(L: *mut lua_State) -> ::std::os::raw::c_int;
556}
557extern "C" {
558    pub fn lua_getglobal(
559        L: *mut lua_State,
560        name: *const ::std::os::raw::c_char,
561    ) -> ::std::os::raw::c_int;
562}
563extern "C" {
564    pub fn lua_gettable(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
565}
566extern "C" {
567    pub fn lua_getfield(
568        L: *mut lua_State,
569        idx: ::std::os::raw::c_int,
570        k: *const ::std::os::raw::c_char,
571    ) -> ::std::os::raw::c_int;
572}
573extern "C" {
574    pub fn lua_geti(
575        L: *mut lua_State,
576        idx: ::std::os::raw::c_int,
577        n: lua_Integer,
578    ) -> ::std::os::raw::c_int;
579}
580extern "C" {
581    pub fn lua_rawget(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
582}
583extern "C" {
584    pub fn lua_rawgeti(
585        L: *mut lua_State,
586        idx: ::std::os::raw::c_int,
587        n: lua_Integer,
588    ) -> ::std::os::raw::c_int;
589}
590extern "C" {
591    pub fn lua_rawgetp(
592        L: *mut lua_State,
593        idx: ::std::os::raw::c_int,
594        p: *const ::std::os::raw::c_void,
595    ) -> ::std::os::raw::c_int;
596}
597extern "C" {
598    pub fn lua_createtable(
599        L: *mut lua_State,
600        narr: ::std::os::raw::c_int,
601        nrec: ::std::os::raw::c_int,
602    );
603}
604extern "C" {
605    pub fn lua_newuserdatauv(
606        L: *mut lua_State,
607        sz: usize,
608        nuvalue: ::std::os::raw::c_int,
609    ) -> *mut ::std::os::raw::c_void;
610}
611extern "C" {
612    pub fn lua_getmetatable(
613        L: *mut lua_State,
614        objindex: ::std::os::raw::c_int,
615    ) -> ::std::os::raw::c_int;
616}
617extern "C" {
618    pub fn lua_getiuservalue(
619        L: *mut lua_State,
620        idx: ::std::os::raw::c_int,
621        n: ::std::os::raw::c_int,
622    ) -> ::std::os::raw::c_int;
623}
624extern "C" {
625    pub fn lua_setglobal(L: *mut lua_State, name: *const ::std::os::raw::c_char);
626}
627extern "C" {
628    pub fn lua_settable(L: *mut lua_State, idx: ::std::os::raw::c_int);
629}
630extern "C" {
631    pub fn lua_setfield(
632        L: *mut lua_State,
633        idx: ::std::os::raw::c_int,
634        k: *const ::std::os::raw::c_char,
635    );
636}
637extern "C" {
638    pub fn lua_seti(L: *mut lua_State, idx: ::std::os::raw::c_int, n: lua_Integer);
639}
640extern "C" {
641    pub fn lua_rawset(L: *mut lua_State, idx: ::std::os::raw::c_int);
642}
643extern "C" {
644    pub fn lua_rawseti(L: *mut lua_State, idx: ::std::os::raw::c_int, n: lua_Integer);
645}
646extern "C" {
647    pub fn lua_rawsetp(
648        L: *mut lua_State,
649        idx: ::std::os::raw::c_int,
650        p: *const ::std::os::raw::c_void,
651    );
652}
653extern "C" {
654    pub fn lua_setmetatable(
655        L: *mut lua_State,
656        objindex: ::std::os::raw::c_int,
657    ) -> ::std::os::raw::c_int;
658}
659extern "C" {
660    pub fn lua_setiuservalue(
661        L: *mut lua_State,
662        idx: ::std::os::raw::c_int,
663        n: ::std::os::raw::c_int,
664    ) -> ::std::os::raw::c_int;
665}
666extern "C" {
667    pub fn lua_callk(
668        L: *mut lua_State,
669        nargs: ::std::os::raw::c_int,
670        nresults: ::std::os::raw::c_int,
671        ctx: lua_KContext,
672        k: lua_KFunction,
673    );
674}
675extern "C" {
676    pub fn lua_pcallk(
677        L: *mut lua_State,
678        nargs: ::std::os::raw::c_int,
679        nresults: ::std::os::raw::c_int,
680        errfunc: ::std::os::raw::c_int,
681        ctx: lua_KContext,
682        k: lua_KFunction,
683    ) -> ::std::os::raw::c_int;
684}
685extern "C" {
686    pub fn lua_load(
687        L: *mut lua_State,
688        reader: lua_Reader,
689        dt: *mut ::std::os::raw::c_void,
690        chunkname: *const ::std::os::raw::c_char,
691        mode: *const ::std::os::raw::c_char,
692    ) -> ::std::os::raw::c_int;
693}
694extern "C" {
695    pub fn lua_dump(
696        L: *mut lua_State,
697        writer: lua_Writer,
698        data: *mut ::std::os::raw::c_void,
699        strip: ::std::os::raw::c_int,
700    ) -> ::std::os::raw::c_int;
701}
702extern "C" {
703    pub fn lua_yieldk(
704        L: *mut lua_State,
705        nresults: ::std::os::raw::c_int,
706        ctx: lua_KContext,
707        k: lua_KFunction,
708    ) -> ::std::os::raw::c_int;
709}
710extern "C" {
711    pub fn lua_resume(
712        L: *mut lua_State,
713        from: *mut lua_State,
714        narg: ::std::os::raw::c_int,
715        nres: *mut ::std::os::raw::c_int,
716    ) -> ::std::os::raw::c_int;
717}
718extern "C" {
719    pub fn lua_status(L: *mut lua_State) -> ::std::os::raw::c_int;
720}
721extern "C" {
722    pub fn lua_isyieldable(L: *mut lua_State) -> ::std::os::raw::c_int;
723}
724extern "C" {
725    pub fn lua_setwarnf(L: *mut lua_State, f: lua_WarnFunction, ud: *mut ::std::os::raw::c_void);
726}
727extern "C" {
728    pub fn lua_warning(
729        L: *mut lua_State,
730        msg: *const ::std::os::raw::c_char,
731        tocont: ::std::os::raw::c_int,
732    );
733}
734extern "C" {
735    pub fn lua_gc(L: *mut lua_State, what: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int;
736}
737extern "C" {
738    pub fn lua_error(L: *mut lua_State) -> ::std::os::raw::c_int;
739}
740extern "C" {
741    pub fn lua_next(L: *mut lua_State, idx: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
742}
743extern "C" {
744    pub fn lua_concat(L: *mut lua_State, n: ::std::os::raw::c_int);
745}
746extern "C" {
747    pub fn lua_len(L: *mut lua_State, idx: ::std::os::raw::c_int);
748}
749extern "C" {
750    pub fn lua_stringtonumber(L: *mut lua_State, s: *const ::std::os::raw::c_char) -> usize;
751}
752extern "C" {
753    pub fn lua_getallocf(L: *mut lua_State, ud: *mut *mut ::std::os::raw::c_void) -> lua_Alloc;
754}
755extern "C" {
756    pub fn lua_setallocf(L: *mut lua_State, f: lua_Alloc, ud: *mut ::std::os::raw::c_void);
757}
758extern "C" {
759    pub fn lua_toclose(L: *mut lua_State, idx: ::std::os::raw::c_int);
760}
761extern "C" {
762    pub fn lua_closeslot(L: *mut lua_State, idx: ::std::os::raw::c_int);
763}
764pub type lua_Hook =
765    ::std::option::Option<unsafe extern "C" fn(L: *mut lua_State, ar: *mut lua_Debug)>;
766extern "C" {
767    pub fn lua_getstack(
768        L: *mut lua_State,
769        level: ::std::os::raw::c_int,
770        ar: *mut lua_Debug,
771    ) -> ::std::os::raw::c_int;
772}
773extern "C" {
774    pub fn lua_getinfo(
775        L: *mut lua_State,
776        what: *const ::std::os::raw::c_char,
777        ar: *mut lua_Debug,
778    ) -> ::std::os::raw::c_int;
779}
780extern "C" {
781    pub fn lua_getlocal(
782        L: *mut lua_State,
783        ar: *const lua_Debug,
784        n: ::std::os::raw::c_int,
785    ) -> *const ::std::os::raw::c_char;
786}
787extern "C" {
788    pub fn lua_setlocal(
789        L: *mut lua_State,
790        ar: *const lua_Debug,
791        n: ::std::os::raw::c_int,
792    ) -> *const ::std::os::raw::c_char;
793}
794extern "C" {
795    pub fn lua_getupvalue(
796        L: *mut lua_State,
797        funcindex: ::std::os::raw::c_int,
798        n: ::std::os::raw::c_int,
799    ) -> *const ::std::os::raw::c_char;
800}
801extern "C" {
802    pub fn lua_setupvalue(
803        L: *mut lua_State,
804        funcindex: ::std::os::raw::c_int,
805        n: ::std::os::raw::c_int,
806    ) -> *const ::std::os::raw::c_char;
807}
808extern "C" {
809    pub fn lua_upvalueid(
810        L: *mut lua_State,
811        fidx: ::std::os::raw::c_int,
812        n: ::std::os::raw::c_int,
813    ) -> *mut ::std::os::raw::c_void;
814}
815extern "C" {
816    pub fn lua_upvaluejoin(
817        L: *mut lua_State,
818        fidx1: ::std::os::raw::c_int,
819        n1: ::std::os::raw::c_int,
820        fidx2: ::std::os::raw::c_int,
821        n2: ::std::os::raw::c_int,
822    );
823}
824extern "C" {
825    pub fn lua_sethook(
826        L: *mut lua_State,
827        func: lua_Hook,
828        mask: ::std::os::raw::c_int,
829        count: ::std::os::raw::c_int,
830    );
831}
832extern "C" {
833    pub fn lua_gethook(L: *mut lua_State) -> lua_Hook;
834}
835extern "C" {
836    pub fn lua_gethookmask(L: *mut lua_State) -> ::std::os::raw::c_int;
837}
838extern "C" {
839    pub fn lua_gethookcount(L: *mut lua_State) -> ::std::os::raw::c_int;
840}
841extern "C" {
842    pub fn lua_setcstacklimit(
843        L: *mut lua_State,
844        limit: ::std::os::raw::c_uint,
845    ) -> ::std::os::raw::c_int;
846}
847#[repr(C)]
848#[derive(Debug, Copy, Clone)]
849pub struct lua_Debug {
850    pub event: ::std::os::raw::c_int,
851    pub name: *const ::std::os::raw::c_char,
852    pub namewhat: *const ::std::os::raw::c_char,
853    pub what: *const ::std::os::raw::c_char,
854    pub source: *const ::std::os::raw::c_char,
855    pub srclen: usize,
856    pub currentline: ::std::os::raw::c_int,
857    pub linedefined: ::std::os::raw::c_int,
858    pub lastlinedefined: ::std::os::raw::c_int,
859    pub nups: ::std::os::raw::c_uchar,
860    pub nparams: ::std::os::raw::c_uchar,
861    pub isvararg: ::std::os::raw::c_char,
862    pub istailcall: ::std::os::raw::c_char,
863    pub ftransfer: ::std::os::raw::c_ushort,
864    pub ntransfer: ::std::os::raw::c_ushort,
865    pub short_src: [::std::os::raw::c_char; 60usize],
866    pub i_ci: *mut CallInfo,
867}
868extern "C" {
869    pub fn luaopen_base(L: *mut lua_State) -> ::std::os::raw::c_int;
870}
871extern "C" {
872    pub fn luaopen_coroutine(L: *mut lua_State) -> ::std::os::raw::c_int;
873}
874extern "C" {
875    pub fn luaopen_table(L: *mut lua_State) -> ::std::os::raw::c_int;
876}
877extern "C" {
878    pub fn luaopen_io(L: *mut lua_State) -> ::std::os::raw::c_int;
879}
880extern "C" {
881    pub fn luaopen_os(L: *mut lua_State) -> ::std::os::raw::c_int;
882}
883extern "C" {
884    pub fn luaopen_string(L: *mut lua_State) -> ::std::os::raw::c_int;
885}
886extern "C" {
887    pub fn luaopen_utf8(L: *mut lua_State) -> ::std::os::raw::c_int;
888}
889extern "C" {
890    pub fn luaopen_math(L: *mut lua_State) -> ::std::os::raw::c_int;
891}
892extern "C" {
893    pub fn luaopen_debug(L: *mut lua_State) -> ::std::os::raw::c_int;
894}
895extern "C" {
896    pub fn luaopen_package(L: *mut lua_State) -> ::std::os::raw::c_int;
897}
898extern "C" {
899    pub fn luaL_openlibs(L: *mut lua_State);
900}
901pub type __u_char = ::std::os::raw::c_uchar;
902pub type __u_short = ::std::os::raw::c_ushort;
903pub type __u_int = ::std::os::raw::c_uint;
904pub type __u_long = ::std::os::raw::c_ulong;
905pub type __int8_t = ::std::os::raw::c_schar;
906pub type __uint8_t = ::std::os::raw::c_uchar;
907pub type __int16_t = ::std::os::raw::c_short;
908pub type __uint16_t = ::std::os::raw::c_ushort;
909pub type __int32_t = ::std::os::raw::c_int;
910pub type __uint32_t = ::std::os::raw::c_uint;
911pub type __int64_t = ::std::os::raw::c_long;
912pub type __uint64_t = ::std::os::raw::c_ulong;
913pub type __int_least8_t = __int8_t;
914pub type __uint_least8_t = __uint8_t;
915pub type __int_least16_t = __int16_t;
916pub type __uint_least16_t = __uint16_t;
917pub type __int_least32_t = __int32_t;
918pub type __uint_least32_t = __uint32_t;
919pub type __int_least64_t = __int64_t;
920pub type __uint_least64_t = __uint64_t;
921pub type __quad_t = ::std::os::raw::c_long;
922pub type __u_quad_t = ::std::os::raw::c_ulong;
923pub type __intmax_t = ::std::os::raw::c_long;
924pub type __uintmax_t = ::std::os::raw::c_ulong;
925pub type __dev_t = ::std::os::raw::c_ulong;
926pub type __uid_t = ::std::os::raw::c_uint;
927pub type __gid_t = ::std::os::raw::c_uint;
928pub type __ino_t = ::std::os::raw::c_ulong;
929pub type __ino64_t = ::std::os::raw::c_ulong;
930pub type __mode_t = ::std::os::raw::c_uint;
931pub type __nlink_t = ::std::os::raw::c_ulong;
932pub type __off_t = ::std::os::raw::c_long;
933pub type __off64_t = ::std::os::raw::c_long;
934pub type __pid_t = ::std::os::raw::c_int;
935#[repr(C)]
936#[derive(Debug, Copy, Clone)]
937pub struct __fsid_t {
938    pub __val: [::std::os::raw::c_int; 2usize],
939}
940pub type __clock_t = ::std::os::raw::c_long;
941pub type __rlim_t = ::std::os::raw::c_ulong;
942pub type __rlim64_t = ::std::os::raw::c_ulong;
943pub type __id_t = ::std::os::raw::c_uint;
944pub type __time_t = ::std::os::raw::c_long;
945pub type __useconds_t = ::std::os::raw::c_uint;
946pub type __suseconds_t = ::std::os::raw::c_long;
947pub type __daddr_t = ::std::os::raw::c_int;
948pub type __key_t = ::std::os::raw::c_int;
949pub type __clockid_t = ::std::os::raw::c_int;
950pub type __timer_t = *mut ::std::os::raw::c_void;
951pub type __blksize_t = ::std::os::raw::c_long;
952pub type __blkcnt_t = ::std::os::raw::c_long;
953pub type __blkcnt64_t = ::std::os::raw::c_long;
954pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
955pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
956pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
957pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
958pub type __fsword_t = ::std::os::raw::c_long;
959pub type __ssize_t = ::std::os::raw::c_long;
960pub type __syscall_slong_t = ::std::os::raw::c_long;
961pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
962pub type __loff_t = __off64_t;
963pub type __caddr_t = *mut ::std::os::raw::c_char;
964pub type __intptr_t = ::std::os::raw::c_long;
965pub type __socklen_t = ::std::os::raw::c_uint;
966pub type __sig_atomic_t = ::std::os::raw::c_int;
967#[repr(C)]
968#[derive(Copy, Clone)]
969pub struct __mbstate_t {
970    pub __count: ::std::os::raw::c_int,
971    pub __value: __mbstate_t__bindgen_ty_1,
972}
973#[repr(C)]
974#[derive(Copy, Clone)]
975pub union __mbstate_t__bindgen_ty_1 {
976    pub __wch: ::std::os::raw::c_uint,
977    pub __wchb: [::std::os::raw::c_char; 4usize],
978}
979#[repr(C)]
980#[derive(Copy, Clone)]
981pub struct _G_fpos_t {
982    pub __pos: __off_t,
983    pub __state: __mbstate_t,
984}
985pub type __fpos_t = _G_fpos_t;
986#[repr(C)]
987#[derive(Copy, Clone)]
988pub struct _G_fpos64_t {
989    pub __pos: __off64_t,
990    pub __state: __mbstate_t,
991}
992pub type __fpos64_t = _G_fpos64_t;
993pub type __FILE = _IO_FILE;
994pub type FILE = _IO_FILE;
995#[repr(C)]
996#[derive(Debug, Copy, Clone)]
997pub struct _IO_marker {
998    _unused: [u8; 0],
999}
1000#[repr(C)]
1001#[derive(Debug, Copy, Clone)]
1002pub struct _IO_codecvt {
1003    _unused: [u8; 0],
1004}
1005#[repr(C)]
1006#[derive(Debug, Copy, Clone)]
1007pub struct _IO_wide_data {
1008    _unused: [u8; 0],
1009}
1010pub type _IO_lock_t = ::std::os::raw::c_void;
1011#[repr(C)]
1012#[derive(Debug, Copy, Clone)]
1013pub struct _IO_FILE {
1014    pub _flags: ::std::os::raw::c_int,
1015    pub _IO_read_ptr: *mut ::std::os::raw::c_char,
1016    pub _IO_read_end: *mut ::std::os::raw::c_char,
1017    pub _IO_read_base: *mut ::std::os::raw::c_char,
1018    pub _IO_write_base: *mut ::std::os::raw::c_char,
1019    pub _IO_write_ptr: *mut ::std::os::raw::c_char,
1020    pub _IO_write_end: *mut ::std::os::raw::c_char,
1021    pub _IO_buf_base: *mut ::std::os::raw::c_char,
1022    pub _IO_buf_end: *mut ::std::os::raw::c_char,
1023    pub _IO_save_base: *mut ::std::os::raw::c_char,
1024    pub _IO_backup_base: *mut ::std::os::raw::c_char,
1025    pub _IO_save_end: *mut ::std::os::raw::c_char,
1026    pub _markers: *mut _IO_marker,
1027    pub _chain: *mut _IO_FILE,
1028    pub _fileno: ::std::os::raw::c_int,
1029    pub _flags2: ::std::os::raw::c_int,
1030    pub _old_offset: __off_t,
1031    pub _cur_column: ::std::os::raw::c_ushort,
1032    pub _vtable_offset: ::std::os::raw::c_schar,
1033    pub _shortbuf: [::std::os::raw::c_char; 1usize],
1034    pub _lock: *mut _IO_lock_t,
1035    pub _offset: __off64_t,
1036    pub _codecvt: *mut _IO_codecvt,
1037    pub _wide_data: *mut _IO_wide_data,
1038    pub _freeres_list: *mut _IO_FILE,
1039    pub _freeres_buf: *mut ::std::os::raw::c_void,
1040    pub __pad5: usize,
1041    pub _mode: ::std::os::raw::c_int,
1042    pub _unused2: [::std::os::raw::c_char; 20usize],
1043}
1044pub type cookie_read_function_t = ::std::option::Option<
1045    unsafe extern "C" fn(
1046        __cookie: *mut ::std::os::raw::c_void,
1047        __buf: *mut ::std::os::raw::c_char,
1048        __nbytes: usize,
1049    ) -> __ssize_t,
1050>;
1051pub type cookie_write_function_t = ::std::option::Option<
1052    unsafe extern "C" fn(
1053        __cookie: *mut ::std::os::raw::c_void,
1054        __buf: *const ::std::os::raw::c_char,
1055        __nbytes: usize,
1056    ) -> __ssize_t,
1057>;
1058pub type cookie_seek_function_t = ::std::option::Option<
1059    unsafe extern "C" fn(
1060        __cookie: *mut ::std::os::raw::c_void,
1061        __pos: *mut __off64_t,
1062        __w: ::std::os::raw::c_int,
1063    ) -> ::std::os::raw::c_int,
1064>;
1065pub type cookie_close_function_t = ::std::option::Option<
1066    unsafe extern "C" fn(__cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
1067>;
1068#[repr(C)]
1069#[derive(Debug, Copy, Clone)]
1070pub struct _IO_cookie_io_functions_t {
1071    pub read: cookie_read_function_t,
1072    pub write: cookie_write_function_t,
1073    pub seek: cookie_seek_function_t,
1074    pub close: cookie_close_function_t,
1075}
1076pub type cookie_io_functions_t = _IO_cookie_io_functions_t;
1077pub type off_t = __off_t;
1078pub type off64_t = __off64_t;
1079pub type fpos_t = __fpos_t;
1080pub type fpos64_t = __fpos64_t;
1081extern "C" {
1082    pub static mut stdin: *mut FILE;
1083}
1084extern "C" {
1085    pub static mut stdout: *mut FILE;
1086}
1087extern "C" {
1088    pub static mut stderr: *mut FILE;
1089}
1090extern "C" {
1091    pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1092}
1093extern "C" {
1094    pub fn rename(
1095        __old: *const ::std::os::raw::c_char,
1096        __new: *const ::std::os::raw::c_char,
1097    ) -> ::std::os::raw::c_int;
1098}
1099extern "C" {
1100    pub fn renameat(
1101        __oldfd: ::std::os::raw::c_int,
1102        __old: *const ::std::os::raw::c_char,
1103        __newfd: ::std::os::raw::c_int,
1104        __new: *const ::std::os::raw::c_char,
1105    ) -> ::std::os::raw::c_int;
1106}
1107extern "C" {
1108    pub fn renameat2(
1109        __oldfd: ::std::os::raw::c_int,
1110        __old: *const ::std::os::raw::c_char,
1111        __newfd: ::std::os::raw::c_int,
1112        __new: *const ::std::os::raw::c_char,
1113        __flags: ::std::os::raw::c_uint,
1114    ) -> ::std::os::raw::c_int;
1115}
1116extern "C" {
1117    pub fn tmpfile() -> *mut FILE;
1118}
1119extern "C" {
1120    pub fn tmpfile64() -> *mut FILE;
1121}
1122extern "C" {
1123    pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1124}
1125extern "C" {
1126    pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1127}
1128extern "C" {
1129    pub fn tempnam(
1130        __dir: *const ::std::os::raw::c_char,
1131        __pfx: *const ::std::os::raw::c_char,
1132    ) -> *mut ::std::os::raw::c_char;
1133}
1134extern "C" {
1135    pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
1136}
1137extern "C" {
1138    pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int;
1139}
1140extern "C" {
1141    pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1142}
1143extern "C" {
1144    pub fn fcloseall() -> ::std::os::raw::c_int;
1145}
1146extern "C" {
1147    pub fn fopen(
1148        __filename: *const ::std::os::raw::c_char,
1149        __modes: *const ::std::os::raw::c_char,
1150    ) -> *mut FILE;
1151}
1152extern "C" {
1153    pub fn freopen(
1154        __filename: *const ::std::os::raw::c_char,
1155        __modes: *const ::std::os::raw::c_char,
1156        __stream: *mut FILE,
1157    ) -> *mut FILE;
1158}
1159extern "C" {
1160    pub fn fopen64(
1161        __filename: *const ::std::os::raw::c_char,
1162        __modes: *const ::std::os::raw::c_char,
1163    ) -> *mut FILE;
1164}
1165extern "C" {
1166    pub fn freopen64(
1167        __filename: *const ::std::os::raw::c_char,
1168        __modes: *const ::std::os::raw::c_char,
1169        __stream: *mut FILE,
1170    ) -> *mut FILE;
1171}
1172extern "C" {
1173    pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
1174        -> *mut FILE;
1175}
1176extern "C" {
1177    pub fn fopencookie(
1178        __magic_cookie: *mut ::std::os::raw::c_void,
1179        __modes: *const ::std::os::raw::c_char,
1180        __io_funcs: cookie_io_functions_t,
1181    ) -> *mut FILE;
1182}
1183extern "C" {
1184    pub fn fmemopen(
1185        __s: *mut ::std::os::raw::c_void,
1186        __len: usize,
1187        __modes: *const ::std::os::raw::c_char,
1188    ) -> *mut FILE;
1189}
1190extern "C" {
1191    pub fn open_memstream(
1192        __bufloc: *mut *mut ::std::os::raw::c_char,
1193        __sizeloc: *mut usize,
1194    ) -> *mut FILE;
1195}
1196extern "C" {
1197    pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char);
1198}
1199extern "C" {
1200    pub fn setvbuf(
1201        __stream: *mut FILE,
1202        __buf: *mut ::std::os::raw::c_char,
1203        __modes: ::std::os::raw::c_int,
1204        __n: usize,
1205    ) -> ::std::os::raw::c_int;
1206}
1207extern "C" {
1208    pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
1209}
1210extern "C" {
1211    pub fn setlinebuf(__stream: *mut FILE);
1212}
1213extern "C" {
1214    pub fn fprintf(
1215        __stream: *mut FILE,
1216        __format: *const ::std::os::raw::c_char,
1217        ...
1218    ) -> ::std::os::raw::c_int;
1219}
1220extern "C" {
1221    pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1222}
1223extern "C" {
1224    pub fn sprintf(
1225        __s: *mut ::std::os::raw::c_char,
1226        __format: *const ::std::os::raw::c_char,
1227        ...
1228    ) -> ::std::os::raw::c_int;
1229}
1230extern "C" {
1231    pub fn vfprintf(
1232        __s: *mut FILE,
1233        __format: *const ::std::os::raw::c_char,
1234        __arg: *mut __va_list_tag,
1235    ) -> ::std::os::raw::c_int;
1236}
1237extern "C" {
1238    pub fn vprintf(
1239        __format: *const ::std::os::raw::c_char,
1240        __arg: *mut __va_list_tag,
1241    ) -> ::std::os::raw::c_int;
1242}
1243extern "C" {
1244    pub fn vsprintf(
1245        __s: *mut ::std::os::raw::c_char,
1246        __format: *const ::std::os::raw::c_char,
1247        __arg: *mut __va_list_tag,
1248    ) -> ::std::os::raw::c_int;
1249}
1250extern "C" {
1251    pub fn snprintf(
1252        __s: *mut ::std::os::raw::c_char,
1253        __maxlen: usize,
1254        __format: *const ::std::os::raw::c_char,
1255        ...
1256    ) -> ::std::os::raw::c_int;
1257}
1258extern "C" {
1259    pub fn vsnprintf(
1260        __s: *mut ::std::os::raw::c_char,
1261        __maxlen: usize,
1262        __format: *const ::std::os::raw::c_char,
1263        __arg: *mut __va_list_tag,
1264    ) -> ::std::os::raw::c_int;
1265}
1266extern "C" {
1267    pub fn vasprintf(
1268        __ptr: *mut *mut ::std::os::raw::c_char,
1269        __f: *const ::std::os::raw::c_char,
1270        __arg: *mut __va_list_tag,
1271    ) -> ::std::os::raw::c_int;
1272}
1273extern "C" {
1274    pub fn __asprintf(
1275        __ptr: *mut *mut ::std::os::raw::c_char,
1276        __fmt: *const ::std::os::raw::c_char,
1277        ...
1278    ) -> ::std::os::raw::c_int;
1279}
1280extern "C" {
1281    pub fn asprintf(
1282        __ptr: *mut *mut ::std::os::raw::c_char,
1283        __fmt: *const ::std::os::raw::c_char,
1284        ...
1285    ) -> ::std::os::raw::c_int;
1286}
1287extern "C" {
1288    pub fn vdprintf(
1289        __fd: ::std::os::raw::c_int,
1290        __fmt: *const ::std::os::raw::c_char,
1291        __arg: *mut __va_list_tag,
1292    ) -> ::std::os::raw::c_int;
1293}
1294extern "C" {
1295    pub fn dprintf(
1296        __fd: ::std::os::raw::c_int,
1297        __fmt: *const ::std::os::raw::c_char,
1298        ...
1299    ) -> ::std::os::raw::c_int;
1300}
1301extern "C" {
1302    pub fn fscanf(
1303        __stream: *mut FILE,
1304        __format: *const ::std::os::raw::c_char,
1305        ...
1306    ) -> ::std::os::raw::c_int;
1307}
1308extern "C" {
1309    pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1310}
1311extern "C" {
1312    pub fn sscanf(
1313        __s: *const ::std::os::raw::c_char,
1314        __format: *const ::std::os::raw::c_char,
1315        ...
1316    ) -> ::std::os::raw::c_int;
1317}
1318extern "C" {
1319    #[link_name = "\u{1}__isoc99_fscanf"]
1320    pub fn fscanf1(
1321        __stream: *mut FILE,
1322        __format: *const ::std::os::raw::c_char,
1323        ...
1324    ) -> ::std::os::raw::c_int;
1325}
1326extern "C" {
1327    #[link_name = "\u{1}__isoc99_scanf"]
1328    pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
1329}
1330extern "C" {
1331    #[link_name = "\u{1}__isoc99_sscanf"]
1332    pub fn sscanf1(
1333        __s: *const ::std::os::raw::c_char,
1334        __format: *const ::std::os::raw::c_char,
1335        ...
1336    ) -> ::std::os::raw::c_int;
1337}
1338extern "C" {
1339    pub fn vfscanf(
1340        __s: *mut FILE,
1341        __format: *const ::std::os::raw::c_char,
1342        __arg: *mut __va_list_tag,
1343    ) -> ::std::os::raw::c_int;
1344}
1345extern "C" {
1346    pub fn vscanf(
1347        __format: *const ::std::os::raw::c_char,
1348        __arg: *mut __va_list_tag,
1349    ) -> ::std::os::raw::c_int;
1350}
1351extern "C" {
1352    pub fn vsscanf(
1353        __s: *const ::std::os::raw::c_char,
1354        __format: *const ::std::os::raw::c_char,
1355        __arg: *mut __va_list_tag,
1356    ) -> ::std::os::raw::c_int;
1357}
1358extern "C" {
1359    #[link_name = "\u{1}__isoc99_vfscanf"]
1360    pub fn vfscanf1(
1361        __s: *mut FILE,
1362        __format: *const ::std::os::raw::c_char,
1363        __arg: *mut __va_list_tag,
1364    ) -> ::std::os::raw::c_int;
1365}
1366extern "C" {
1367    #[link_name = "\u{1}__isoc99_vscanf"]
1368    pub fn vscanf1(
1369        __format: *const ::std::os::raw::c_char,
1370        __arg: *mut __va_list_tag,
1371    ) -> ::std::os::raw::c_int;
1372}
1373extern "C" {
1374    #[link_name = "\u{1}__isoc99_vsscanf"]
1375    pub fn vsscanf1(
1376        __s: *const ::std::os::raw::c_char,
1377        __format: *const ::std::os::raw::c_char,
1378        __arg: *mut __va_list_tag,
1379    ) -> ::std::os::raw::c_int;
1380}
1381extern "C" {
1382    pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
1383}
1384extern "C" {
1385    pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
1386}
1387extern "C" {
1388    pub fn getchar() -> ::std::os::raw::c_int;
1389}
1390extern "C" {
1391    pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1392}
1393extern "C" {
1394    pub fn getchar_unlocked() -> ::std::os::raw::c_int;
1395}
1396extern "C" {
1397    pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1398}
1399extern "C" {
1400    pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1401}
1402extern "C" {
1403    pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1404}
1405extern "C" {
1406    pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1407}
1408extern "C" {
1409    pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
1410        -> ::std::os::raw::c_int;
1411}
1412extern "C" {
1413    pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1414}
1415extern "C" {
1416    pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1417}
1418extern "C" {
1419    pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
1420}
1421extern "C" {
1422    pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1423}
1424extern "C" {
1425    pub fn fgets(
1426        __s: *mut ::std::os::raw::c_char,
1427        __n: ::std::os::raw::c_int,
1428        __stream: *mut FILE,
1429    ) -> *mut ::std::os::raw::c_char;
1430}
1431extern "C" {
1432    pub fn fgets_unlocked(
1433        __s: *mut ::std::os::raw::c_char,
1434        __n: ::std::os::raw::c_int,
1435        __stream: *mut FILE,
1436    ) -> *mut ::std::os::raw::c_char;
1437}
1438extern "C" {
1439    pub fn __getdelim(
1440        __lineptr: *mut *mut ::std::os::raw::c_char,
1441        __n: *mut usize,
1442        __delimiter: ::std::os::raw::c_int,
1443        __stream: *mut FILE,
1444    ) -> __ssize_t;
1445}
1446extern "C" {
1447    pub fn getdelim(
1448        __lineptr: *mut *mut ::std::os::raw::c_char,
1449        __n: *mut usize,
1450        __delimiter: ::std::os::raw::c_int,
1451        __stream: *mut FILE,
1452    ) -> __ssize_t;
1453}
1454extern "C" {
1455    pub fn getline(
1456        __lineptr: *mut *mut ::std::os::raw::c_char,
1457        __n: *mut usize,
1458        __stream: *mut FILE,
1459    ) -> __ssize_t;
1460}
1461extern "C" {
1462    pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
1463}
1464extern "C" {
1465    pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1466}
1467extern "C" {
1468    pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
1469}
1470extern "C" {
1471    pub fn fread(
1472        __ptr: *mut ::std::os::raw::c_void,
1473        __size: usize,
1474        __n: usize,
1475        __stream: *mut FILE,
1476    ) -> usize;
1477}
1478extern "C" {
1479    pub fn fwrite(
1480        __ptr: *const ::std::os::raw::c_void,
1481        __size: usize,
1482        __n: usize,
1483        __s: *mut FILE,
1484    ) -> usize;
1485}
1486extern "C" {
1487    pub fn fputs_unlocked(
1488        __s: *const ::std::os::raw::c_char,
1489        __stream: *mut FILE,
1490    ) -> ::std::os::raw::c_int;
1491}
1492extern "C" {
1493    pub fn fread_unlocked(
1494        __ptr: *mut ::std::os::raw::c_void,
1495        __size: usize,
1496        __n: usize,
1497        __stream: *mut FILE,
1498    ) -> usize;
1499}
1500extern "C" {
1501    pub fn fwrite_unlocked(
1502        __ptr: *const ::std::os::raw::c_void,
1503        __size: usize,
1504        __n: usize,
1505        __stream: *mut FILE,
1506    ) -> usize;
1507}
1508extern "C" {
1509    pub fn fseek(
1510        __stream: *mut FILE,
1511        __off: ::std::os::raw::c_long,
1512        __whence: ::std::os::raw::c_int,
1513    ) -> ::std::os::raw::c_int;
1514}
1515extern "C" {
1516    pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
1517}
1518extern "C" {
1519    pub fn rewind(__stream: *mut FILE);
1520}
1521extern "C" {
1522    pub fn fseeko(
1523        __stream: *mut FILE,
1524        __off: __off_t,
1525        __whence: ::std::os::raw::c_int,
1526    ) -> ::std::os::raw::c_int;
1527}
1528extern "C" {
1529    pub fn ftello(__stream: *mut FILE) -> __off_t;
1530}
1531extern "C" {
1532    pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
1533}
1534extern "C" {
1535    pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
1536}
1537extern "C" {
1538    pub fn fseeko64(
1539        __stream: *mut FILE,
1540        __off: __off64_t,
1541        __whence: ::std::os::raw::c_int,
1542    ) -> ::std::os::raw::c_int;
1543}
1544extern "C" {
1545    pub fn ftello64(__stream: *mut FILE) -> __off64_t;
1546}
1547extern "C" {
1548    pub fn fgetpos64(__stream: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int;
1549}
1550extern "C" {
1551    pub fn fsetpos64(__stream: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int;
1552}
1553extern "C" {
1554    pub fn clearerr(__stream: *mut FILE);
1555}
1556extern "C" {
1557    pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
1558}
1559extern "C" {
1560    pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
1561}
1562extern "C" {
1563    pub fn clearerr_unlocked(__stream: *mut FILE);
1564}
1565extern "C" {
1566    pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1567}
1568extern "C" {
1569    pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1570}
1571extern "C" {
1572    pub fn perror(__s: *const ::std::os::raw::c_char);
1573}
1574extern "C" {
1575    pub static mut sys_nerr: ::std::os::raw::c_int;
1576}
1577extern "C" {
1578    pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize];
1579}
1580extern "C" {
1581    pub static mut _sys_nerr: ::std::os::raw::c_int;
1582}
1583extern "C" {
1584    pub static mut _sys_errlist: [*const ::std::os::raw::c_char; 0usize];
1585}
1586extern "C" {
1587    pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
1588}
1589extern "C" {
1590    pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
1591}
1592extern "C" {
1593    pub fn popen(
1594        __command: *const ::std::os::raw::c_char,
1595        __modes: *const ::std::os::raw::c_char,
1596    ) -> *mut FILE;
1597}
1598extern "C" {
1599    pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
1600}
1601extern "C" {
1602    pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1603}
1604extern "C" {
1605    pub fn cuserid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1606}
1607#[repr(C)]
1608#[derive(Debug, Copy, Clone)]
1609pub struct obstack {
1610    _unused: [u8; 0],
1611}
1612extern "C" {
1613    pub fn obstack_printf(
1614        __obstack: *mut obstack,
1615        __format: *const ::std::os::raw::c_char,
1616        ...
1617    ) -> ::std::os::raw::c_int;
1618}
1619extern "C" {
1620    pub fn obstack_vprintf(
1621        __obstack: *mut obstack,
1622        __format: *const ::std::os::raw::c_char,
1623        __args: *mut __va_list_tag,
1624    ) -> ::std::os::raw::c_int;
1625}
1626extern "C" {
1627    pub fn flockfile(__stream: *mut FILE);
1628}
1629extern "C" {
1630    pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
1631}
1632extern "C" {
1633    pub fn funlockfile(__stream: *mut FILE);
1634}
1635extern "C" {
1636    pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
1637}
1638extern "C" {
1639    pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1640}
1641#[repr(C)]
1642#[derive(Debug, Copy, Clone)]
1643pub struct luaL_Reg {
1644    pub name: *const ::std::os::raw::c_char,
1645    pub func: lua_CFunction,
1646}
1647extern "C" {
1648    pub fn luaL_checkversion_(L: *mut lua_State, ver: lua_Number, sz: usize);
1649}
1650extern "C" {
1651    pub fn luaL_getmetafield(
1652        L: *mut lua_State,
1653        obj: ::std::os::raw::c_int,
1654        e: *const ::std::os::raw::c_char,
1655    ) -> ::std::os::raw::c_int;
1656}
1657extern "C" {
1658    pub fn luaL_callmeta(
1659        L: *mut lua_State,
1660        obj: ::std::os::raw::c_int,
1661        e: *const ::std::os::raw::c_char,
1662    ) -> ::std::os::raw::c_int;
1663}
1664extern "C" {
1665    pub fn luaL_tolstring(
1666        L: *mut lua_State,
1667        idx: ::std::os::raw::c_int,
1668        len: *mut usize,
1669    ) -> *const ::std::os::raw::c_char;
1670}
1671extern "C" {
1672    pub fn luaL_argerror(
1673        L: *mut lua_State,
1674        arg: ::std::os::raw::c_int,
1675        extramsg: *const ::std::os::raw::c_char,
1676    ) -> ::std::os::raw::c_int;
1677}
1678extern "C" {
1679    pub fn luaL_typeerror(
1680        L: *mut lua_State,
1681        arg: ::std::os::raw::c_int,
1682        tname: *const ::std::os::raw::c_char,
1683    ) -> ::std::os::raw::c_int;
1684}
1685extern "C" {
1686    pub fn luaL_checklstring(
1687        L: *mut lua_State,
1688        arg: ::std::os::raw::c_int,
1689        l: *mut usize,
1690    ) -> *const ::std::os::raw::c_char;
1691}
1692extern "C" {
1693    pub fn luaL_optlstring(
1694        L: *mut lua_State,
1695        arg: ::std::os::raw::c_int,
1696        def: *const ::std::os::raw::c_char,
1697        l: *mut usize,
1698    ) -> *const ::std::os::raw::c_char;
1699}
1700extern "C" {
1701    pub fn luaL_checknumber(L: *mut lua_State, arg: ::std::os::raw::c_int) -> lua_Number;
1702}
1703extern "C" {
1704    pub fn luaL_optnumber(
1705        L: *mut lua_State,
1706        arg: ::std::os::raw::c_int,
1707        def: lua_Number,
1708    ) -> lua_Number;
1709}
1710extern "C" {
1711    pub fn luaL_checkinteger(L: *mut lua_State, arg: ::std::os::raw::c_int) -> lua_Integer;
1712}
1713extern "C" {
1714    pub fn luaL_optinteger(
1715        L: *mut lua_State,
1716        arg: ::std::os::raw::c_int,
1717        def: lua_Integer,
1718    ) -> lua_Integer;
1719}
1720extern "C" {
1721    pub fn luaL_checkstack(
1722        L: *mut lua_State,
1723        sz: ::std::os::raw::c_int,
1724        msg: *const ::std::os::raw::c_char,
1725    );
1726}
1727extern "C" {
1728    pub fn luaL_checktype(L: *mut lua_State, arg: ::std::os::raw::c_int, t: ::std::os::raw::c_int);
1729}
1730extern "C" {
1731    pub fn luaL_checkany(L: *mut lua_State, arg: ::std::os::raw::c_int);
1732}
1733extern "C" {
1734    pub fn luaL_newmetatable(
1735        L: *mut lua_State,
1736        tname: *const ::std::os::raw::c_char,
1737    ) -> ::std::os::raw::c_int;
1738}
1739extern "C" {
1740    pub fn luaL_setmetatable(L: *mut lua_State, tname: *const ::std::os::raw::c_char);
1741}
1742extern "C" {
1743    pub fn luaL_testudata(
1744        L: *mut lua_State,
1745        ud: ::std::os::raw::c_int,
1746        tname: *const ::std::os::raw::c_char,
1747    ) -> *mut ::std::os::raw::c_void;
1748}
1749extern "C" {
1750    pub fn luaL_checkudata(
1751        L: *mut lua_State,
1752        ud: ::std::os::raw::c_int,
1753        tname: *const ::std::os::raw::c_char,
1754    ) -> *mut ::std::os::raw::c_void;
1755}
1756extern "C" {
1757    pub fn luaL_where(L: *mut lua_State, lvl: ::std::os::raw::c_int);
1758}
1759extern "C" {
1760    pub fn luaL_error(
1761        L: *mut lua_State,
1762        fmt: *const ::std::os::raw::c_char,
1763        ...
1764    ) -> ::std::os::raw::c_int;
1765}
1766extern "C" {
1767    pub fn luaL_checkoption(
1768        L: *mut lua_State,
1769        arg: ::std::os::raw::c_int,
1770        def: *const ::std::os::raw::c_char,
1771        lst: *const *const ::std::os::raw::c_char,
1772    ) -> ::std::os::raw::c_int;
1773}
1774extern "C" {
1775    pub fn luaL_fileresult(
1776        L: *mut lua_State,
1777        stat: ::std::os::raw::c_int,
1778        fname: *const ::std::os::raw::c_char,
1779    ) -> ::std::os::raw::c_int;
1780}
1781extern "C" {
1782    pub fn luaL_execresult(L: *mut lua_State, stat: ::std::os::raw::c_int)
1783        -> ::std::os::raw::c_int;
1784}
1785extern "C" {
1786    pub fn luaL_ref(L: *mut lua_State, t: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1787}
1788extern "C" {
1789    pub fn luaL_unref(L: *mut lua_State, t: ::std::os::raw::c_int, ref_: ::std::os::raw::c_int);
1790}
1791extern "C" {
1792    pub fn luaL_loadfilex(
1793        L: *mut lua_State,
1794        filename: *const ::std::os::raw::c_char,
1795        mode: *const ::std::os::raw::c_char,
1796    ) -> ::std::os::raw::c_int;
1797}
1798extern "C" {
1799    pub fn luaL_loadbufferx(
1800        L: *mut lua_State,
1801        buff: *const ::std::os::raw::c_char,
1802        sz: usize,
1803        name: *const ::std::os::raw::c_char,
1804        mode: *const ::std::os::raw::c_char,
1805    ) -> ::std::os::raw::c_int;
1806}
1807extern "C" {
1808    pub fn luaL_loadstring(
1809        L: *mut lua_State,
1810        s: *const ::std::os::raw::c_char,
1811    ) -> ::std::os::raw::c_int;
1812}
1813extern "C" {
1814    pub fn luaL_newstate() -> *mut lua_State;
1815}
1816extern "C" {
1817    pub fn luaL_len(L: *mut lua_State, idx: ::std::os::raw::c_int) -> lua_Integer;
1818}
1819extern "C" {
1820    pub fn luaL_addgsub(
1821        b: *mut luaL_Buffer,
1822        s: *const ::std::os::raw::c_char,
1823        p: *const ::std::os::raw::c_char,
1824        r: *const ::std::os::raw::c_char,
1825    );
1826}
1827extern "C" {
1828    pub fn luaL_gsub(
1829        L: *mut lua_State,
1830        s: *const ::std::os::raw::c_char,
1831        p: *const ::std::os::raw::c_char,
1832        r: *const ::std::os::raw::c_char,
1833    ) -> *const ::std::os::raw::c_char;
1834}
1835extern "C" {
1836    pub fn luaL_setfuncs(L: *mut lua_State, l: *const luaL_Reg, nup: ::std::os::raw::c_int);
1837}
1838extern "C" {
1839    pub fn luaL_getsubtable(
1840        L: *mut lua_State,
1841        idx: ::std::os::raw::c_int,
1842        fname: *const ::std::os::raw::c_char,
1843    ) -> ::std::os::raw::c_int;
1844}
1845extern "C" {
1846    pub fn luaL_traceback(
1847        L: *mut lua_State,
1848        L1: *mut lua_State,
1849        msg: *const ::std::os::raw::c_char,
1850        level: ::std::os::raw::c_int,
1851    );
1852}
1853extern "C" {
1854    pub fn luaL_requiref(
1855        L: *mut lua_State,
1856        modname: *const ::std::os::raw::c_char,
1857        openf: lua_CFunction,
1858        glb: ::std::os::raw::c_int,
1859    );
1860}
1861#[repr(C)]
1862#[derive(Copy, Clone)]
1863pub struct luaL_Buffer {
1864    pub b: *mut ::std::os::raw::c_char,
1865    pub size: usize,
1866    pub n: usize,
1867    pub L: *mut lua_State,
1868    pub init: luaL_Buffer__bindgen_ty_1,
1869}
1870#[repr(C)]
1871#[derive(Copy, Clone)]
1872pub union luaL_Buffer__bindgen_ty_1 {
1873    pub n: lua_Number,
1874    pub u: f64,
1875    pub s: *mut ::std::os::raw::c_void,
1876    pub i: lua_Integer,
1877    pub l: ::std::os::raw::c_long,
1878    pub b: [::std::os::raw::c_char; 1024usize],
1879}
1880extern "C" {
1881    pub fn luaL_buffinit(L: *mut lua_State, B: *mut luaL_Buffer);
1882}
1883extern "C" {
1884    pub fn luaL_prepbuffsize(B: *mut luaL_Buffer, sz: usize) -> *mut ::std::os::raw::c_char;
1885}
1886extern "C" {
1887    pub fn luaL_addlstring(B: *mut luaL_Buffer, s: *const ::std::os::raw::c_char, l: usize);
1888}
1889extern "C" {
1890    pub fn luaL_addstring(B: *mut luaL_Buffer, s: *const ::std::os::raw::c_char);
1891}
1892extern "C" {
1893    pub fn luaL_addvalue(B: *mut luaL_Buffer);
1894}
1895extern "C" {
1896    pub fn luaL_pushresult(B: *mut luaL_Buffer);
1897}
1898extern "C" {
1899    pub fn luaL_pushresultsize(B: *mut luaL_Buffer, sz: usize);
1900}
1901extern "C" {
1902    pub fn luaL_buffinitsize(
1903        L: *mut lua_State,
1904        B: *mut luaL_Buffer,
1905        sz: usize,
1906    ) -> *mut ::std::os::raw::c_char;
1907}
1908#[repr(C)]
1909#[derive(Debug, Copy, Clone)]
1910pub struct luaL_Stream {
1911    pub f: *mut FILE,
1912    pub closef: lua_CFunction,
1913}
1914pub type __builtin_va_list = [__va_list_tag; 1usize];
1915#[repr(C)]
1916#[derive(Debug, Copy, Clone)]
1917pub struct __va_list_tag {
1918    pub gp_offset: ::std::os::raw::c_uint,
1919    pub fp_offset: ::std::os::raw::c_uint,
1920    pub overflow_arg_area: *mut ::std::os::raw::c_void,
1921    pub reg_save_area: *mut ::std::os::raw::c_void,
1922}
1923#[repr(C)]
1924#[derive(Debug, Copy, Clone)]
1925pub struct CallInfo {
1926    pub _address: u8,
1927}