-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbindings.rs
564 lines (563 loc) · 59.4 KB
/
bindings.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
/* automatically generated by rust-bindgen */
pub const __GNUC_VA_LIST : :: std :: os :: raw :: c_uint = 1 ; pub const WINVER : :: std :: os :: raw :: c_uint = 1281 ; pub const _SAL_VERSION : :: std :: os :: raw :: c_uint = 20 ; pub const __SAL_H_VERSION : :: std :: os :: raw :: c_uint = 180000000 ; pub const _USE_DECLSPECS_FOR_SAL : :: std :: os :: raw :: c_uint = 0 ; pub const _USE_ATTRIBUTES_FOR_SAL : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_PACKING : :: std :: os :: raw :: c_uint = 8 ; pub const _HAS_EXCEPTIONS : :: std :: os :: raw :: c_uint = 1 ; pub const CHAR_BIT : :: std :: os :: raw :: c_uint = 8 ; pub const SCHAR_MIN : :: std :: os :: raw :: c_int = -128 ; pub const SCHAR_MAX : :: std :: os :: raw :: c_uint = 127 ; pub const UCHAR_MAX : :: std :: os :: raw :: c_uint = 255 ; pub const CHAR_MIN : :: std :: os :: raw :: c_int = -128 ; pub const CHAR_MAX : :: std :: os :: raw :: c_uint = 127 ; pub const MB_LEN_MAX : :: std :: os :: raw :: c_uint = 5 ; pub const SHRT_MIN : :: std :: os :: raw :: c_int = -32768 ; pub const SHRT_MAX : :: std :: os :: raw :: c_uint = 32767 ; pub const USHRT_MAX : :: std :: os :: raw :: c_uint = 65535 ; pub const INT_MIN : :: std :: os :: raw :: c_int = -2147483648 ; pub const INT_MAX : :: std :: os :: raw :: c_uint = 2147483647 ; pub const UINT_MAX : :: std :: os :: raw :: c_uint = 4294967295 ; pub const LONG_MIN : :: std :: os :: raw :: c_int = -2147483648 ; pub const LONG_MAX : :: std :: os :: raw :: c_uint = 2147483647 ; pub const ULONG_MAX : :: std :: os :: raw :: c_uint = 4294967295 ; pub const LUA_LDIR : & 'static [ u8 ; 9usize ] = b"!\\\\lua\\\\\0" ; pub const LUA_CDIR : & 'static [ u8 ; 4usize ] = b"!\\\\\0" ; pub const LUA_PATH_DEFAULT : & 'static [ u8 ; 44usize ] = b".\\\\?.lua;!\\\\lua\\\\?.lua;!\\\\lua\\\\?\\\\init.lua;\0" ; pub const LUA_CPATH_DEFAULT : & 'static [ u8 ; 33usize ] = b".\\\\?.dll;!\\\\?.dll;!\\\\loadall.dll\0" ; pub const LUA_PATH : & 'static [ u8 ; 9usize ] = b"LUA_PATH\0" ; pub const LUA_CPATH : & 'static [ u8 ; 10usize ] = b"LUA_CPATH\0" ; pub const LUA_INIT : & 'static [ u8 ; 9usize ] = b"LUA_INIT\0" ; pub const LUA_DIRSEP : & 'static [ u8 ; 2usize ] = b"\\\0" ; pub const LUA_PATHSEP : & 'static [ u8 ; 2usize ] = b";\0" ; pub const LUA_PATH_MARK : & 'static [ u8 ; 2usize ] = b"?\0" ; pub const LUA_EXECDIR : & 'static [ u8 ; 2usize ] = b"!\0" ; pub const LUA_IGMARK : & 'static [ u8 ; 2usize ] = b"-\0" ; pub const LUA_PATH_CONFIG : & 'static [ u8 ; 10usize ] = b"\\\n;\n?\n!\n-\0" ; pub const LUAI_MAXSTACK : :: std :: os :: raw :: c_uint = 65500 ; pub const LUAI_MAXCSTACK : :: std :: os :: raw :: c_uint = 8000 ; pub const LUAI_GCPAUSE : :: std :: os :: raw :: c_uint = 200 ; pub const LUAI_GCMUL : :: std :: os :: raw :: c_uint = 200 ; pub const LUA_MAXCAPTURES : :: std :: os :: raw :: c_uint = 32 ; pub const LUA_IDSIZE : :: std :: os :: raw :: c_uint = 60 ; pub const LUA_NUMBER_SCAN : & 'static [ u8 ; 4usize ] = b"%lf\0" ; pub const LUA_NUMBER_FMT : & 'static [ u8 ; 6usize ] = b"%.14g\0" ; pub const LUAI_MAXNUMBER2STR : :: std :: os :: raw :: c_uint = 32 ; pub const LUA_INTFRMLEN : & 'static [ u8 ; 2usize ] = b"l\0" ; pub const LUA_VERSION : & 'static [ u8 ; 8usize ] = b"Lua 5.1\0" ; pub const LUA_RELEASE : & 'static [ u8 ; 10usize ] = b"Lua 5.1.4\0" ; pub const LUA_VERSION_NUM : :: std :: os :: raw :: c_uint = 501 ; pub const LUA_COPYRIGHT : & 'static [ u8 ; 41usize ] = b"Copyright (C) 1994-2008 Lua.org, PUC-Rio\0" ; pub const LUA_AUTHORS : & 'static [ u8 ; 49usize ] = b"R. Ierusalimschy, L. H. de Figueiredo & W. Celes\0" ; pub const LUA_SIGNATURE : & 'static [ u8 ; 5usize ] = b"\x1BLua\0" ; pub const LUA_MULTRET : :: std :: os :: raw :: c_int = -1 ; pub const LUA_REGISTRYINDEX : :: std :: os :: raw :: c_int = -10000 ; pub const LUA_ENVIRONINDEX : :: std :: os :: raw :: c_int = -10001 ; pub const LUA_GLOBALSINDEX : :: std :: os :: raw :: c_int = -10002 ; pub const LUA_YIELD : :: std :: os :: raw :: c_uint = 1 ; pub const LUA_ERRRUN : :: std :: os :: raw :: c_uint = 2 ; pub const LUA_ERRSYNTAX : :: std :: os :: raw :: c_uint = 3 ; pub const LUA_ERRMEM : :: std :: os :: raw :: c_uint = 4 ; pub const LUA_ERRERR : :: std :: os :: raw :: c_uint = 5 ; pub const LUA_TNONE : :: std :: os :: raw :: c_int = -1 ; pub const LUA_TNIL : :: std :: os :: raw :: c_uint = 0 ; pub const LUA_TBOOLEAN : :: std :: os :: raw :: c_uint = 1 ; pub const LUA_TLIGHTUSERDATA : :: std :: os :: raw :: c_uint = 2 ; pub const LUA_TNUMBER : :: std :: os :: raw :: c_uint = 3 ; pub const LUA_TSTRING : :: std :: os :: raw :: c_uint = 4 ; pub const LUA_TTABLE : :: std :: os :: raw :: c_uint = 5 ; pub const LUA_TFUNCTION : :: std :: os :: raw :: c_uint = 6 ; pub const LUA_TUSERDATA : :: std :: os :: raw :: c_uint = 7 ; pub const LUA_TTHREAD : :: std :: os :: raw :: c_uint = 8 ; pub const LUA_MINSTACK : :: std :: os :: raw :: c_uint = 20 ; pub const LUA_GCSTOP : :: std :: os :: raw :: c_uint = 0 ; pub const LUA_GCRESTART : :: std :: os :: raw :: c_uint = 1 ; pub const LUA_GCCOLLECT : :: std :: os :: raw :: c_uint = 2 ; pub const LUA_GCCOUNT : :: std :: os :: raw :: c_uint = 3 ; pub const LUA_GCCOUNTB : :: std :: os :: raw :: c_uint = 4 ; pub const LUA_GCSTEP : :: std :: os :: raw :: c_uint = 5 ; pub const LUA_GCSETPAUSE : :: std :: os :: raw :: c_uint = 6 ; pub const LUA_GCSETSTEPMUL : :: std :: os :: raw :: c_uint = 7 ; pub const LUA_HOOKCALL : :: std :: os :: raw :: c_uint = 0 ; pub const LUA_HOOKRET : :: std :: os :: raw :: c_uint = 1 ; pub const LUA_HOOKLINE : :: std :: os :: raw :: c_uint = 2 ; pub const LUA_HOOKCOUNT : :: std :: os :: raw :: c_uint = 3 ; pub const LUA_HOOKTAILRET : :: std :: os :: raw :: c_uint = 4 ; pub const LUA_MASKCALL : :: std :: os :: raw :: c_uint = 1 ; pub const LUA_MASKRET : :: std :: os :: raw :: c_uint = 2 ; pub const LUA_MASKLINE : :: std :: os :: raw :: c_uint = 4 ; pub const LUA_MASKCOUNT : :: std :: os :: raw :: c_uint = 8 ; pub const _ARGMAX : :: std :: os :: raw :: c_uint = 100 ; pub const _CRT_INT_MAX : :: std :: os :: raw :: c_uint = 2147483647 ; pub const _CRT_FUNCTIONS_REQUIRED : :: std :: os :: raw :: c_uint = 1 ; pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_BUILD_DESKTOP_APP : :: std :: os :: raw :: c_uint = 1 ; pub const __STDC_SECURE_LIB__ : :: std :: os :: raw :: c_uint = 200411 ; pub const __GOT_SECURE_LIB__ : :: std :: os :: raw :: c_uint = 200411 ; pub const __STDC_WANT_SECURE_LIB__ : :: std :: os :: raw :: c_uint = 1 ; pub const _SECURECRT_FILL_BUFFER_PATTERN : :: std :: os :: raw :: c_uint = 254 ; pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES : :: std :: os :: raw :: c_uint = 1 ; pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY : :: std :: os :: raw :: c_uint = 0 ; pub const _CRT_INTERNAL_STDIO_SYMBOL_PREFIX : & 'static [ u8 ; 1usize ] = b"\0" ; pub const _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION : :: std :: os :: raw :: c_uint = 1 ; pub const _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR : :: std :: os :: raw :: c_uint = 2 ; pub const _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS : :: std :: os :: raw :: c_uint = 4 ; pub const _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY : :: std :: os :: raw :: c_uint = 8 ; pub const _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS : :: std :: os :: raw :: c_uint = 16 ; pub const _CRT_INTERNAL_SCANF_SECURECRT : :: std :: os :: raw :: c_uint = 1 ; pub const _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS : :: std :: os :: raw :: c_uint = 2 ; pub const _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY : :: std :: os :: raw :: c_uint = 4 ; pub const BUFSIZ : :: std :: os :: raw :: c_uint = 512 ; pub const _NSTREAM_ : :: std :: os :: raw :: c_uint = 512 ; pub const _IOB_ENTRIES : :: std :: os :: raw :: c_uint = 3 ; pub const EOF : :: std :: os :: raw :: c_int = -1 ; pub const _IOFBF : :: std :: os :: raw :: c_uint = 0 ; pub const _IOLBF : :: std :: os :: raw :: c_uint = 64 ; pub const _IONBF : :: std :: os :: raw :: c_uint = 4 ; pub const L_tmpnam : :: std :: os :: raw :: c_uint = 260 ; pub const L_tmpnam_s : :: std :: os :: raw :: c_uint = 260 ; pub const SEEK_CUR : :: std :: os :: raw :: c_uint = 1 ; pub const SEEK_END : :: std :: os :: raw :: c_uint = 2 ; pub const SEEK_SET : :: std :: os :: raw :: c_uint = 0 ; pub const FILENAME_MAX : :: std :: os :: raw :: c_uint = 260 ; pub const FOPEN_MAX : :: std :: os :: raw :: c_uint = 20 ; pub const _SYS_OPEN : :: std :: os :: raw :: c_uint = 20 ; pub const TMP_MAX : :: std :: os :: raw :: c_uint = 2147483647 ; pub const TMP_MAX_S : :: std :: os :: raw :: c_uint = 2147483647 ; pub const _TMP_MAX_S : :: std :: os :: raw :: c_uint = 2147483647 ; pub const SYS_OPEN : :: std :: os :: raw :: c_uint = 20 ; pub const LUA_ERRFILE : :: std :: os :: raw :: c_uint = 6 ; pub const LUA_NOREF : :: std :: os :: raw :: c_int = -2 ; pub const LUA_REFNIL : :: std :: os :: raw :: c_int = -1 ; pub const LUA_FILEHANDLE : & 'static [ u8 ; 6usize ] = b"FILE*\0" ; pub const LUA_COLIBNAME : & 'static [ u8 ; 10usize ] = b"coroutine\0" ; pub const LUA_MATHLIBNAME : & 'static [ u8 ; 5usize ] = b"math\0" ; pub const LUA_STRLIBNAME : & 'static [ u8 ; 7usize ] = b"string\0" ; pub const LUA_TABLIBNAME : & 'static [ u8 ; 6usize ] = b"table\0" ; pub const LUA_IOLIBNAME : & 'static [ u8 ; 3usize ] = b"io\0" ; pub const LUA_OSLIBNAME : & 'static [ u8 ; 3usize ] = b"os\0" ; pub const LUA_LOADLIBNAME : & 'static [ u8 ; 8usize ] = b"package\0" ; pub const LUA_DBLIBNAME : & 'static [ u8 ; 6usize ] = b"debug\0" ; pub const LUA_BITLIBNAME : & 'static [ u8 ; 4usize ] = b"bit\0" ; pub const LUA_JITLIBNAME : & 'static [ u8 ; 4usize ] = b"jit\0" ; pub const LUA_FFILIBNAME : & 'static [ u8 ; 4usize ] = b"ffi\0" ; pub const LUAJIT_VERSION : & 'static [ u8 ; 13usize ] = b"LuaJIT 2.0.5\0" ; pub const LUAJIT_VERSION_NUM : :: std :: os :: raw :: c_uint = 20005 ; pub const LUAJIT_COPYRIGHT : & 'static [ u8 ; 34usize ] = b"Copyright (C) 2005-2017 Mike Pall\0" ; pub const LUAJIT_URL : & 'static [ u8 ; 19usize ] = b"http://luajit.org/\0" ; pub const LUAJIT_MODE_MASK : :: std :: os :: raw :: c_uint = 255 ; pub const LUAJIT_MODE_OFF : :: std :: os :: raw :: c_uint = 0 ; pub const LUAJIT_MODE_ON : :: std :: os :: raw :: c_uint = 256 ; pub const LUAJIT_MODE_FLUSH : :: std :: os :: raw :: c_uint = 512 ; pub type va_list = __builtin_va_list ; pub type __gnuc_va_list = __builtin_va_list ; pub type wchar_t = :: std :: os :: raw :: c_ushort ; pub type max_align_t = f64 ; extern "C" {
pub fn __va_start ( arg1 : * mut va_list , ... ) ;
} pub type __vcrt_bool = bool ; extern "C" {
pub fn __security_init_cookie ( ) ;
} extern "C" {
pub fn __security_check_cookie ( _StackCookie : usize , ) ;
} extern "C" {
pub fn __report_gsfailure ( _StackCookie : usize , ) ;
} extern "C" {
# [ link_name = "\u{1}__security_cookie" ]
pub static mut __security_cookie : usize ;
} # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct lua_State { _unused : [ u8 ; 0 ] } pub type lua_CFunction = :: std :: option :: Option < unsafe extern "C" fn ( L : * mut lua_State ) -> :: std :: os :: raw :: c_int > ; pub type lua_Reader = :: std :: option :: Option < unsafe extern "C" fn ( L : * mut lua_State , ud : * mut :: std :: os :: raw :: c_void , sz : * mut usize ) -> * const :: std :: os :: raw :: c_char > ; pub type lua_Writer = :: std :: option :: Option < unsafe extern "C" fn ( L : * mut lua_State , p : * const :: std :: os :: raw :: c_void , sz : usize , ud : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ; pub type lua_Alloc = :: std :: option :: Option < unsafe extern "C" fn ( ud : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , osize : usize , nsize : usize ) -> * mut :: std :: os :: raw :: c_void > ; pub type lua_Number = f64 ; pub type lua_Integer = isize ; extern "C" {
pub fn lua_newstate ( f : lua_Alloc , ud : * mut :: std :: os :: raw :: c_void , ) -> * mut lua_State ;
} extern "C" {
pub fn lua_close ( L : * mut lua_State , ) ;
} extern "C" {
pub fn lua_newthread ( L : * mut lua_State , ) -> * mut lua_State ;
} extern "C" {
pub fn lua_atpanic ( L : * mut lua_State , panicf : lua_CFunction , ) -> lua_CFunction ;
} extern "C" {
pub fn lua_gettop ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_settop ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_pushvalue ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_remove ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_insert ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_replace ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_checkstack ( L : * mut lua_State , sz : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_xmove ( from : * mut lua_State , to : * mut lua_State , n : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_isnumber ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_isstring ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_iscfunction ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_isuserdata ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_type ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_typename ( L : * mut lua_State , tp : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_equal ( L : * mut lua_State , idx1 : :: std :: os :: raw :: c_int , idx2 : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_rawequal ( L : * mut lua_State , idx1 : :: std :: os :: raw :: c_int , idx2 : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_lessthan ( L : * mut lua_State , idx1 : :: std :: os :: raw :: c_int , idx2 : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_tonumber ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> lua_Number ;
} extern "C" {
pub fn lua_tointeger ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> lua_Integer ;
} extern "C" {
pub fn lua_toboolean ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_tolstring ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , len : * mut usize , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_objlen ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> usize ;
} extern "C" {
pub fn lua_tocfunction ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> lua_CFunction ;
} extern "C" {
pub fn lua_touserdata ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> * mut :: std :: os :: raw :: c_void ;
} extern "C" {
pub fn lua_tothread ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> * mut lua_State ;
} extern "C" {
pub fn lua_topointer ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_void ;
} extern "C" {
pub fn lua_pushnil ( L : * mut lua_State , ) ;
} extern "C" {
pub fn lua_pushnumber ( L : * mut lua_State , n : lua_Number , ) ;
} extern "C" {
pub fn lua_pushinteger ( L : * mut lua_State , n : lua_Integer , ) ;
} extern "C" {
pub fn lua_pushlstring ( L : * mut lua_State , s : * const :: std :: os :: raw :: c_char , l : usize , ) ;
} extern "C" {
pub fn lua_pushstring ( L : * mut lua_State , s : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn lua_pushvfstring ( L : * mut lua_State , fmt : * const :: std :: os :: raw :: c_char , argp : va_list , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_pushfstring ( L : * mut lua_State , fmt : * const :: std :: os :: raw :: c_char , ... ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_pushcclosure ( L : * mut lua_State , fn_ : lua_CFunction , n : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_pushboolean ( L : * mut lua_State , b : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_pushlightuserdata ( L : * mut lua_State , p : * mut :: std :: os :: raw :: c_void , ) ;
} extern "C" {
pub fn lua_pushthread ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_gettable ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_getfield ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , k : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn lua_rawget ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_rawgeti ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_createtable ( L : * mut lua_State , narr : :: std :: os :: raw :: c_int , nrec : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_newuserdata ( L : * mut lua_State , sz : usize , ) -> * mut :: std :: os :: raw :: c_void ;
} extern "C" {
pub fn lua_getmetatable ( L : * mut lua_State , objindex : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_getfenv ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_settable ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_setfield ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , k : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn lua_rawset ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_rawseti ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_setmetatable ( L : * mut lua_State , objindex : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_setfenv ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_call ( L : * mut lua_State , nargs : :: std :: os :: raw :: c_int , nresults : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_pcall ( L : * mut lua_State , nargs : :: std :: os :: raw :: c_int , nresults : :: std :: os :: raw :: c_int , errfunc : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_cpcall ( L : * mut lua_State , func : lua_CFunction , ud : * mut :: std :: os :: raw :: c_void , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_load ( L : * mut lua_State , reader : lua_Reader , dt : * mut :: std :: os :: raw :: c_void , chunkname : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_dump ( L : * mut lua_State , writer : lua_Writer , data : * mut :: std :: os :: raw :: c_void , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_yield ( L : * mut lua_State , nresults : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_resume ( L : * mut lua_State , narg : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_status ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_gc ( L : * mut lua_State , what : :: std :: os :: raw :: c_int , data : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_error ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_next ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_concat ( L : * mut lua_State , n : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_getallocf ( L : * mut lua_State , ud : * mut * mut :: std :: os :: raw :: c_void , ) -> lua_Alloc ;
} extern "C" {
pub fn lua_setallocf ( L : * mut lua_State , f : lua_Alloc , ud : * mut :: std :: os :: raw :: c_void , ) ;
} extern "C" {
pub fn lua_setlevel ( from : * mut lua_State , to : * mut lua_State , ) ;
} pub type lua_Hook = :: std :: option :: Option < unsafe extern "C" fn ( L : * mut lua_State , ar : * mut lua_Debug ) > ; extern "C" {
pub fn lua_getstack ( L : * mut lua_State , level : :: std :: os :: raw :: c_int , ar : * mut lua_Debug , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_getinfo ( L : * mut lua_State , what : * const :: std :: os :: raw :: c_char , ar : * mut lua_Debug , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_getlocal ( L : * mut lua_State , ar : * const lua_Debug , n : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_setlocal ( L : * mut lua_State , ar : * const lua_Debug , n : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_getupvalue ( L : * mut lua_State , funcindex : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_setupvalue ( L : * mut lua_State , funcindex : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn lua_sethook ( L : * mut lua_State , func : lua_Hook , mask : :: std :: os :: raw :: c_int , count : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_gethook ( L : * mut lua_State , ) -> lua_Hook ;
} extern "C" {
pub fn lua_gethookmask ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_gethookcount ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn lua_upvalueid ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , ) -> * mut :: std :: os :: raw :: c_void ;
} extern "C" {
pub fn lua_upvaluejoin ( L : * mut lua_State , idx1 : :: std :: os :: raw :: c_int , n1 : :: std :: os :: raw :: c_int , idx2 : :: std :: os :: raw :: c_int , n2 : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn lua_loadx ( L : * mut lua_State , reader : lua_Reader , dt : * mut :: std :: os :: raw :: c_void , chunkname : * const :: std :: os :: raw :: c_char , mode : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} # [ repr ( C ) ] # [ derive ( Copy ) ] pub struct lua_Debug { pub event : :: std :: os :: raw :: c_int , pub name : * const :: std :: os :: raw :: c_char , pub namewhat : * const :: std :: os :: raw :: c_char , pub what : * const :: std :: os :: raw :: c_char , pub source : * const :: std :: os :: raw :: c_char , pub currentline : :: std :: os :: raw :: c_int , pub nups : :: std :: os :: raw :: c_int , pub linedefined : :: std :: os :: raw :: c_int , pub lastlinedefined : :: std :: os :: raw :: c_int , pub short_src : [ :: std :: os :: raw :: c_char ; 60usize ] , pub i_ci : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_lua_Debug ( ) { assert_eq ! ( :: std :: mem :: size_of :: < lua_Debug > ( ) , 120usize , concat ! ( "Size of: " , stringify ! ( lua_Debug ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < lua_Debug > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( lua_Debug ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . event as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( event ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . name as * const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . namewhat as * const _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( namewhat ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . what as * const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( what ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . source as * const _ as usize } , 32usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( source ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . currentline as * const _ as usize } , 40usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( currentline ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . nups as * const _ as usize } , 44usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( nups ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . linedefined as * const _ as usize } , 48usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( linedefined ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . lastlinedefined as * const _ as usize } , 52usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( lastlinedefined ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . short_src as * const _ as usize } , 56usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( short_src ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const lua_Debug ) ) . i_ci as * const _ as usize } , 116usize , concat ! ( "Alignment of field: " , stringify ! ( lua_Debug ) , "::" , stringify ! ( i_ci ) ) ) ; } impl Clone for lua_Debug { fn clone ( & self ) -> Self { * self } } pub type __crt_bool = bool ; extern "C" {
pub fn _invalid_parameter_noinfo ( ) ;
} extern "C" {
pub fn _invalid_parameter_noinfo_noreturn ( ) ;
} extern "C" {
pub fn _invoke_watson ( _Expression : * const wchar_t , _FunctionName : * const wchar_t , _FileName : * const wchar_t , _LineNo : :: std :: os :: raw :: c_uint , _Reserved : usize , ) ;
} pub type errno_t = :: std :: os :: raw :: c_int ; pub type wint_t = :: std :: os :: raw :: c_ushort ; pub type wctype_t = :: std :: os :: raw :: c_ushort ; pub type __time32_t = :: std :: os :: raw :: c_long ; pub type __time64_t = :: std :: os :: raw :: c_longlong ; # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct __crt_locale_data_public { pub _locale_pctype : * const :: std :: os :: raw :: c_ushort , pub _locale_mb_cur_max : :: std :: os :: raw :: c_int , pub _locale_lc_codepage : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___crt_locale_data_public ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __crt_locale_data_public > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __crt_locale_data_public ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __crt_locale_data_public > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __crt_locale_data_public ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const __crt_locale_data_public ) ) . _locale_pctype as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( __crt_locale_data_public ) , "::" , stringify ! ( _locale_pctype ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const __crt_locale_data_public ) ) . _locale_mb_cur_max as * const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( __crt_locale_data_public ) , "::" , stringify ! ( _locale_mb_cur_max ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const __crt_locale_data_public ) ) . _locale_lc_codepage as * const _ as usize } , 12usize , concat ! ( "Alignment of field: " , stringify ! ( __crt_locale_data_public ) , "::" , stringify ! ( _locale_lc_codepage ) ) ) ; } impl Clone for __crt_locale_data_public { fn clone ( & self ) -> Self { * self } } # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct __crt_locale_pointers { pub locinfo : * mut __crt_locale_data , pub mbcinfo : * mut __crt_multibyte_data , } # [ test ] fn bindgen_test_layout___crt_locale_pointers ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __crt_locale_pointers > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __crt_locale_pointers ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __crt_locale_pointers > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __crt_locale_pointers ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const __crt_locale_pointers ) ) . locinfo as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( __crt_locale_pointers ) , "::" , stringify ! ( locinfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const __crt_locale_pointers ) ) . mbcinfo as * const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( __crt_locale_pointers ) , "::" , stringify ! ( mbcinfo ) ) ) ; } impl Clone for __crt_locale_pointers { fn clone ( & self ) -> Self { * self } } pub type _locale_t = * mut __crt_locale_pointers ; # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct _Mbstatet { pub _Wchar : :: std :: os :: raw :: c_ulong , pub _Byte : :: std :: os :: raw :: c_ushort , pub _State : :: std :: os :: raw :: c_ushort , } # [ test ] fn bindgen_test_layout__Mbstatet ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _Mbstatet > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( _Mbstatet ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _Mbstatet > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( _Mbstatet ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const _Mbstatet ) ) . _Wchar as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( _Mbstatet ) , "::" , stringify ! ( _Wchar ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const _Mbstatet ) ) . _Byte as * const _ as usize } , 4usize , concat ! ( "Alignment of field: " , stringify ! ( _Mbstatet ) , "::" , stringify ! ( _Byte ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const _Mbstatet ) ) . _State as * const _ as usize } , 6usize , concat ! ( "Alignment of field: " , stringify ! ( _Mbstatet ) , "::" , stringify ! ( _State ) ) ) ; } impl Clone for _Mbstatet { fn clone ( & self ) -> Self { * self } } pub type mbstate_t = _Mbstatet ; pub type time_t = __time64_t ; pub type rsize_t = usize ; # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct _iobuf { pub _Placeholder : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout__iobuf ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _iobuf > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( _iobuf ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _iobuf > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _iobuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const _iobuf ) ) . _Placeholder as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( _iobuf ) , "::" , stringify ! ( _Placeholder ) ) ) ; } impl Clone for _iobuf { fn clone ( & self ) -> Self { * self } } pub type FILE = _iobuf ; extern "C" {
pub fn __acrt_iob_func ( _Ix : :: std :: os :: raw :: c_uint , ) -> * mut FILE ;
} extern "C" {
pub fn fgetwc ( _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _fgetwchar ( ) -> wint_t ;
} extern "C" {
pub fn fputwc ( _Character : wchar_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _fputwchar ( _Character : wchar_t , ) -> wint_t ;
} extern "C" {
pub fn getwc ( _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn getwchar ( ) -> wint_t ;
} extern "C" {
pub fn fgetws ( _Buffer : * mut wchar_t , _BufferCount : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> * mut wchar_t ;
} extern "C" {
pub fn fputws ( _Buffer : * const wchar_t , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _getws_s ( _Buffer : * mut wchar_t , _BufferCount : usize , ) -> * mut wchar_t ;
} extern "C" {
pub fn putwc ( _Character : wchar_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn putwchar ( _Character : wchar_t , ) -> wint_t ;
} extern "C" {
pub fn _putws ( _Buffer : * const wchar_t , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn ungetwc ( _Character : wint_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _wfdopen ( _FileHandle : :: std :: os :: raw :: c_int , _Mode : * const wchar_t , ) -> * mut FILE ;
} extern "C" {
pub fn _wfopen ( _FileName : * const wchar_t , _Mode : * const wchar_t , ) -> * mut FILE ;
} extern "C" {
pub fn _wfopen_s ( _Stream : * mut * mut FILE , _FileName : * const wchar_t , _Mode : * const wchar_t , ) -> errno_t ;
} extern "C" {
pub fn _wfreopen ( _FileName : * const wchar_t , _Mode : * const wchar_t , _OldStream : * mut FILE , ) -> * mut FILE ;
} extern "C" {
pub fn _wfreopen_s ( _Stream : * mut * mut FILE , _FileName : * const wchar_t , _Mode : * const wchar_t , _OldStream : * mut FILE , ) -> errno_t ;
} extern "C" {
pub fn _wfsopen ( _FileName : * const wchar_t , _Mode : * const wchar_t , _ShFlag : :: std :: os :: raw :: c_int , ) -> * mut FILE ;
} extern "C" {
pub fn _wperror ( _ErrorMessage : * const wchar_t , ) ;
} extern "C" {
pub fn _wpopen ( _Command : * const wchar_t , _Mode : * const wchar_t , ) -> * mut FILE ;
} extern "C" {
pub fn _wremove ( _FileName : * const wchar_t , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _wtempnam ( _Directory : * const wchar_t , _FilePrefix : * const wchar_t , ) -> * mut wchar_t ;
} extern "C" {
pub fn _wtmpnam_s ( _Buffer : * mut wchar_t , _BufferCount : usize , ) -> errno_t ;
} extern "C" {
pub fn _wtmpnam ( _Buffer : * mut wchar_t , ) -> * mut wchar_t ;
} extern "C" {
pub fn _fgetwc_nolock ( _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _fputwc_nolock ( _Character : wchar_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _getwc_nolock ( _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _putwc_nolock ( _Character : wchar_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn _ungetwc_nolock ( _Character : wint_t , _Stream : * mut FILE , ) -> wint_t ;
} extern "C" {
pub fn __stdio_common_vfwprintf ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfwprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfwprintf_p ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfwscanf ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vswprintf ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut wchar_t , _BufferCount : usize , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vswprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut wchar_t , _BufferCount : usize , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsnwprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut wchar_t , _BufferCount : usize , _MaxCount : usize , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vswprintf_p ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut wchar_t , _BufferCount : usize , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vswscanf ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * const wchar_t , _BufferCount : usize , _Format : * const wchar_t , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} pub type fpos_t = :: std :: os :: raw :: c_longlong ; extern "C" {
pub fn _get_stream_buffer_pointers ( _Stream : * mut FILE , _Base : * mut * mut * mut :: std :: os :: raw :: c_char , _Pointer : * mut * mut * mut :: std :: os :: raw :: c_char , _Count : * mut * mut :: std :: os :: raw :: c_int , ) -> errno_t ;
} extern "C" {
pub fn clearerr_s ( _Stream : * mut FILE , ) -> errno_t ;
} extern "C" {
pub fn fopen_s ( _Stream : * mut * mut FILE , _FileName : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , ) -> errno_t ;
} extern "C" {
pub fn fread_s ( _Buffer : * mut :: std :: os :: raw :: c_void , _BufferSize : usize , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn freopen_s ( _Stream : * mut * mut FILE , _FileName : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , _OldStream : * mut FILE , ) -> errno_t ;
} extern "C" {
pub fn gets_s ( _Buffer : * mut :: std :: os :: raw :: c_char , _Size : rsize_t , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn tmpfile_s ( _Stream : * mut * mut FILE , ) -> errno_t ;
} extern "C" {
pub fn tmpnam_s ( _Buffer : * mut :: std :: os :: raw :: c_char , _Size : rsize_t , ) -> errno_t ;
} extern "C" {
pub fn clearerr ( _Stream : * mut FILE , ) ;
} extern "C" {
pub fn fclose ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fcloseall ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fdopen ( _FileHandle : :: std :: os :: raw :: c_int , _Mode : * const :: std :: os :: raw :: c_char , ) -> * mut FILE ;
} extern "C" {
pub fn feof ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn ferror ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fflush ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fgetc ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fgetchar ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fgetpos ( _Stream : * mut FILE , _Position : * mut fpos_t , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fgets ( _Buffer : * mut :: std :: os :: raw :: c_char , _MaxCount : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn _fileno ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _flushall ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fopen ( _FileName : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , ) -> * mut FILE ;
} extern "C" {
pub fn fputc ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fputchar ( _Character : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fputs ( _Buffer : * const :: std :: os :: raw :: c_char , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fread ( _Buffer : * mut :: std :: os :: raw :: c_void , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn freopen ( _FileName : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , _Stream : * mut FILE , ) -> * mut FILE ;
} extern "C" {
pub fn _fsopen ( _FileName : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , _ShFlag : :: std :: os :: raw :: c_int , ) -> * mut FILE ;
} extern "C" {
pub fn fsetpos ( _Stream : * mut FILE , _Position : * const fpos_t , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fseek ( _Stream : * mut FILE , _Offset : :: std :: os :: raw :: c_long , _Origin : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fseeki64 ( _Stream : * mut FILE , _Offset : :: std :: os :: raw :: c_longlong , _Origin : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn ftell ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_long ;
} extern "C" {
pub fn _ftelli64 ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_longlong ;
} extern "C" {
pub fn fwrite ( _Buffer : * const :: std :: os :: raw :: c_void , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn getc ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn getchar ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _getmaxstdio ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _getw ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn perror ( _ErrorMessage : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn _pclose ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _popen ( _Command : * const :: std :: os :: raw :: c_char , _Mode : * const :: std :: os :: raw :: c_char , ) -> * mut FILE ;
} extern "C" {
pub fn putc ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn putchar ( _Character : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn puts ( _Buffer : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _putw ( _Word : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn remove ( _FileName : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn rename ( _OldFileName : * const :: std :: os :: raw :: c_char , _NewFileName : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _unlink ( _FileName : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn unlink ( _FileName : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn rewind ( _Stream : * mut FILE , ) ;
} extern "C" {
pub fn _rmtmp ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn setbuf ( _Stream : * mut FILE , _Buffer : * mut :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn _setmaxstdio ( _Maximum : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn setvbuf ( _Stream : * mut FILE , _Buffer : * mut :: std :: os :: raw :: c_char , _Mode : :: std :: os :: raw :: c_int , _Size : usize , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _tempnam ( _DirectoryName : * const :: std :: os :: raw :: c_char , _FilePrefix : * const :: std :: os :: raw :: c_char , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn tmpfile ( ) -> * mut FILE ;
} extern "C" {
pub fn tmpnam ( _Buffer : * mut :: std :: os :: raw :: c_char , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn ungetc ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _lock_file ( _Stream : * mut FILE , ) ;
} extern "C" {
pub fn _unlock_file ( _Stream : * mut FILE , ) ;
} extern "C" {
pub fn _fclose_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fflush_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fgetc_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fputc_nolock ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fread_nolock ( _Buffer : * mut :: std :: os :: raw :: c_void , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn _fread_nolock_s ( _Buffer : * mut :: std :: os :: raw :: c_void , _BufferSize : usize , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn _fseek_nolock ( _Stream : * mut FILE , _Offset : :: std :: os :: raw :: c_long , _Origin : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _fseeki64_nolock ( _Stream : * mut FILE , _Offset : :: std :: os :: raw :: c_longlong , _Origin : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _ftell_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_long ;
} extern "C" {
pub fn _ftelli64_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_longlong ;
} extern "C" {
pub fn _fwrite_nolock ( _Buffer : * const :: std :: os :: raw :: c_void , _ElementSize : usize , _ElementCount : usize , _Stream : * mut FILE , ) -> usize ;
} extern "C" {
pub fn _getc_nolock ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _putc_nolock ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _ungetc_nolock ( _Character : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __p__commode ( ) -> * mut :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfprintf ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfprintf_p ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _set_printf_count_output ( _Value : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn _get_printf_count_output ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vfscanf ( _Options : :: std :: os :: raw :: c_ulonglong , _Stream : * mut FILE , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _Arglist : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsprintf ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut :: std :: os :: raw :: c_char , _BufferCount : usize , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut :: std :: os :: raw :: c_char , _BufferCount : usize , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsnprintf_s ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut :: std :: os :: raw :: c_char , _BufferCount : usize , _MaxCount : usize , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsprintf_p ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * mut :: std :: os :: raw :: c_char , _BufferCount : usize , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn __stdio_common_vsscanf ( _Options : :: std :: os :: raw :: c_ulonglong , _Buffer : * const :: std :: os :: raw :: c_char , _BufferCount : usize , _Format : * const :: std :: os :: raw :: c_char , _Locale : _locale_t , _ArgList : va_list , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn tempnam ( _Directory : * const :: std :: os :: raw :: c_char , _FilePrefix : * const :: std :: os :: raw :: c_char , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn fcloseall ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fdopen ( _FileHandle : :: std :: os :: raw :: c_int , _Format : * const :: std :: os :: raw :: c_char , ) -> * mut FILE ;
} extern "C" {
pub fn fgetchar ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fileno ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn flushall ( ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn fputchar ( _Ch : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn getw ( _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn putw ( _Ch : :: std :: os :: raw :: c_int , _Stream : * mut FILE , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn rmtmp ( ) -> :: std :: os :: raw :: c_int ;
} # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct luaL_Reg { pub name : * const :: std :: os :: raw :: c_char , pub func : lua_CFunction , } # [ test ] fn bindgen_test_layout_luaL_Reg ( ) { assert_eq ! ( :: std :: mem :: size_of :: < luaL_Reg > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( luaL_Reg ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < luaL_Reg > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( luaL_Reg ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Reg ) ) . name as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Reg ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Reg ) ) . func as * const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Reg ) , "::" , stringify ! ( func ) ) ) ; } impl Clone for luaL_Reg { fn clone ( & self ) -> Self { * self } } extern "C" {
pub fn luaL_openlib ( L : * mut lua_State , libname : * const :: std :: os :: raw :: c_char , l : * const luaL_Reg , nup : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn luaL_register ( L : * mut lua_State , libname : * const :: std :: os :: raw :: c_char , l : * const luaL_Reg , ) ;
} extern "C" {
pub fn luaL_getmetafield ( L : * mut lua_State , obj : :: std :: os :: raw :: c_int , e : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_callmeta ( L : * mut lua_State , obj : :: std :: os :: raw :: c_int , e : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_typerror ( L : * mut lua_State , narg : :: std :: os :: raw :: c_int , tname : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_argerror ( L : * mut lua_State , numarg : :: std :: os :: raw :: c_int , extramsg : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_checklstring ( L : * mut lua_State , numArg : :: std :: os :: raw :: c_int , l : * mut usize , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn luaL_optlstring ( L : * mut lua_State , numArg : :: std :: os :: raw :: c_int , def : * const :: std :: os :: raw :: c_char , l : * mut usize , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn luaL_checknumber ( L : * mut lua_State , numArg : :: std :: os :: raw :: c_int , ) -> lua_Number ;
} extern "C" {
pub fn luaL_optnumber ( L : * mut lua_State , nArg : :: std :: os :: raw :: c_int , def : lua_Number , ) -> lua_Number ;
} extern "C" {
pub fn luaL_checkinteger ( L : * mut lua_State , numArg : :: std :: os :: raw :: c_int , ) -> lua_Integer ;
} extern "C" {
pub fn luaL_optinteger ( L : * mut lua_State , nArg : :: std :: os :: raw :: c_int , def : lua_Integer , ) -> lua_Integer ;
} extern "C" {
pub fn luaL_checkstack ( L : * mut lua_State , sz : :: std :: os :: raw :: c_int , msg : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn luaL_checktype ( L : * mut lua_State , narg : :: std :: os :: raw :: c_int , t : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn luaL_checkany ( L : * mut lua_State , narg : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn luaL_newmetatable ( L : * mut lua_State , tname : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_checkudata ( L : * mut lua_State , ud : :: std :: os :: raw :: c_int , tname : * const :: std :: os :: raw :: c_char , ) -> * mut :: std :: os :: raw :: c_void ;
} extern "C" {
pub fn luaL_where ( L : * mut lua_State , lvl : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn luaL_error ( L : * mut lua_State , fmt : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_checkoption ( L : * mut lua_State , narg : :: std :: os :: raw :: c_int , def : * const :: std :: os :: raw :: c_char , lst : * const * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_ref ( L : * mut lua_State , t : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_unref ( L : * mut lua_State , t : :: std :: os :: raw :: c_int , ref_ : :: std :: os :: raw :: c_int , ) ;
} extern "C" {
pub fn luaL_loadfile ( L : * mut lua_State , filename : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_loadbuffer ( L : * mut lua_State , buff : * const :: std :: os :: raw :: c_char , sz : usize , name : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_loadstring ( L : * mut lua_State , s : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_newstate ( ) -> * mut lua_State ;
} extern "C" {
pub fn luaL_gsub ( L : * mut lua_State , s : * const :: std :: os :: raw :: c_char , p : * const :: std :: os :: raw :: c_char , r : * const :: std :: os :: raw :: c_char , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn luaL_findtable ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , fname : * const :: std :: os :: raw :: c_char , szhint : :: std :: os :: raw :: c_int , ) -> * const :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn luaL_fileresult ( L : * mut lua_State , stat : :: std :: os :: raw :: c_int , fname : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_execresult ( L : * mut lua_State , stat : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_loadfilex ( L : * mut lua_State , filename : * const :: std :: os :: raw :: c_char , mode : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_loadbufferx ( L : * mut lua_State , buff : * const :: std :: os :: raw :: c_char , sz : usize , name : * const :: std :: os :: raw :: c_char , mode : * const :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_traceback ( L : * mut lua_State , L1 : * mut lua_State , msg : * const :: std :: os :: raw :: c_char , level : :: std :: os :: raw :: c_int , ) ;
} # [ repr ( C ) ] # [ derive ( Copy ) ] pub struct luaL_Buffer { pub p : * mut :: std :: os :: raw :: c_char , pub lvl : :: std :: os :: raw :: c_int , pub L : * mut lua_State , pub buffer : [ :: std :: os :: raw :: c_char ; 512usize ] , } # [ test ] fn bindgen_test_layout_luaL_Buffer ( ) { assert_eq ! ( :: std :: mem :: size_of :: < luaL_Buffer > ( ) , 536usize , concat ! ( "Size of: " , stringify ! ( luaL_Buffer ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < luaL_Buffer > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( luaL_Buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Buffer ) ) . p as * const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Buffer ) , "::" , stringify ! ( p ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Buffer ) ) . lvl as * const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Buffer ) , "::" , stringify ! ( lvl ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Buffer ) ) . L as * const _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Buffer ) , "::" , stringify ! ( L ) ) ) ; assert_eq ! ( unsafe { & ( * ( 0 as * const luaL_Buffer ) ) . buffer as * const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( luaL_Buffer ) , "::" , stringify ! ( buffer ) ) ) ; } impl Clone for luaL_Buffer { fn clone ( & self ) -> Self { * self } } extern "C" {
pub fn luaL_buffinit ( L : * mut lua_State , B : * mut luaL_Buffer , ) ;
} extern "C" {
pub fn luaL_prepbuffer ( B : * mut luaL_Buffer , ) -> * mut :: std :: os :: raw :: c_char ;
} extern "C" {
pub fn luaL_addlstring ( B : * mut luaL_Buffer , s : * const :: std :: os :: raw :: c_char , l : usize , ) ;
} extern "C" {
pub fn luaL_addstring ( B : * mut luaL_Buffer , s : * const :: std :: os :: raw :: c_char , ) ;
} extern "C" {
pub fn luaL_addvalue ( B : * mut luaL_Buffer , ) ;
} extern "C" {
pub fn luaL_pushresult ( B : * mut luaL_Buffer , ) ;
} extern "C" {
pub fn luaopen_base ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_math ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_string ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_table ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_io ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_os ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_package ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_debug ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_bit ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_jit ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaopen_ffi ( L : * mut lua_State , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaL_openlibs ( L : * mut lua_State , ) ;
} pub const LUAJIT_MODE_ENGINE : _bindgen_ty_1 = 0 ; pub const LUAJIT_MODE_DEBUG : _bindgen_ty_1 = 1 ; pub const LUAJIT_MODE_FUNC : _bindgen_ty_1 = 2 ; pub const LUAJIT_MODE_ALLFUNC : _bindgen_ty_1 = 3 ; pub const LUAJIT_MODE_ALLSUBFUNC : _bindgen_ty_1 = 4 ; pub const LUAJIT_MODE_TRACE : _bindgen_ty_1 = 5 ; pub const LUAJIT_MODE_WRAPCFUNC : _bindgen_ty_1 = 16 ; pub const LUAJIT_MODE_MAX : _bindgen_ty_1 = 17 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; extern "C" {
pub fn luaJIT_setmode ( L : * mut lua_State , idx : :: std :: os :: raw :: c_int , mode : :: std :: os :: raw :: c_int , ) -> :: std :: os :: raw :: c_int ;
} extern "C" {
pub fn luaJIT_version_2_0_5 ( ) ;
} pub type __builtin_va_list = * mut :: std :: os :: raw :: c_char ; # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct __crt_locale_data { pub _address : u8 , } impl Clone for __crt_locale_data { fn clone ( & self ) -> Self { * self } } # [ repr ( C ) ] # [ derive ( Debug , Copy ) ] pub struct __crt_multibyte_data { pub _address : u8 , } impl Clone for __crt_multibyte_data { fn clone ( & self ) -> Self { * self } }