Home
last modified time | relevance | path

Searched refs:lua_State (Results 1 – 25 of 106) sorted by relevance

12345

/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlua.h50 typedef struct lua_State lua_State; typedef
52 typedef int (*lua_CFunction) (lua_State *L);
111 LUA_API void (lua_close) (lua_State *L);
112 LUA_API lua_State *(lua_newthread) (lua_State *L);
120 LUA_API int (lua_gettop) (lua_State *L);
128 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
153 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
160 LUA_API void (lua_pushnil) (lua_State *L);
215 LUA_API int (lua_status) (lua_State *L);
237 LUA_API int (lua_error) (lua_State *L);
[all …]
H A Dlauxlib.h19 LUALIB_API int (luaL_getn) (lua_State *L, int t);
20 LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
42 LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname,
63 LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
68 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
74 LUALIB_API int (luaL_ref) (lua_State *L, int t);
75 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
80 LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
82 LUALIB_API lua_State *(luaL_newstate) (void);
88 LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
[all …]
H A Dlmathlib.c26 static int math_abs (lua_State *L) { in math_abs()
31 static int math_sin (lua_State *L) { in math_sin()
36 static int math_sinh (lua_State *L) { in math_sinh()
41 static int math_cos (lua_State *L) { in math_cos()
46 static int math_cosh (lua_State *L) { in math_cosh()
51 static int math_tan (lua_State *L) { in math_tan()
56 static int math_tanh (lua_State *L) { in math_tanh()
61 static int math_asin (lua_State *L) { in math_asin()
66 static int math_acos (lua_State *L) { in math_acos()
71 static int math_atan (lua_State *L) { in math_atan()
[all …]
H A Dlbaselib.c31 static int luaB_print (lua_State *L) { in luaB_print()
53 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
81 static int luaB_error (lua_State *L) { in luaB_error()
219 static int luaB_type (lua_State *L) { in luaB_type()
226 static int luaB_next (lua_State *L) { in luaB_next()
238 static int luaB_pairs (lua_State *L) { in luaB_pairs()
247 static int ipairsaux (lua_State *L) { in ipairsaux()
315 static int luaB_load (lua_State *L) { in luaB_load()
490 static int costatus (lua_State *L, lua_State *co) { in costatus()
518 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
[all …]
H A Dliolib.c57 static int io_type (lua_State *L) { in io_type()
72 static FILE *tofile (lua_State *L) { in tofile()
108 static int io_pclose (lua_State *L) { in io_pclose()
119 static int io_fclose (lua_State *L) { in io_fclose()
134 static int io_close (lua_State *L) { in io_close()
142 static int io_gc (lua_State *L) { in io_gc()
161 static int io_open (lua_State *L) { in io_open()
174 static int io_popen (lua_State *L) { in io_popen()
241 static int f_lines (lua_State *L) { in f_lines()
386 static int f_read (lua_State *L) { in f_read()
[all …]
H A Dldo.h38 typedef void (*Pfunc) (lua_State *L, void *ud);
41 LUAI_FUNC void luaD_callhook (lua_State *L, int event, int line);
42 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
43 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
44 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
46 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
47 LUAI_FUNC void luaD_reallocCI (lua_State *L, int newsize);
48 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
49 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
51 LUAI_FUNC void luaD_throw (lua_State *L, int errcode);
[all …]
H A Dlualib.h19 LUALIB_API int (luaopen_base) (lua_State *L);
22 LUALIB_API int (luaopen_table) (lua_State *L);
25 LUALIB_API int (luaopen_io) (lua_State *L);
28 LUALIB_API int (luaopen_os) (lua_State *L);
31 LUALIB_API int (luaopen_string) (lua_State *L);
34 LUALIB_API int (luaopen_math) (lua_State *L);
37 LUALIB_API int (luaopen_debug) (lua_State *L);
40 LUALIB_API int (luaopen_package) (lua_State *L);
44 LUALIB_API void (luaL_openlibs) (lua_State *L);
H A Dldblib.c22 static int db_getregistry (lua_State *L) { in db_getregistry()
28 static int db_getmetatable (lua_State *L) { in db_getmetatable()
47 static int db_getfenv (lua_State *L) { in db_getfenv()
54 static int db_setfenv (lua_State *L) { in db_setfenv()
76 static lua_State *getthread (lua_State *L, int *arg) { in getthread()
88 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption()
99 static int db_getinfo (lua_State *L) { in db_getinfo()
102 lua_State *L1 = getthread(L, &arg); in db_getinfo()
146 lua_State *L1 = getthread(L, &arg); in db_getlocal()
167 lua_State *L1 = getthread(L, &arg); in db_setlocal()
[all …]
H A Dlapi.c79 static Table *getcurrenv (lua_State *L) { in getcurrenv()
110 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
125 LUA_API void lua_setlevel (lua_State *from, lua_State *to) { in lua_setlevel()
140 LUA_API lua_State *lua_newthread (lua_State *L) { in lua_newthread()
141 lua_State *L1; in lua_newthread()
159 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
395 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
421 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
519 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
890 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
H A Dlfunc.h21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);
24 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
25 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
26 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
28 LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);
29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
H A Dloslib.c38 static int os_execute (lua_State *L) { in os_execute()
44 static int os_remove (lua_State *L) { in os_remove()
50 static int os_rename (lua_State *L) { in os_rename()
57 static int os_tmpname (lua_State *L) { in os_tmpname()
68 static int os_getenv (lua_State *L) { in os_getenv()
74 static int os_clock (lua_State *L) { in os_clock()
124 static int os_date (lua_State *L) { in os_date()
170 static int os_time (lua_State *L) { in os_time()
195 static int os_difftime (lua_State *L) { in os_difftime()
204 static int os_setlocale (lua_State *L) { in os_setlocale()
[all …]
H A Dlauxlib.c68 static void tag_error (lua_State *L, int narg, int tag) { in tag_error()
73 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
280 static int checkint (lua_State *L, int topop) { in checkint()
287 static void getsizes (lua_State *L) { in getsizes()
321 LUALIB_API int luaL_getn (lua_State *L, int t) { in luaL_getn()
412 lua_State *L = B->L; in adjuststack()
455 lua_State *L = B->L; in luaL_addvalue()
481 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref()
639 static int panic (lua_State *L) { in panic()
647 LUALIB_API lua_State *luaL_newstate (void) { in luaL_newstate()
[all …]
H A Dlstate.c36 lua_State l;
42 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
61 static void freestack (lua_State *L, lua_State *L1) { in freestack()
70 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen()
105 static void close_state (lua_State *L) { in close_state()
119 lua_State *luaE_newthread (lua_State *L) { in luaE_newthread()
120 lua_State *L1 = tostate(luaM_malloc(L, state_size(lua_State))); in luaE_newthread()
134 void luaE_freethread (lua_State *L, lua_State *L1) { in luaE_freethread()
145 lua_State *L; in lua_newstate()
193 static void callallgcTM (lua_State *L, void *ud) { in callallgcTM()
[all …]
H A Dloadlib.c97 static void setprogdir (lua_State *L) { in setprogdir()
112 static void pusherror (lua_State *L) { in pusherror()
159 static void pusherror (lua_State *L) { in pusherror()
286 static int gctm (lua_State *L) { in gctm()
309 static int ll_loadlib (lua_State *L) { in ll_loadlib()
380 static int loader_Lua (lua_State *L) { in loader_Lua()
402 static int loader_C (lua_State *L) { in loader_C()
451 static int ll_require (lua_State *L) { in ll_require()
507 static void setfenv (lua_State *L) { in setfenv()
544 static int ll_module (lua_State *L) { in ll_module()
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/lua/
H A Dlua.h53 typedef struct lua_State lua_State; typedef
55 typedef int (*lua_CFunction) (lua_State *L);
132 LUA_API void (lua_close) (lua_State *L);
133 LUA_API lua_State *(lua_newthread) (lua_State *L);
145 LUA_API int (lua_gettop) (lua_State *L);
154 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
176 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
217 LUA_API int (lua_pushthread) (lua_State *L);
274 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);
275 LUA_API int (lua_status) (lua_State *L);
[all …]
H A Dlauxlib.h27 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver);
42 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg,
49 LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
50 LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
57 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
67 LUALIB_API int (luaL_ref) (lua_State *L, int t);
68 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
72 LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
74 LUALIB_API int (luaL_len) (lua_State *L, int idx);
83 LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1,
[all …]
H A Dlualib.h16 LUAMOD_API int (luaopen_base) (lua_State *L);
19 LUAMOD_API int (luaopen_coroutine) (lua_State *L);
22 LUAMOD_API int (luaopen_table) (lua_State *L);
25 LUAMOD_API int (luaopen_io) (lua_State *L);
28 LUAMOD_API int (luaopen_os) (lua_State *L);
31 LUAMOD_API int (luaopen_string) (lua_State *L);
34 LUAMOD_API int (luaopen_bit32) (lua_State *L);
37 LUAMOD_API int (luaopen_math) (lua_State *L);
40 LUAMOD_API int (luaopen_debug) (lua_State *L);
43 LUAMOD_API int (luaopen_package) (lua_State *L);
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dzcp.h39 int zcp_argerror(lua_State *, int, const char *, ...);
44 int zcp_load_list_lib(lua_State *);
46 int zcp_load_synctask_lib(lua_State *, boolean_t);
123 lua_State *zri_state;
149 zcp_run_info_t *zcp_run_info(lua_State *);
151 void zcp_deregister_cleanup(lua_State *, zcp_cleanup_handler_t *);
152 void zcp_cleanup(lua_State *);
175 void zcp_parse_args(lua_State *, const char *, const zcp_arg_t *,
177 int zcp_nvlist_to_lua(lua_State *, nvlist_t *, char *, int);
179 struct dsl_dataset *zcp_dataset_hold(lua_State *, dsl_pool_t *,
[all …]
/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dldo.h28 typedef void (*Pfunc) (lua_State *L, void *ud);
32 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
33 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
34 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
36 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
38 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
39 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
40 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
41 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
43 LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
[all …]
H A Dlcorolib.c18 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
47 static int luaB_coresume (lua_State *L) { in luaB_coresume()
48 lua_State *co = lua_tothread(L, 1); in luaB_coresume()
65 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
80 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
81 lua_State *NL; in luaB_cocreate()
90 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
97 static int luaB_yield (lua_State *L) { in luaB_yield()
102 static int luaB_costatus (lua_State *L) { in luaB_costatus()
103 lua_State *co = lua_tothread(L, 1); in luaB_costatus()
[all …]
H A Dlvm.h27 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
30 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
31 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
33 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
34 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
36 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
38 LUAI_FUNC void luaV_finishOp (lua_State *L);
39 LUAI_FUNC void luaV_execute (lua_State *L);
40 LUAI_FUNC void luaV_concat (lua_State *L, int total);
41 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
[all …]
H A Dlauxlib.c37 static int findfield (lua_State *L, int objidx, int level) { in findfield()
77 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
95 static int countlevels (lua_State *L) { in countlevels()
110 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
172 static void tag_error (lua_State *L, int narg, int tag) { in tag_error()
177 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
398 lua_State *L = B->L; in luaL_prepbuffsize()
432 lua_State *L = B->L; in luaL_pushresult()
446 lua_State *L = B->L; in luaL_addvalue()
482 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref()
[all …]
H A Dlbaselib.c30 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
71 static int luaB_error (lua_State *L) { in luaB_error()
115 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
124 static int luaB_rawget (lua_State *L) { in luaB_rawget()
132 static int luaB_rawset (lua_State *L) { in luaB_rawset()
171 static int luaB_type (lua_State *L) { in luaB_type()
195 static int luaB_next (lua_State *L) { in luaB_next()
207 static int luaB_pairs (lua_State *L) { in luaB_pairs()
212 static int ipairsaux (lua_State *L) { in ipairsaux()
222 static int luaB_ipairs (lua_State *L) { in luaB_ipairs()
[all …]
H A Dlfunc.h22 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
23 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
24 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
25 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
26 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
28 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
H A Dlapi.c52 static TValue *index2addr (lua_State *L, int idx) { in index2addr()
83 static void growstack (lua_State *L, void *ud) { in growstack()
109 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
157 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
246 LUA_API int lua_type (lua_State *L, int idx) { in lua_type()
434 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
462 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
590 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
918 static void f_call (lua_State *L, void *ud) { in f_call()
1009 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]

12345