Home
last modified time | relevance | path

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

123456

/freebsd/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);
61 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
63 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
131 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
132 LUA_API void (lua_close) (lua_State *L);
133 LUA_API lua_State *(lua_newthread) (lua_State *L);
135 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
138 LUA_API const lua_Number *(lua_version) (lua_State *L);
144 LUA_API int (lua_absindex) (lua_State *L, int idx);
[all …]
H A Dlauxlib.h27 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver);
30 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
31 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
32 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
33 LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
34 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg,
36 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg,
38 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg);
39 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def);
41 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg);
[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/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 l_noret luaD_errerr (lua_State *L);
64 LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop);
65 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
67 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
69 LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
70 LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
72 LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults);
73 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
74 LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
[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 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 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()
101 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
117 static int lastlevel (lua_State *L) { in lastlevel()
132 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
176 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror()
194 LUALIB_API int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror()
208 static void tag_error (lua_State *L, int arg, int tag) { in tag_error()
217 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
235 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[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 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 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,
85 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
87 LUAI_FUNC void luaT_tryconcatTM (lua_State *L);
88 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
90 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
92 LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
[all …]
H A Dloadlib.c83 static void *lsys_load (lua_State *L, const char *path, int seeglb);
90 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym);
124 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
132 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
168 static void setprogdir (lua_State *L) { in setprogdir()
185 static void pusherror (lua_State *L) { in pusherror()
200 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
208 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
236 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
243 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.h40 int zcp_argerror(lua_State *, int, const char *, ...);
45 int zcp_load_list_lib(lua_State *);
47 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.h28 typedef void (*Pfunc) (lua_State *L, void *ud);
30 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
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);
[all …]
H A Dlauxlib.c37 static int findfield (lua_State *L, int objidx, int level) { in findfield()
61 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname()
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()
147 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror()
165 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror()
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()
190 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[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()
89 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack()
109 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
124 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
134 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version()
150 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
157 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
162 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
179 LUA_API void lua_remove (lua_State *L, int idx) { in lua_remove()
[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()
66 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); 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()
[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()
83 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
94 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
107 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
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()
142 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage()
171 static int luaB_type (lua_State *L) { in luaB_type()
[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 …]
/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