Home
last modified time | relevance | path

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

123

/l4re-core-master/lua/lib/contrib/src/
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 …]
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 …]
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 …]
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);
67 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
69 LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);
71 LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
72 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
73 LUAI_FUNC void luaD_inctop (lua_State *L);
[all …]
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 …]
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 …]
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 …]
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()
551 lua_State *L = B->L; in prepbuffsize()
594 lua_State *L = B->L; in luaL_pushresult()
619 lua_State *L = B->L; in luaL_addvalue()
1021 static int panic (lua_State *L) { in panic()
1068 lua_State *L = (lua_State *)ud; in warnfcont()
[all …]
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()
244 static int luaB_type (lua_State *L) { in luaB_type()
252 static int luaB_next (lua_State *L) { in luaB_next()
264 static int luaB_pairs (lua_State *L) { in luaB_pairs()
282 static int ipairsaux (lua_State *L) { in ipairsaux()
[all …]
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 …]
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 …]
A Dlapi.c84 static StkId index2stack (lua_State *L, int idx) { in index2stack()
121 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
147 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
169 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
278 LUA_API int lua_type (lua_State *L, int idx) { in lua_type()
456 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
491 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
618 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
1029 static void f_call (lua_State *L, void *ud) { in f_call()
1118 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
A Dlfunc.h50 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
51 LUAI_FUNC CClosure *luaF_newCclosure (lua_State *L, int nupvals);
52 LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nupvals);
53 LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl);
54 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
55 LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level);
56 LUAI_FUNC void luaF_closeupval (lua_State *L, StkId level);
57 LUAI_FUNC void luaF_close (lua_State *L, StkId level, int status, int yy);
59 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
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 …]
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 …]
A Dlstate.c37 lua_State l;
105 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI()
122 void luaE_freeCI (lua_State *L) { in luaE_freeCI()
138 void luaE_shrinkCI (lua_State *L) { in luaE_shrinkCI()
165 void luaE_checkcstack (lua_State *L) { in luaE_checkcstack()
180 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
203 static void freestack (lua_State *L) { in freestack()
285 LUA_API lua_State *lua_newthread (lua_State *L) { in lua_newthread()
287 lua_State *L1; in lua_newthread()
316 void luaE_freethread (lua_State *L, lua_State *L1) { in luaE_freethread()
[all …]
A Dltable.h39 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
44 LUAI_FUNC void luaH_newkey (lua_State *L, Table *t, const TValue *key,
46 LUAI_FUNC void luaH_set (lua_State *L, Table *t, const TValue *key,
48 LUAI_FUNC void luaH_finishset (lua_State *L, Table *t, const TValue *key,
50 LUAI_FUNC Table *luaH_new (lua_State *L);
51 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize,
53 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize);
54 LUAI_FUNC void luaH_free (lua_State *L, Table *t);
55 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
A Dlvm.h116 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
117 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
123 LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key,
125 LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
127 LUAI_FUNC void luaV_finishOp (lua_State *L);
128 LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci);
129 LUAI_FUNC void luaV_concat (lua_State *L, int total);
130 LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y);
131 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y);
132 LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y);
[all …]
A Dlua.c35 static lua_State *globalL = NULL;
120 static int report (lua_State *L, int status) { in report()
133 static int msghandler (lua_State *L) { in msghandler()
227 static int pushargs (lua_State *L) { in pushargs()
348 static int handle_luainit (lua_State *L) { in handle_luainit()
504 static int addreturn (lua_State *L) { in addreturn()
522 static int multiline (lua_State *L) { in multiline()
544 static int loadline (lua_State *L) { in loadline()
560 static void l_print (lua_State *L) { in l_print()
577 static void doREPL (lua_State *L) { in doREPL()
[all …]
A Dloslib.c142 static int os_execute (lua_State *L) { in os_execute()
156 static int os_remove (lua_State *L) { in os_remove()
162 static int os_rename (lua_State *L) { in os_rename()
169 static int os_tmpname (lua_State *L) { in os_tmpname()
180 static int os_getenv (lua_State *L) { in os_getenv()
186 static int os_clock (lua_State *L) { in os_clock()
304 static int os_date (lua_State *L) { in os_date()
346 static int os_time (lua_State *L) { in os_time()
372 static int os_difftime (lua_State *L) { in os_difftime()
382 static int os_setlocale (lua_State *L) { in os_setlocale()
[all …]
A Dlstate.h291 struct lua_State *mainthread;
304 struct lua_State { struct
355 struct lua_State th; /* thread */
392 LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
393 LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
394 LUAI_FUNC void luaE_freeCI (lua_State *L);
395 LUAI_FUNC void luaE_shrinkCI (lua_State *L);
396 LUAI_FUNC void luaE_checkcstack (lua_State *L);
397 LUAI_FUNC void luaE_incCstack (lua_State *L);
399 LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where);
[all …]
A Dlstring.h47 LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
49 LUAI_FUNC void luaS_init (lua_State *L);
50 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
51 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, int nuvalue);
52 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
53 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
54 LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
A Dlgc.h177 LUAI_FUNC void luaC_fix (lua_State *L, GCObject *o);
178 LUAI_FUNC void luaC_freeallobjects (lua_State *L);
179 LUAI_FUNC void luaC_step (lua_State *L);
180 LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask);
181 LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency);
182 LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz);
183 LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v);
184 LUAI_FUNC void luaC_barrierback_ (lua_State *L, GCObject *o);
185 LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt);
186 LUAI_FUNC void luaC_changemode (lua_State *L, int newmode);
/l4re-core-master/ned/server/src/
A Dlua_cap.h29 void set_cap_metatable(lua_State *l);
93 int index(lua_State *l) const;
109 typedef void Register_methods(lua_State *l);
110 static void register_methods(lua_State *l);
113 static void get_class(lua_State *l);
124 bool find_dynamic_type(lua_State *) const;
137 push_void_cap(lua_State *l);
144 check_cap(lua_State *l, int idx) in check_cap()
147 void get_cap_cast_table(lua_State *l);
177 void init(lua_State *l) in init()
[all …]
A Dlua_cap.cc21 get_cap_cast_table(lua_State *l) in get_cap_cast_table()
42 Cap::get_class(lua_State *l) in get_class()
50 is_valid(lua_State *l) in is_valid()
58 gc_cap(lua_State *l) in gc_cap()
67 tostring(lua_State *l) in tostring()
107 __set_mode_call(lua_State *l) in __set_mode_call()
149 __full(lua_State *l) in __full()
184 Cap::index(lua_State *l) const in index()
259 push_void_cap(lua_State *l) in push_void_cap()
310 __cast(lua_State *l) in __cast()
[all …]

Completed in 57 milliseconds

123