Home
last modified time | relevance | path

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

123456

/freebsd-14.2/sys/contrib/openzfs/include/sys/lua/
H A Dlua.h52 typedef struct lua_State lua_State; typedef
54 typedef int (*lua_CFunction) (lua_State *L);
131 LUA_API void (lua_close) (lua_State *L);
132 LUA_API lua_State *(lua_newthread) (lua_State *L);
144 LUA_API int (lua_gettop) (lua_State *L);
153 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
175 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
216 LUA_API int (lua_pushthread) (lua_State *L);
273 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);
274 LUA_API int (lua_status) (lua_State *L);
[all …]
H A Dlauxlib.h26 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver);
41 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg,
48 LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
49 LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
56 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
66 LUALIB_API int (luaL_ref) (lua_State *L, int t);
67 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
71 LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
73 LUALIB_API int (luaL_len) (lua_State *L, int idx);
82 LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1,
[all …]
H A Dlualib.h15 LUAMOD_API int (luaopen_base) (lua_State *L);
18 LUAMOD_API int (luaopen_coroutine) (lua_State *L);
21 LUAMOD_API int (luaopen_table) (lua_State *L);
24 LUAMOD_API int (luaopen_io) (lua_State *L);
27 LUAMOD_API int (luaopen_os) (lua_State *L);
30 LUAMOD_API int (luaopen_string) (lua_State *L);
33 LUAMOD_API int (luaopen_bit32) (lua_State *L);
36 LUAMOD_API int (luaopen_math) (lua_State *L);
39 LUAMOD_API int (luaopen_debug) (lua_State *L);
42 LUAMOD_API int (luaopen_package) (lua_State *L);
[all …]
/freebsd-14.2/contrib/lua/src/
H A Dlua.h57 typedef struct lua_State lua_State; typedef
106 typedef int (*lua_CFunction) (lua_State *L);
164 LUA_API void (lua_close) (lua_State *L);
165 LUA_API lua_State *(lua_newthread) (lua_State *L);
166 LUA_API int (lua_closethread) (lua_State *L, lua_State *from);
179 LUA_API int (lua_gettop) (lua_State *L);
186 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
208 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
311 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg,
313 LUA_API int (lua_status) (lua_State *L);
[all …]
H A Dlauxlib.h57 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
63 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
68 LUALIB_API void (luaL_checkany) (lua_State *L, int arg);
75 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
82 LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
89 LUALIB_API int (luaL_ref) (lua_State *L, int t);
90 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
101 LUALIB_API lua_State *(luaL_newstate) (void);
103 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx);
114 LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1,
[all …]
H A Dlcorolib.c21 static lua_State *getco (lua_State *L) { in getco()
22 lua_State *co = lua_tothread(L, 1); in getco()
32 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
57 lua_State *co = getco(L); in luaB_coresume()
73 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
96 lua_State *NL; in luaB_cocreate()
112 static int luaB_yield (lua_State *L) { in luaB_yield()
127 static int auxstatus (lua_State *L, lua_State *co) { in auxstatus()
150 lua_State *co = getco(L); in luaB_costatus()
170 static int luaB_close (lua_State *L) { in luaB_close()
[all …]
H A Dldo.h61 typedef void (*Pfunc) (lua_State *L, void *ud);
66 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
68 LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
72 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
74 LUAI_FUNC StkId luaD_tryfuncTM (lua_State *L, StkId func);
76 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
78 LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);
80 LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
81 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
82 LUAI_FUNC void luaD_inctop (lua_State *L);
[all …]
H A Dlualib.h18 LUAMOD_API int (luaopen_base) (lua_State *L);
21 LUAMOD_API int (luaopen_coroutine) (lua_State *L);
24 LUAMOD_API int (luaopen_table) (lua_State *L);
27 LUAMOD_API int (luaopen_io) (lua_State *L);
30 LUAMOD_API int (luaopen_os) (lua_State *L);
33 LUAMOD_API int (luaopen_string) (lua_State *L);
36 LUAMOD_API int (luaopen_utf8) (lua_State *L);
39 LUAMOD_API int (luaopen_math) (lua_State *L);
42 LUAMOD_API int (luaopen_debug) (lua_State *L);
45 LUAMOD_API int (luaopen_package) (lua_State *L);
[all …]
H A Dldblib.c35 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack()
41 static int db_getregistry (lua_State *L) { in db_getregistry()
94 static lua_State *getthread (lua_State *L, int *arg) { in getthread()
134 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption()
149 static int db_getinfo (lua_State *L) { in db_getinfo()
152 lua_State *L1 = getthread(L, &arg); in db_getinfo()
205 lua_State *L1 = getthread(L, &arg); in db_getlocal()
237 lua_State *L1 = getthread(L, &arg); in db_setlocal()
368 lua_State *L1 = getthread(L, &arg); in db_sethook()
397 lua_State *L1 = getthread(L, &arg); in db_gethook()
[all …]
H A Dldebug.h42 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
44 LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o);
45 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
47 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
49 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
52 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
54 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
56 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
57 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
59 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
[all …]
H A Dlauxlib.c116 static int lastlevel (lua_State *L) { in lastlevel()
131 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
434 static void interror (lua_State *L, int arg) { in interror()
488 static int boxgc (lua_State *L) { in boxgc()
501 static void newbox (lua_State *L) { in newbox()
552 lua_State *L = B->L; in prepbuffsize()
595 lua_State *L = B->L; in luaL_pushresult()
620 lua_State *L = B->L; in luaL_addvalue()
1028 static int panic (lua_State *L) { in panic()
1075 lua_State *L = (lua_State *)ud; in warnfcont()
[all …]
H A Dliolib.c163 static int io_type (lua_State *L) { in io_type()
187 static FILE *tofile (lua_State *L) { in tofile()
222 static int f_close (lua_State *L) { in f_close()
228 static int io_close (lua_State *L) { in io_close()
235 static int f_gc (lua_State *L) { in f_gc()
269 static int io_open (lua_State *L) { in io_open()
290 static int io_popen (lua_State *L) { in io_popen()
335 static int io_input (lua_State *L) { in io_input()
374 static int f_lines (lua_State *L) { in f_lines()
621 static int f_read (lua_State *L) { in f_read()
[all …]
H A Dlbaselib.c24 static int luaB_print (lua_State *L) { in luaB_print()
45 static int luaB_warn (lua_State *L) { in luaB_warn()
114 static int luaB_error (lua_State *L) { in luaB_error()
157 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
166 static int luaB_rawget (lua_State *L) { in luaB_rawget()
174 static int luaB_rawset (lua_State *L) { in luaB_rawset()
259 static int luaB_type (lua_State *L) { in luaB_type()
267 static int luaB_next (lua_State *L) { in luaB_next()
284 static int luaB_pairs (lua_State *L) { in luaB_pairs()
302 static int ipairsaux (lua_State *L) { in ipairsaux()
[all …]
H A Dltm.h75 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
78 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
80 LUAI_FUNC void luaT_init (lua_State *L);
82 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
84 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
88 LUAI_FUNC void luaT_tryconcatTM (lua_State *L);
89 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
93 LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
95 LUAI_FUNC int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
98 LUAI_FUNC void luaT_adjustvarargs (lua_State *L, int nfixparams,
[all …]
H A Dlapi.c128 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
154 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
176 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
284 LUA_API int lua_type (lua_State *L, int idx) { in lua_type()
335 LUA_API void lua_arith (lua_State *L, int op) { in lua_arith()
462 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
497 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
624 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
1036 static void f_call (lua_State *L, void *ud) { in f_call()
1125 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
H A Dloadlib.c177 static void setprogdir (lua_State *L) { in setprogdir()
194 static void pusherror (lua_State *L) { in pusherror()
285 static int noenv (lua_State *L) { in noenv()
363 static int gctm (lua_State *L) { in gctm()
411 static int ll_loadlib (lua_State *L) { in ll_loadlib()
508 static int ll_searchpath (lua_State *L) { in ll_searchpath()
545 static int searcher_Lua (lua_State *L) { in searcher_Lua()
580 static int searcher_C (lua_State *L) { in searcher_C()
588 static int searcher_Croot (lua_State *L) { in searcher_Croot()
610 static int searcher_preload (lua_State *L) { in searcher_preload()
[all …]
H A Dlmathlib.c29 static int math_abs (lua_State *L) { in math_abs()
40 static int math_sin (lua_State *L) { in math_sin()
45 static int math_cos (lua_State *L) { in math_cos()
50 static int math_tan (lua_State *L) { in math_tan()
55 static int math_asin (lua_State *L) { in math_asin()
60 static int math_acos (lua_State *L) { in math_acos()
65 static int math_atan (lua_State *L) { in math_atan()
73 static int math_toint (lua_State *L) { in math_toint()
106 static int math_ceil (lua_State *L) { in math_ceil()
117 static int math_fmod (lua_State *L) { in math_fmod()
[all …]
/freebsd-14.2/sys/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 …]
/freebsd-14.2/sys/contrib/openzfs/module/lua/
H A Dldo.h27 typedef void (*Pfunc) (lua_State *L, void *ud);
31 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
32 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
33 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
35 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
37 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
38 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
39 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
40 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
42 LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
[all …]
H A Dlcorolib.c17 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
46 static int luaB_coresume (lua_State *L) { in luaB_coresume()
47 lua_State *co = lua_tothread(L, 1); in luaB_coresume()
64 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
79 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
80 lua_State *NL; in luaB_cocreate()
89 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
96 static int luaB_yield (lua_State *L) { in luaB_yield()
101 static int luaB_costatus (lua_State *L) { in luaB_costatus()
102 lua_State *co = lua_tothread(L, 1); in luaB_costatus()
[all …]
H A Dlauxlib.c36 static int findfield (lua_State *L, int objidx, int level) { in findfield()
76 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
94 static int countlevels (lua_State *L) { in countlevels()
109 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
171 static void tag_error (lua_State *L, int narg, int tag) { in tag_error()
176 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
397 lua_State *L = B->L; in luaL_prepbuffsize()
431 lua_State *L = B->L; in luaL_pushresult()
445 lua_State *L = B->L; in luaL_addvalue()
481 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref()
[all …]
H A Dlapi.c51 static TValue *index2addr (lua_State *L, int idx) { in index2addr()
82 static void growstack (lua_State *L, void *ud) { in growstack()
108 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
156 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
245 LUA_API int lua_type (lua_State *L, int idx) { in lua_type()
435 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
463 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
591 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
919 static void f_call (lua_State *L, void *ud) { in f_call()
1010 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
H A Dlvm.h26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
32 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
35 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
37 LUAI_FUNC void luaV_finishOp (lua_State *L);
38 LUAI_FUNC void luaV_execute (lua_State *L);
39 LUAI_FUNC void luaV_concat (lua_State *L, int total);
40 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
[all …]
H A Dlbaselib.c29 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
70 static int luaB_error (lua_State *L) { in luaB_error()
114 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
123 static int luaB_rawget (lua_State *L) { in luaB_rawget()
131 static int luaB_rawset (lua_State *L) { in luaB_rawset()
170 static int luaB_type (lua_State *L) { in luaB_type()
194 static int luaB_next (lua_State *L) { in luaB_next()
206 static int luaB_pairs (lua_State *L) { in luaB_pairs()
211 static int ipairsaux (lua_State *L) { in ipairsaux()
221 static int luaB_ipairs (lua_State *L) { in luaB_ipairs()
[all …]
/freebsd-14.2/stand/liblua/
H A Dlutils.c41 lua_command(lua_State *L) in lua_command()
97 lua_perform(lua_State *L) in lua_perform()
113 lua_exit(lua_State *L) in lua_exit()
147 lua_parse(lua_State *L) in lua_parse()
173 lua_ischar(lua_State *L) in lua_ischar()
181 lua_gets(lua_State *L) in lua_gets()
191 lua_time(lua_State *L) in lua_time()
199 lua_delay(lua_State *L) in lua_delay()
207 lua_getenv(lua_State *L) in lua_getenv()
215 lua_setenv(lua_State *L) in lua_setenv()
[all …]

123456