OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
Server IP: 82.112.239.19
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/29/2025 10:07:18 PM
rwxr-xr-x
📄
FlexLexer.h
6.73 KB
01/30/2022 08:23:38 AM
rw-r--r--
📄
GeoIP.h
17.42 KB
01/17/2018 07:23:18 PM
rw-r--r--
📄
GeoIPCity.h
2.24 KB
01/17/2018 07:23:18 PM
rw-r--r--
📄
a.out.h
4.25 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
aio.h
7.56 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
aliases.h
1.98 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
alloca.h
1.17 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
ar.h
1.69 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
argp.h
24.95 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
argz.h
5.91 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
arpa
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
asm
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📁
asm-generic
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
assert.h
4.46 KB
03/10/2025 10:34:44 AM
rw-r--r--
📁
bits
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
bsock
-
08/27/2024 05:43:51 PM
rwxr-xr-x
📄
byteswap.h
1.42 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
complex.h
7.95 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
cpio.h
2.21 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
cpuidle.h
931 bytes
06/11/2025 12:06:00 PM
rw-r--r--
📁
criu
-
08/27/2024 05:56:55 PM
rwxr-xr-x
📄
crypt.h
10.9 KB
02/10/2022 04:05:00 AM
rw-r--r--
📄
ctype.h
10.71 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
dirent.h
12.22 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
dlfcn.h
7.52 KB
03/10/2025 10:34:46 AM
rw-r--r--
📁
drm
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
elf.h
178.14 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
endian.h
2.25 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
envz.h
2.8 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
err.h
2.29 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
errno.h
1.64 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
error.h
2.36 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
execinfo.h
1.49 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
fcntl.h
11.17 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
features-time64.h
1.37 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
features.h
17.69 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
fenv.h
5.65 KB
03/10/2025 10:34:45 AM
rw-r--r--
📁
finclude
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
fmtmsg.h
3.16 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
fnmatch.h
2.24 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
fpu_control.h
3.5 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
fstab.h
3.04 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
fts.h
9.35 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
ftw.h
6.19 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
gconv.h
4.11 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
gelf.h
11.14 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
getopt.h
1.43 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
glob.h
7.13 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
gnu
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
gnu-versions.h
2.29 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
gnumake.h
2.84 KB
01/03/2020 07:11:27 AM
rw-r--r--
📄
grp.h
6.53 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
gshadow.h
4.42 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
iconv.h
1.81 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
ieee754.h
4.8 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
ifaddrs.h
2.77 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
inttypes.h
8.14 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
langinfo.h
17.43 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
lastlog.h
126 bytes
03/10/2025 10:35:12 AM
rw-r--r--
📄
lauxlib.h
9.1 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
libelf.h
19.84 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
libgen.h
1.35 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
libintl.h
4.47 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
liblsapi-sha1.h
569 bytes
02/21/2025 10:42:38 AM
rw-r--r--
📁
libxml2
-
03/12/2025 06:46:00 PM
rwxr-xr-x
📄
limits.h
5.57 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
link.h
7.05 KB
03/10/2025 10:35:12 AM
rw-r--r--
📁
linux
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
locale.h
7.5 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
lsapidef.h
4.6 KB
02/21/2025 10:42:38 AM
rw-r--r--
📄
lscapi.h
24.21 KB
02/21/2025 10:42:38 AM
rw-r--r--
📄
lscapi_config.h
599 bytes
02/21/2025 10:42:38 AM
rw-r--r--
📄
lua.h
15.45 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
lua.hpp
191 bytes
09/26/2023 06:28:33 PM
rw-r--r--
📄
luaconf-x86_64.h
21.01 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
luaconf.h
1.62 KB
09/26/2023 05:46:00 PM
rw-r--r--
📄
lualib.h
1.09 KB
09/26/2023 06:28:33 PM
rw-r--r--
📁
lzma
-
08/27/2024 05:53:19 PM
rwxr-xr-x
📄
lzma.h
9.63 KB
03/17/2020 02:28:50 PM
rw-r--r--
📄
malloc.h
5.77 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
math.h
47.63 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
mcheck.h
2.38 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
memory.h
956 bytes
03/10/2025 10:34:47 AM
rw-r--r--
📁
misc
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
mntent.h
3.28 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
monetary.h
1.92 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
mqueue.h
4.5 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
mtd
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📁
mysql
-
08/27/2024 05:35:53 PM
rwxr-xr-x
📁
net
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netash
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netatalk
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netax25
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
netdb.h
27.79 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
neteconet
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netinet
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netipx
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netiucv
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netpacket
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netrom
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netrose
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
nfs
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
nl_types.h
1.71 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
nlist.h
1.56 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
nss.h
14.07 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
obstack.h
20.81 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
openssl
-
04/07/2025 07:53:04 PM
rwxr-xr-x
📄
paths.h
2.91 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
pcp
-
01/29/2025 10:11:54 PM
rwxr-xr-x
📄
poll.h
22 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
powercap.h
1.62 KB
06/11/2025 12:06:00 PM
rw-r--r--
📄
printf.h
6.71 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
proc_service.h
3.4 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
protocols
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
pthread.h
47.24 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
pty.h
1.53 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
pwd.h
6.17 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
python3.9
-
04/17/2025 10:53:24 AM
rwxr-xr-x
📁
rdma
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
re_comp.h
963 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
regex.h
25.3 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
regexp.h
1.41 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
resolv.h
12.02 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
rpc
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
sched.h
4.92 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
scsi
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
search.h
5.32 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
semaphore.h
3.38 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
setjmp.h
3.12 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
sgtty.h
1.31 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
shadow.h
5.34 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
signal.h
12.73 KB
03/10/2025 10:34:46 AM
rw-r--r--
📁
sound
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
spawn.h
7.84 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
stab.h
264 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
stdc-predef.h
2.24 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
stdint.h
8.28 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdio.h
30.67 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdio_ext.h
2.73 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdlib.h
35.46 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
string.h
18.33 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
strings.h
4.64 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
sys
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
syscall.h
25 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
sysexits.h
5.11 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
syslog.h
24 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
tar.h
3.7 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
termio.h
214 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
termios.h
3.51 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
tgmath.h
39.24 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
thread_db.h
15.65 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
threads.h
7.51 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
time.h
14.49 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
ttyent.h
2.44 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
uchar.h
1.96 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
ucontext.h
1.99 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
ulimit.h
1.55 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
unistd.h
43.45 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
utime.h
1.86 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
utmp.h
3.15 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
utmpx.h
4 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
values.h
1.91 KB
03/10/2025 10:34:42 AM
rw-r--r--
📁
video
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
wait.h
22 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
wchar.h
31.39 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
wctype.h
5.42 KB
03/10/2025 10:34:49 AM
rw-r--r--
📄
wordexp.h
2.44 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
xen
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
zconf.h
15.88 KB
09/26/2023 09:22:15 AM
rw-r--r--
📄
zdict.h
25.03 KB
12/20/2021 10:49:18 PM
rw-r--r--
📄
zlib.h
94 KB
09/26/2023 09:22:15 AM
rw-r--r--
📄
zstd.h
145.16 KB
12/20/2021 10:49:18 PM
rw-r--r--
📄
zstd_errors.h
3.73 KB
12/20/2021 10:49:18 PM
rw-r--r--
Editing: lua.h
Close
/* ** $Id: lua.h $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file */ #ifndef lua_h #define lua_h #include <stdarg.h> #include <stddef.h> #include "luaconf.h" #define LUA_VERSION_MAJOR "5" #define LUA_VERSION_MINOR "4" #define LUA_VERSION_RELEASE "4" #define LUA_VERSION_NUM 504 #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 4) #define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR #define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2022 Lua.org, PUC-Rio" #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" /* mark for precompiled code ('<esc>Lua') */ #define LUA_SIGNATURE "\x1bLua" /* option for multiple returns in 'lua_pcall' and 'lua_call' */ #define LUA_MULTRET (-1) /* ** Pseudo-indices ** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty ** space after that to help overflow detection) */ #define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) /* thread status */ #define LUA_OK 0 #define LUA_YIELD 1 #define LUA_ERRRUN 2 #define LUA_ERRSYNTAX 3 #define LUA_ERRMEM 4 #define LUA_ERRERR 5 typedef struct lua_State lua_State; /* ** basic types */ #define LUA_TNONE (-1) #define LUA_TNIL 0 #define LUA_TBOOLEAN 1 #define LUA_TLIGHTUSERDATA 2 #define LUA_TNUMBER 3 #define LUA_TSTRING 4 #define LUA_TTABLE 5 #define LUA_TFUNCTION 6 #define LUA_TUSERDATA 7 #define LUA_TTHREAD 8 #define LUA_NUMTYPES 9 /* minimum Lua stack available to a C function */ #define LUA_MINSTACK 20 /* predefined values in the registry */ #define LUA_RIDX_MAINTHREAD 1 #define LUA_RIDX_GLOBALS 2 #define LUA_RIDX_LAST LUA_RIDX_GLOBALS /* type of numbers in Lua */ typedef LUA_NUMBER lua_Number; /* type for integer functions */ typedef LUA_INTEGER lua_Integer; /* unsigned integer type */ typedef LUA_UNSIGNED lua_Unsigned; /* type for continuation-function contexts */ typedef LUA_KCONTEXT lua_KContext; /* ** Type for C functions registered with Lua */ typedef int (*lua_CFunction) (lua_State *L); /* ** Type for continuation functions */ typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx); /* ** Type for functions that read/write blocks when loading/dumping Lua chunks */ typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud); /* ** Type for memory-allocation functions */ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); /* ** Type for warning functions */ typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); /* ** generic extra include file */ #if defined(LUA_USER_H) #include LUA_USER_H #endif /* ** RCS ident string */ extern const char lua_ident[]; /* ** state manipulation */ LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); LUA_API void (lua_close) (lua_State *L); LUA_API lua_State *(lua_newthread) (lua_State *L); LUA_API int (lua_resetthread) (lua_State *L); LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); LUA_API lua_Number (lua_version) (lua_State *L); /* ** basic stack manipulation */ LUA_API int (lua_absindex) (lua_State *L, int idx); LUA_API int (lua_gettop) (lua_State *L); LUA_API void (lua_settop) (lua_State *L, int idx); LUA_API void (lua_pushvalue) (lua_State *L, int idx); LUA_API void (lua_rotate) (lua_State *L, int idx, int n); LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); LUA_API int (lua_checkstack) (lua_State *L, int n); LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); /* ** access functions (stack -> C) */ LUA_API int (lua_isnumber) (lua_State *L, int idx); LUA_API int (lua_isstring) (lua_State *L, int idx); LUA_API int (lua_iscfunction) (lua_State *L, int idx); LUA_API int (lua_isinteger) (lua_State *L, int idx); LUA_API int (lua_isuserdata) (lua_State *L, int idx); LUA_API int (lua_type) (lua_State *L, int idx); LUA_API const char *(lua_typename) (lua_State *L, int tp); LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum); LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); LUA_API int (lua_toboolean) (lua_State *L, int idx); LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx); LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); LUA_API void *(lua_touserdata) (lua_State *L, int idx); LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); LUA_API const void *(lua_topointer) (lua_State *L, int idx); /* ** Comparison and arithmetic functions */ #define LUA_OPADD 0 /* ORDER TM, ORDER OP */ #define LUA_OPSUB 1 #define LUA_OPMUL 2 #define LUA_OPMOD 3 #define LUA_OPPOW 4 #define LUA_OPDIV 5 #define LUA_OPIDIV 6 #define LUA_OPBAND 7 #define LUA_OPBOR 8 #define LUA_OPBXOR 9 #define LUA_OPSHL 10 #define LUA_OPSHR 11 #define LUA_OPUNM 12 #define LUA_OPBNOT 13 LUA_API void (lua_arith) (lua_State *L, int op); #define LUA_OPEQ 0 #define LUA_OPLT 1 #define LUA_OPLE 2 LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op); /* ** push functions (C -> stack) */ LUA_API void (lua_pushnil) (lua_State *L); LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, va_list argp); LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); LUA_API void (lua_pushboolean) (lua_State *L, int b); LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); LUA_API int (lua_pushthread) (lua_State *L); /* ** get functions (Lua -> stack) */ LUA_API int (lua_getglobal) (lua_State *L, const char *name); LUA_API int (lua_gettable) (lua_State *L, int idx); LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); LUA_API int (lua_rawget) (lua_State *L, int idx); LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p); LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue); LUA_API int (lua_getmetatable) (lua_State *L, int objindex); LUA_API int (lua_getiuservalue) (lua_State *L, int idx, int n); /* ** set functions (stack -> Lua) */ LUA_API void (lua_setglobal) (lua_State *L, const char *name); LUA_API void (lua_settable) (lua_State *L, int idx); LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); LUA_API void (lua_rawset) (lua_State *L, int idx); LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p); LUA_API int (lua_setmetatable) (lua_State *L, int objindex); LUA_API int (lua_setiuservalue) (lua_State *L, int idx, int n); /* ** 'load' and 'call' functions (load and run Lua code) */ LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, lua_KContext ctx, lua_KFunction k); #define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, lua_KContext ctx, lua_KFunction k); #define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, const char *chunkname, const char *mode); LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip); /* ** coroutine functions */ LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k); LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg, int *nres); LUA_API int (lua_status) (lua_State *L); LUA_API int (lua_isyieldable) (lua_State *L); #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) /* ** Warning-related functions */ LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont); /* ** garbage-collection function and options */ #define LUA_GCSTOP 0 #define LUA_GCRESTART 1 #define LUA_GCCOLLECT 2 #define LUA_GCCOUNT 3 #define LUA_GCCOUNTB 4 #define LUA_GCSTEP 5 #define LUA_GCSETPAUSE 6 #define LUA_GCSETSTEPMUL 7 #define LUA_GCISRUNNING 9 #define LUA_GCGEN 10 #define LUA_GCINC 11 LUA_API int (lua_gc) (lua_State *L, int what, ...); /* ** miscellaneous functions */ LUA_API int (lua_error) (lua_State *L); LUA_API int (lua_next) (lua_State *L, int idx); LUA_API void (lua_concat) (lua_State *L, int n); LUA_API void (lua_len) (lua_State *L, int idx); LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s); LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); LUA_API void (lua_toclose) (lua_State *L, int idx); LUA_API void (lua_closeslot) (lua_State *L, int idx); /* ** {============================================================== ** some useful macros ** =============================================================== */ #define lua_getextraspace(L) ((void *)((char *)(L) - LUA_EXTRASPACE)) #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) #define lua_pop(L,n) lua_settop(L, -(n)-1) #define lua_newtable(L) lua_createtable(L, 0, 0) #define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) #define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) #define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL) #define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN) #define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD) #define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE) #define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) #define lua_pushliteral(L, s) lua_pushstring(L, "" s) #define lua_pushglobaltable(L) \ ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)) #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) #define lua_insert(L,idx) lua_rotate(L, (idx), 1) #define lua_remove(L,idx) (lua_rotate(L, (idx), -1), lua_pop(L, 1)) #define lua_replace(L,idx) (lua_copy(L, -1, (idx)), lua_pop(L, 1)) /* }============================================================== */ /* ** {============================================================== ** compatibility macros ** =============================================================== */ #if defined(LUA_COMPAT_APIINTCASTS) #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is)) #define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL) #endif #define lua_newuserdata(L,s) lua_newuserdatauv(L,s,1) #define lua_getuservalue(L,idx) lua_getiuservalue(L,idx,1) #define lua_setuservalue(L,idx) lua_setiuservalue(L,idx,1) #define LUA_NUMTAGS LUA_NUMTYPES /* }============================================================== */ /* ** {====================================================================== ** Debug API ** ======================================================================= */ /* ** Event codes */ #define LUA_HOOKCALL 0 #define LUA_HOOKRET 1 #define LUA_HOOKLINE 2 #define LUA_HOOKCOUNT 3 #define LUA_HOOKTAILCALL 4 /* ** Event masks */ #define LUA_MASKCALL (1 << LUA_HOOKCALL) #define LUA_MASKRET (1 << LUA_HOOKRET) #define LUA_MASKLINE (1 << LUA_HOOKLINE) #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) typedef struct lua_Debug lua_Debug; /* activation record */ /* Functions to be called by the debugger in specific events */ typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n); LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n); LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n); LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, int fidx2, int n2); LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); LUA_API lua_Hook (lua_gethook) (lua_State *L); LUA_API int (lua_gethookmask) (lua_State *L); LUA_API int (lua_gethookcount) (lua_State *L); LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit); struct lua_Debug { int event; const char *name; /* (n) */ const char *namewhat; /* (n) 'global', 'local', 'field', 'method' */ const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */ const char *source; /* (S) */ size_t srclen; /* (S) */ int currentline; /* (l) */ int linedefined; /* (S) */ int lastlinedefined; /* (S) */ unsigned char nups; /* (u) number of upvalues */ unsigned char nparams;/* (u) number of parameters */ char isvararg; /* (u) */ char istailcall; /* (t) */ unsigned short ftransfer; /* (r) index of first value transferred */ unsigned short ntransfer; /* (r) number of transferred values */ char short_src[LUA_IDSIZE]; /* (S) */ /* private part */ struct CallInfo *i_ci; /* active function */ }; /* }====================================================================== */ /****************************************************************************** * Copyright (C) 1994-2022 Lua.org, PUC-Rio. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ #endif