Home
last modified time | relevance | path

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

123

/minix3/external/mit/lua/dist/src/
H A Dlua.h70 typedef struct lua_State lua_State; typedef
119 typedef int (*lua_CFunction) (lua_State *L);
124 typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx);
130 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
132 typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
159 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
160 LUA_API void (lua_close) (lua_State *L);
161 LUA_API lua_State *(lua_newthread) (lua_State *L);
163 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
166 LUA_API const lua_Number *(lua_version) (lua_State *L);
[all …]
H A Dlauxlib.h35 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz);
39 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
40 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
41 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
42 LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
43 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg,
45 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
47 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg);
48 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def);
51 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg);
[all …]
H A Dlualib.h17 LUAMOD_API int (luaopen_base) (lua_State *L);
20 LUAMOD_API int (luaopen_coroutine) (lua_State *L);
23 LUAMOD_API int (luaopen_table) (lua_State *L);
26 LUAMOD_API int (luaopen_io) (lua_State *L);
29 LUAMOD_API int (luaopen_os) (lua_State *L);
32 LUAMOD_API int (luaopen_string) (lua_State *L);
35 LUAMOD_API int (luaopen_utf8) (lua_State *L);
38 LUAMOD_API int (luaopen_bit32) (lua_State *L);
41 LUAMOD_API int (luaopen_math) (lua_State *L);
44 LUAMOD_API int (luaopen_debug) (lua_State *L);
[all …]
H A Dlcorolib.c25 static lua_State *getco (lua_State *L) { in getco()
26 lua_State *co = lua_tothread(L, 1); in getco()
32 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
61 static int luaB_coresume (lua_State *L) { in luaB_coresume()
62 lua_State *co = getco(L); in luaB_coresume()
78 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
79 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
93 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
94 lua_State *NL; in luaB_cocreate()
103 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
[all …]
H A Dldo.h29 typedef void (*Pfunc) (lua_State *L, void *ud);
31 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
33 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
34 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
35 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
37 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
39 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult, int nres);
40 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
41 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
42 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
[all …]
H A Dlmathlib.c41 static int math_abs (lua_State *L) { in math_abs()
52 static int math_sin (lua_State *L) { in math_sin()
57 static int math_cos (lua_State *L) { in math_cos()
62 static int math_tan (lua_State *L) { in math_tan()
67 static int math_asin (lua_State *L) { in math_asin()
72 static int math_acos (lua_State *L) { in math_acos()
77 static int math_atan (lua_State *L) { in math_atan()
85 static int math_toint (lua_State *L) { in math_toint()
98 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint()
107 static int math_floor (lua_State *L) { in math_floor()
[all …]
H A Dldblib.c39 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack()
45 static int db_getregistry (lua_State *L) { in db_getregistry()
51 static int db_getmetatable (lua_State *L) { in db_getmetatable()
60 static int db_setmetatable (lua_State *L) { in db_setmetatable()
70 static int db_getuservalue (lua_State *L) { in db_getuservalue()
79 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 Dlbitlib.c45 static lua_Unsigned andaux (lua_State *L) { in andaux()
54 static int b_and (lua_State *L) { in b_and()
61 static int b_test (lua_State *L) { in b_test()
68 static int b_or (lua_State *L) { in b_or()
78 static int b_xor (lua_State *L) { in b_xor()
88 static int b_not (lua_State *L) { in b_not()
95 static int b_shift (lua_State *L, lua_Unsigned r, lua_Integer i) { in b_shift()
112 static int b_lshift (lua_State *L) { in b_lshift()
117 static int b_rshift (lua_State *L) { in b_rshift()
122 static int b_arshift (lua_State *L) { in b_arshift()
[all …]
H A Dldebug.h23 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
25 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
27 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
30 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
32 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
34 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
35 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
37 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
38 LUAI_FUNC void luaG_traceexec (lua_State *L);
H A Dlvm.h57 LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
58 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
59 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
62 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
64 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
66 LUAI_FUNC void luaV_finishOp (lua_State *L);
67 LUAI_FUNC void luaV_execute (lua_State *L);
68 LUAI_FUNC void luaV_concat (lua_State *L, int total);
69 LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y);
70 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y);
[all …]
H A Dlbaselib.c28 static int luaB_print (lua_State *L) { in luaB_print()
73 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
106 static int luaB_error (lua_State *L) { in luaB_error()
118 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
129 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
142 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
150 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
159 static int luaB_rawget (lua_State *L) { in luaB_rawget()
167 static int luaB_rawset (lua_State *L) { in luaB_rawset()
177 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage()
[all …]
H A Dlauxlib.c51 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 countlevels (lua_State *L) { in countlevels()
131 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
168 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror()
186 static int typeerror (lua_State *L, int arg, const char *tname) { in typeerror()
200 static void tag_error (lua_State *L, int arg, int tag) { in tag_error()
205 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
218 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[all …]
H A Dloadlib.c117 static void *lsys_load (lua_State *L, const char *path, int seeglb);
124 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym);
158 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
165 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
194 static void setprogdir (lua_State *L) { in setprogdir()
209 static void pusherror (lua_State *L) { in pusherror()
224 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
232 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
260 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
267 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
[all …]
H A Dliolib.c145 static int io_type (lua_State *L) { in io_type()
159 static int f_tostring (lua_State *L) { in f_tostring()
169 static FILE *tofile (lua_State *L) { in tofile()
183 static LStream *newprefile (lua_State *L) { in newprefile()
196 static int aux_close (lua_State *L) { in aux_close()
204 static int io_close (lua_State *L) { in io_close()
212 static int f_gc (lua_State *L) { in f_gc()
223 static int io_fclose (lua_State *L) { in io_fclose()
230 static LStream *newfile (lua_State *L) { in newfile()
238 static void opencheck (lua_State *L, const char *fname, const char *mode) { in opencheck()
[all …]
H A Dlapi.c64 static TValue *index2addr (lua_State *L, int idx) { in index2addr()
95 static void growstack (lua_State *L, void *ud) { in growstack()
101 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack()
122 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
138 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
148 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version()
164 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
171 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
176 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
197 static void reverse (lua_State *L, StkId from, StkId to) { in reverse()
[all …]
H A Dlfunc.h52 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
53 LUAI_FUNC CClosure *luaF_newCclosure (lua_State *L, int nelems);
54 LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nelems);
55 LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl);
56 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
57 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
58 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
H A Dltable.h32 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
36 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
37 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
38 LUAI_FUNC Table *luaH_new (lua_State *L);
39 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize,
41 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize);
42 LUAI_FUNC void luaH_free (lua_State *L, Table *t);
43 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
H A Dloslib.c127 static int os_execute (lua_State *L) { in os_execute()
139 static int os_remove (lua_State *L) { in os_remove()
145 static int os_rename (lua_State *L) { in os_rename()
152 static int os_tmpname (lua_State *L) { in os_tmpname()
163 static int os_getenv (lua_State *L) { in os_getenv()
169 static int os_clock (lua_State *L) { in os_clock()
183 static void setfield (lua_State *L, const char *key, int value) { in setfield()
188 static void setboolfield (lua_State *L, const char *key, int value) { in setboolfield()
195 static int getboolfield (lua_State *L, const char *key) { in getboolfield()
203 static int getfield (lua_State *L, const char *key, int d) { in getfield()
[all …]
H A Dlua.c103 static lua_State *globalL = NULL;
111 static void lstop (lua_State *L, lua_Debug *ar) { in lstop()
166 static int report (lua_State *L, int status) { in report()
179 static int msghandler (lua_State *L) { in msghandler()
198 static int docall (lua_State *L, int narg, int nres) { in docall()
226 static void createargtable (lua_State *L, char **argv, int argc, int script) { in createargtable()
239 static int dochunk (lua_State *L, int status) { in dochunk()
245 static int dofile (lua_State *L, const char *name) { in dofile()
250 static int dostring (lua_State *L, const char *s, const char *name) { in dostring()
259 static int dolibrary (lua_State *L, const char *name) { in dolibrary()
[all …]
H A Dlgc.h125 LUAI_FUNC void luaC_fix (lua_State *L, GCObject *o);
126 LUAI_FUNC void luaC_freeallobjects (lua_State *L);
127 LUAI_FUNC void luaC_step (lua_State *L);
128 LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask);
129 LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency);
130 LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz);
131 LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v);
132 LUAI_FUNC void luaC_barrierback_ (lua_State *L, Table *o);
133 LUAI_FUNC void luaC_upvalbarrier_ (lua_State *L, UpVal *uv);
134 LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt);
[all …]
H A Dlstring.h40 LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
42 LUAI_FUNC void luaS_init (lua_State *L);
43 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
44 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
45 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
46 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
H A Dlstate.c60 lua_State l;
85 static unsigned int makeseed (lua_State *L) { in makeseed()
108 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI()
121 void luaE_freeCI (lua_State *L) { in luaE_freeCI()
135 void luaE_shrinkCI (lua_State *L) { in luaE_shrinkCI()
148 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
168 static void freestack (lua_State *L) { in freestack()
180 static void init_registry (lua_State *L, global_State *g) { in init_registry()
199 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen()
217 static void preinit_thread (lua_State *L, global_State *g) { in preinit_thread()
[all …]
/minix3/lib/lua/sqlite/
H A Dsqlite.c43 int luaopen_sqlite(lua_State*);
46 sqlite_error(lua_State *L, const char *fmt, ...) in sqlite_error()
65 sqlite_initialize(lua_State *L) in sqlite_initialize()
72 sqlite_shutdown(lua_State *L) in sqlite_shutdown()
79 sqlite_open(lua_State *L) in sqlite_open()
97 sqlite_libversion(lua_State *L) in sqlite_libversion()
104 sqlite_libversion_number(lua_State *L) in sqlite_libversion_number()
111 sqlite_sourceid(lua_State *L) in sqlite_sourceid()
118 db_close(lua_State *L) in db_close()
129 db_prepare(lua_State *L) in db_prepare()
[all …]
/minix3/libexec/httpd/lua/
H A Dglue.c49 int luaopen_bozohttpd(lua_State *);
71 l_new(lua_State *L) in l_new()
82 l_init_httpd(lua_State *L) in l_init_httpd()
93 l_init_prefs(lua_State *L) in l_init_prefs()
105 l_bozo_set_pref(lua_State *L) in l_bozo_set_pref()
120 l_bozo_get_pref(lua_State *L) in l_bozo_get_pref()
133 l_bozo_setup(lua_State *L) in l_bozo_setup()
153 l_bozo_read_request(lua_State *L) in l_bozo_read_request()
166 l_bozo_process_request(lua_State *L) in l_bozo_process_request()
180 l_bozo_clean_request(lua_State *L) in l_bozo_clean_request()
[all …]
/minix3/lib/lua/gpio/
H A Dgpio.c49 gpio_error(lua_State *L, const char *fmt, ...) in gpio_error()
68 gpio_open(lua_State *L) in gpio_open()
85 gpio_close(lua_State *L) in gpio_close()
98 gpio_info(lua_State *L) in gpio_info()
111 gpio_get_pin(lua_State *L, int n, struct gpio_req *req) in gpio_get_pin()
127 gpio_set(lua_State *L) in gpio_set()
142 gpio_unset(lua_State *L) in gpio_unset()
156 gpio_read(lua_State *L) in gpio_read()
172 gpio_write(lua_State *L) in gpio_write()
191 gpio_toggle(lua_State *L) in gpio_toggle()
[all …]

123