Home
last modified time | relevance | path

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

123456

/freebsd/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);
60 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
62 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
130 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
131 LUA_API void (lua_close) (lua_State *L);
132 LUA_API lua_State *(lua_newthread) (lua_State *L);
134 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
137 LUA_API const lua_Number *(lua_version) (lua_State *L);
143 LUA_API int (lua_absindex) (lua_State *L, int idx);
[all …]
H A Dlauxlib.h26 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver);
29 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
30 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
31 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
32 LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
33 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg,
35 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg,
37 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg);
38 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def);
40 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg);
[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/contrib/lua/src/
H A Dlua.h57 typedef struct lua_State lua_State; typedef
106 typedef int (*lua_CFunction) (lua_State *L);
111 typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx);
117 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
119 typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
143 typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
163 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
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);
[all …]
H A Dlauxlib.h46 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz);
50 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
51 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
52 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
53 LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
54 LUALIB_API int (luaL_typeerror) (lua_State *L, int arg, const char *tname);
55 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg,
57 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
59 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg);
60 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def);
[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()
56 static int luaB_coresume (lua_State *L) { in luaB_coresume()
57 lua_State *co = getco(L); in luaB_coresume()
73 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
74 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
95 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
96 lua_State *NL; in luaB_cocreate()
105 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
[all …]
H A Dldo.h61 typedef void (*Pfunc) (lua_State *L, void *ud);
63 LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop);
64 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
66 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
68 LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
69 LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
71 LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults);
72 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
73 LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
74 LUAI_FUNC StkId luaD_tryfuncTM (lua_State *L, StkId func);
[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()
47 static int db_getmetatable (lua_State *L) { in db_getmetatable()
56 static int db_setmetatable (lua_State *L) { in db_setmetatable()
65 static int db_getuservalue (lua_State *L) { in db_getuservalue()
77 static int db_setuservalue (lua_State *L) { in db_setuservalue()
94 static lua_State *getthread (lua_State *L, int *arg) { in getthread()
111 static void settabss (lua_State *L, const char *k, const char *v) { in settabss()
116 static void settabsi (lua_State *L, const char *k, int v) { in settabsi()
121 static void settabsb (lua_State *L, const char *k, int v) { in settabsb()
[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.c52 static int findfield (lua_State *L, int objidx, int level) { in findfield()
79 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname()
100 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
116 static int lastlevel (lua_State *L) { in lastlevel()
131 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
175 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror()
193 LUALIB_API int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror()
207 static void tag_error (lua_State *L, int arg, int tag) { in tag_error()
216 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
234 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[all …]
H A Dldebug.h40 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
42 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,
[all …]
H A Dliolib.c163 static int io_type (lua_State *L) { in io_type()
177 static int f_tostring (lua_State *L) { in f_tostring()
187 static FILE *tofile (lua_State *L) { in tofile()
201 static LStream *newprefile (lua_State *L) { in newprefile()
214 static int aux_close (lua_State *L) { in aux_close()
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()
246 static int io_fclose (lua_State *L) { in io_fclose()
253 static LStream *newfile (lua_State *L) { in newfile()
[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()
81 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
114 static int luaB_error (lua_State *L) { in luaB_error()
126 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
137 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
149 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
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()
[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,
86 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
88 LUAI_FUNC void luaT_tryconcatTM (lua_State *L);
89 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
91 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
93 LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
[all …]
H A Dlapi.c60 static TValue *index2value (lua_State *L, int idx) { in index2value()
95 l_sinline StkId index2stack (lua_State *L, int idx) { in index2stack()
111 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack()
128 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
144 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
154 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
169 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
176 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
181 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
209 LUA_API void lua_closeslot (lua_State *L, int idx) { in lua_closeslot()
[all …]
H A Dloadlib.c92 static void *lsys_load (lua_State *L, const char *path, int seeglb);
99 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym);
133 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
141 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
177 static void setprogdir (lua_State *L) { in setprogdir()
194 static void pusherror (lua_State *L) { in pusherror()
209 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
217 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
245 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
252 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
[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()
86 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint()
95 static int math_floor (lua_State *L) { in math_floor()
[all …]
/freebsd/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 *);
150 zcp_cleanup_handler_t *zcp_register_cleanup(lua_State *, zcp_cleanup_t, void *);
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);
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dldo.h27 typedef void (*Pfunc) (lua_State *L, void *ud);
29 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
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);
[all …]
H A Dlauxlib.c36 static int findfield (lua_State *L, int objidx, int level) { in findfield()
60 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname()
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()
146 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror()
164 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror()
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()
189 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[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()
65 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); 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()
[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()
88 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack()
108 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
123 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
133 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version()
149 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
156 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
161 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
178 LUA_API void lua_remove (lua_State *L, int idx) { in lua_remove()
[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()
82 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
93 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
106 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
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()
141 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage()
170 static int luaB_type (lua_State *L) { in luaB_type()
[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 …]
/freebsd/stand/liblua/
H A Dlutils.c41 lua_command(lua_State *L) in lua_command()
62 lua_has_command(lua_State *L) in lua_has_command()
78 lua_has_feature(lua_State *L) in lua_has_feature()
97 lua_perform(lua_State *L) in lua_perform()
113 lua_exit(lua_State *L) in lua_exit()
120 lua_command_error(lua_State *L) in lua_command_error()
132 lua_interpret(lua_State *L) in lua_interpret()
147 lua_parse(lua_State *L) in lua_parse()
165 lua_getchar(lua_State *L) in lua_getchar()
173 lua_ischar(lua_State *L) in lua_ischar()
[all …]

123456