OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/24/2023 11:16:37 AM
rwxr-xr-x
📄
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
11/14/2023 10:15:47 PM
rw-r--r--
📄
aio.h
7.28 KB
11/14/2023 10:16:06 PM
rw-r--r--
📄
aliases.h
1.98 KB
11/14/2023 10:16:07 PM
rw-r--r--
📄
alloca.h
1.17 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
ar.h
1.69 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
argp.h
24.82 KB
11/14/2023 10:16:06 PM
rw-r--r--
📄
argz.h
5.91 KB
11/14/2023 10:15:46 PM
rw-r--r--
📁
arpa
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
asm
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
asm-generic
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
assert.h
4.45 KB
11/14/2023 10:15:42 PM
rw-r--r--
📁
bits
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
bsock
-
10/24/2023 02:14:33 PM
rwxr-xr-x
📄
byteswap.h
1.37 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
complex.h
7 KB
11/14/2023 10:15:43 PM
rw-r--r--
📄
cpio.h
2.21 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
cpuidle.h
844 bytes
01/18/2024 04:43:39 PM
rw-r--r--
📁
criu
-
10/24/2023 02:24:42 PM
rwxr-xr-x
📄
crypt.h
8.9 KB
10/09/2021 04:04:04 AM
rw-r--r--
📄
ctype.h
10.71 KB
11/14/2023 10:15:42 PM
rw-r--r--
📄
dirent.h
12.19 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
dlfcn.h
7.07 KB
11/14/2023 10:15:45 PM
rw-r--r--
📁
drm
-
02/26/2024 03:15:56 AM
rwxr-xr-x
📄
elf.h
170.73 KB
11/14/2023 10:16:09 PM
rw-r--r--
📄
endian.h
3.11 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
envz.h
2.8 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
err.h
2.16 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
errno.h
1.64 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
error.h
1.99 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
execinfo.h
1.49 KB
11/14/2023 10:16:06 PM
rw-r--r--
📄
fcntl.h
10.7 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
features.h
15.69 KB
11/14/2023 10:15:36 PM
rw-r--r--
📄
fenv.h
5.72 KB
11/14/2023 10:15:43 PM
rw-r--r--
📁
finclude
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
fmtmsg.h
3.16 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
fnmatch.h
2.24 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
fpu_control.h
3.5 KB
11/14/2023 10:15:43 PM
rw-r--r--
📄
fstab.h
3.04 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
fts.h
8.18 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
ftw.h
5.13 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
gconv.h
4.31 KB
11/14/2023 10:15:37 PM
rw-r--r--
📁
gdb
-
08/20/2025 07:59:27 AM
rwxr-xr-x
📄
getopt.h
1.43 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
glob.h
6.46 KB
11/14/2023 10:15:47 PM
rw-r--r--
📁
gnu
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
gnu-versions.h
2.29 KB
11/14/2023 10:15:36 PM
rw-r--r--
📄
gnumake.h
2.84 KB
04/18/2022 04:38:33 PM
rw-r--r--
📄
grp.h
6.53 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
gshadow.h
4.42 KB
11/14/2023 10:16:05 PM
rw-r--r--
📄
iconv.h
1.81 KB
11/14/2023 10:15:37 PM
rw-r--r--
📄
ieee754.h
4.79 KB
11/14/2023 10:15:43 PM
rw-r--r--
📄
ifaddrs.h
2.77 KB
11/14/2023 10:16:07 PM
rw-r--r--
📄
inttypes.h
11.61 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
langinfo.h
17.43 KB
11/14/2023 10:15:37 PM
rw-r--r--
📄
lastlog.h
126 bytes
11/14/2023 10:16:08 PM
rw-r--r--
📄
lauxlib.h
8.43 KB
10/09/2021 05:14:36 AM
rw-r--r--
📄
libgen.h
1.35 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
libintl.h
4.47 KB
11/14/2023 10:15:42 PM
rw-r--r--
📁
libxml2
-
01/10/2024 10:15:38 PM
rwxr-xr-x
📄
limits.h
5.29 KB
11/14/2023 10:15:36 PM
rw-r--r--
📄
link.h
7.05 KB
11/14/2023 10:16:09 PM
rw-r--r--
📁
linux
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
locale.h
7.49 KB
11/14/2023 10:15:37 PM
rw-r--r--
📄
lsapidef.h
4.6 KB
11/22/2023 05:32:55 PM
rw-r--r--
📄
lscapi.h
23.58 KB
11/22/2023 05:32:55 PM
rw-r--r--
📄
lscapi_config.h
599 bytes
11/22/2023 05:32:55 PM
rw-r--r--
📄
lua.h
14.49 KB
10/09/2021 05:14:36 AM
rw-r--r--
📄
lua.hpp
191 bytes
10/09/2021 05:14:36 AM
rw-r--r--
📄
luaconf-x86_64.h
21.11 KB
10/09/2021 05:14:36 AM
rw-r--r--
📄
luaconf.h
1.62 KB
08/18/2021 01:25:50 PM
rw-r--r--
📄
lualib.h
1.27 KB
10/09/2021 05:14:36 AM
rw-r--r--
📁
lzma
-
10/24/2023 02:22:13 PM
rwxr-xr-x
📄
lzma.h
9.59 KB
04/29/2018 03:10:38 PM
rw-r--r--
📄
malloc.h
5.96 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
math.h
52.07 KB
11/14/2023 10:15:43 PM
rw-r--r--
📄
mcheck.h
2.38 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
memory.h
955 bytes
11/14/2023 10:15:46 PM
rw-r--r--
📁
misc
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
mntent.h
3.28 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
monetary.h
1.76 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
mqueue.h
3.67 KB
11/14/2023 10:16:06 PM
rw-r--r--
📁
mtd
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
mysql
-
07/09/2024 09:41:45 PM
rwxr-xr-x
📁
net
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netash
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netatalk
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netax25
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
netdb.h
27.44 KB
11/14/2023 10:16:07 PM
rw-r--r--
📁
neteconet
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netinet
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netipx
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netiucv
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netpacket
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netrom
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
netrose
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📁
nfs
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
nl_types.h
1.71 KB
11/14/2023 10:15:42 PM
rw-r--r--
📄
nss.h
1.83 KB
11/14/2023 10:16:08 PM
rw-r--r--
📄
obstack.h
20.81 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
paths.h
2.91 KB
11/14/2023 10:15:47 PM
rw-r--r--
📁
perf
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
poll.h
22 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
printf.h
6.64 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
proc_service.h
3.39 KB
11/14/2023 10:16:07 PM
rw-r--r--
📁
protocols
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
pthread.h
40.3 KB
11/14/2023 10:15:45 PM
rw-r--r--
📄
pty.h
1.53 KB
11/14/2023 10:16:08 PM
rw-r--r--
📄
pwd.h
6.01 KB
11/14/2023 10:15:46 PM
rw-r--r--
📁
python2.7
-
02/26/2024 03:14:13 AM
rwxr-xr-x
📁
python3.6m
-
02/26/2024 03:04:34 AM
rwxr-xr-x
📁
rdma
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
re_comp.h
962 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
regex.h
24.14 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
regexp.h
1.41 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
resolv.h
11.79 KB
11/14/2023 10:16:07 PM
rw-r--r--
📁
rpc
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
sched.h
4.62 KB
11/14/2023 10:15:47 PM
rw-r--r--
📁
scsi
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
search.h
5.1 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
semaphore.h
2.34 KB
11/14/2023 10:15:45 PM
rw-r--r--
📄
setjmp.h
3.58 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
sgtty.h
1.31 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
sha1.h
569 bytes
11/22/2023 05:32:55 PM
rw-r--r--
📄
shadow.h
5.34 KB
11/14/2023 10:16:05 PM
rw-r--r--
📄
signal.h
11.96 KB
11/14/2023 10:15:44 PM
rw-r--r--
📁
sound
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
spawn.h
6.53 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
stab.h
264 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
stdc-predef.h
2.24 KB
11/14/2023 10:15:36 PM
rw-r--r--
📄
stdint.h
8.27 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
stdio.h
29.46 KB
11/14/2023 10:15:45 PM
rw-r--r--
📄
stdio_ext.h
2.73 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
stdlib.h
34.82 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
string.h
17.17 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
strings.h
4.64 KB
11/14/2023 10:15:46 PM
rw-r--r--
📁
sys
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
syscall.h
25 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
sysexits.h
5.11 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
syslog.h
24 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
tar.h
3.7 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
termio.h
214 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
termios.h
3.51 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
tgmath.h
30.75 KB
11/14/2023 10:15:43 PM
rw-r--r--
📄
thread_db.h
15.65 KB
11/14/2023 10:16:07 PM
rw-r--r--
📄
threads.h
6.5 KB
11/14/2023 10:15:45 PM
rw-r--r--
📄
time.h
10.12 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
ttyent.h
2.44 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
uchar.h
1.95 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
ucontext.h
1.99 KB
11/14/2023 10:15:44 PM
rw-r--r--
📄
ulimit.h
1.55 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
unistd.h
41.74 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
utime.h
1.47 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
utmp.h
3.15 KB
11/14/2023 10:16:08 PM
rw-r--r--
📄
utmpx.h
4 KB
11/14/2023 10:16:08 PM
rw-r--r--
📄
values.h
1.91 KB
11/14/2023 10:15:36 PM
rw-r--r--
📁
video
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
wait.h
22 bytes
11/14/2023 10:15:47 PM
rw-r--r--
📄
wchar.h
30.38 KB
11/14/2023 10:15:46 PM
rw-r--r--
📄
wctype.h
5.42 KB
11/14/2023 10:15:47 PM
rw-r--r--
📄
wordexp.h
2.44 KB
11/14/2023 10:15:47 PM
rw-r--r--
📁
xen
-
02/26/2024 03:04:32 AM
rwxr-xr-x
📄
zconf.h
15.88 KB
10/11/2023 10:02:25 PM
rw-r--r--
📄
zlib.h
94 KB
10/11/2023 10:02:25 PM
rw-r--r--
Editing: lua.h
Close
/* ** $Id: lua.h,v 1.332 2016/12/22 15:51:20 roberto Exp $ ** 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 "3" #define LUA_VERSION_NUM 503 #define LUA_VERSION_RELEASE "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-2017 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_ERRGCMM 5 #define LUA_ERRERR 6 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_NUMTAGS 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); /* ** 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 lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); LUA_API const 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 size_t (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_newuserdata) (lua_State *L, size_t sz); LUA_API int (lua_getmetatable) (lua_State *L, int objindex); LUA_API int (lua_getuservalue) (lua_State *L, int idx); /* ** 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 void (lua_setuservalue) (lua_State *L, int idx); /* ** '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); 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) /* ** 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 LUA_API int (lua_gc) (lua_State *L, int what, int data); /* ** 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); /* ** {============================================================== ** 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 for unsigned conversions ** =============================================================== */ #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 /* }============================================================== */ /* ** {====================================================================== ** 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); 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) */ 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) */ char short_src[LUA_IDSIZE]; /* (S) */ /* private part */ struct CallInfo *i_ci; /* active function */ }; /* }====================================================================== */ /****************************************************************************** * Copyright (C) 1994-2017 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