Home
last modified time | relevance | path

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

123456

/freebsd-13.1/sys/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 …]
/freebsd-13.1/contrib/lua/src/
H A Dlua.h57 typedef struct lua_State lua_State; typedef
106 typedef int (*lua_CFunction) (lua_State *L);
154 LUA_API void (lua_close) (lua_State *L);
155 LUA_API lua_State *(lua_newthread) (lua_State *L);
168 LUA_API int (lua_gettop) (lua_State *L);
175 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
197 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
300 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg,
302 LUA_API int (lua_status) (lua_State *L);
303 LUA_API int (lua_isyieldable) (lua_State *L);
[all …]
H A Dlauxlib.h56 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
62 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
67 LUALIB_API void (luaL_checkany) (lua_State *L, int arg);
74 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
81 LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
88 LUALIB_API int (luaL_ref) (lua_State *L, int t);
89 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
100 LUALIB_API lua_State *(luaL_newstate) (void);
102 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx);
113 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()
93 lua_State *NL; in luaB_cocreate()
109 static int luaB_yield (lua_State *L) { in luaB_yield()
124 static int auxstatus (lua_State *L, lua_State *co) { in auxstatus()
147 lua_State *co = getco(L); in luaB_costatus()
167 static int luaB_close (lua_State *L) { in luaB_close()
[all …]
H A Dldo.h53 typedef void (*Pfunc) (lua_State *L, void *ud);
58 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
60 LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
63 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
65 LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func);
66 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
68 LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);
70 LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
71 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
72 LUAI_FUNC void luaD_inctop (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()
204 lua_State *L1 = getthread(L, &arg); in db_getlocal()
236 lua_State *L1 = getthread(L, &arg); in db_setlocal()
367 lua_State *L1 = getthread(L, &arg); in db_sethook()
396 lua_State *L1 = getthread(L, &arg); in db_gethook()
[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 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()
541 lua_State *L = B->L; in prepbuffsize()
585 lua_State *L = B->L; in luaL_pushresult()
610 lua_State *L = B->L; in luaL_addvalue()
999 static int panic (lua_State *L) { in panic()
1046 lua_State *L = (lua_State *)ud; in warnfcont()
[all …]
H A Dldebug.h30 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
32 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
34 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
36 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
38 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
41 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
43 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
45 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
46 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
48 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
[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()
243 static int luaB_type (lua_State *L) { in luaB_type()
251 static int luaB_next (lua_State *L) { in luaB_next()
263 static int luaB_pairs (lua_State *L) { in luaB_pairs()
281 static int ipairsaux (lua_State *L) { in ipairsaux()
[all …]
H A Dliolib.c157 static int io_type (lua_State *L) { in io_type()
181 static FILE *tofile (lua_State *L) { in tofile()
216 static int f_close (lua_State *L) { in f_close()
222 static int io_close (lua_State *L) { in io_close()
229 static int f_gc (lua_State *L) { in f_gc()
263 static int io_open (lua_State *L) { in io_open()
284 static int io_popen (lua_State *L) { in io_popen()
329 static int io_input (lua_State *L) { in io_input()
368 static int f_lines (lua_State *L) { in f_lines()
615 static int f_read (lua_State *L) { in f_read()
[all …]
H A Dlapi.c56 static TValue *index2value (lua_State *L, int idx) { in index2value()
83 static StkId index2stack (lua_State *L, int idx) { in index2stack()
120 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
146 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
168 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
260 LUA_API int lua_type (lua_State *L, int idx) { in lua_type()
438 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
473 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
600 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
1093 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
H A Dltm.h74 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
77 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
79 LUAI_FUNC void luaT_init (lua_State *L);
81 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
83 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
87 LUAI_FUNC void luaT_tryconcatTM (lua_State *L);
88 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
92 LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
94 LUAI_FUNC int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
97 LUAI_FUNC void luaT_adjustvarargs (lua_State *L, int nfixparams,
[all …]
H A Dloadlib.c175 static void setprogdir (lua_State *L) { in setprogdir()
192 static void pusherror (lua_State *L) { in pusherror()
283 static int noenv (lua_State *L) { in noenv()
361 static int gctm (lua_State *L) { in gctm()
409 static int ll_loadlib (lua_State *L) { in ll_loadlib()
506 static int ll_searchpath (lua_State *L) { in ll_searchpath()
543 static int searcher_Lua (lua_State *L) { in searcher_Lua()
578 static int searcher_C (lua_State *L) { in searcher_C()
586 static int searcher_Croot (lua_State *L) { in searcher_Croot()
608 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-13.1/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-13.1/sys/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 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 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 …]
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 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 …]
/freebsd-13.1/stand/liblua/
H A Dlutils.c46 lua_command(lua_State *L) in lua_command()
67 lua_perform(lua_State *L) in lua_perform()
110 lua_parse(lua_State *L) in lua_parse()
128 lua_getchar(lua_State *L) in lua_getchar()
136 lua_ischar(lua_State *L) in lua_ischar()
144 lua_gets(lua_State *L) in lua_gets()
154 lua_time(lua_State *L) in lua_time()
162 lua_delay(lua_State *L) in lua_delay()
170 lua_getenv(lua_State *L) in lua_getenv()
178 lua_setenv(lua_State *L) in lua_setenv()
[all …]

123456