Home
last modified time | relevance | path

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

123

/redis-3.2.3/deps/lua/src/
H A Dlua.h50 typedef struct lua_State lua_State; typedef
52 typedef int (*lua_CFunction) (lua_State *L);
111 LUA_API void (lua_close) (lua_State *L);
112 LUA_API lua_State *(lua_newthread) (lua_State *L);
120 LUA_API int (lua_gettop) (lua_State *L);
128 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
153 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
160 LUA_API void (lua_pushnil) (lua_State *L);
215 LUA_API int (lua_status) (lua_State *L);
237 LUA_API int (lua_error) (lua_State *L);
[all …]
H A Dlauxlib.h19 LUALIB_API int (luaL_getn) (lua_State *L, int t);
20 LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
42 LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname,
63 LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
68 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
74 LUALIB_API int (luaL_ref) (lua_State *L, int t);
75 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
80 LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
82 LUALIB_API lua_State *(luaL_newstate) (void);
88 LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
[all …]
H A Dlmathlib.c26 static int math_abs (lua_State *L) { in math_abs()
31 static int math_sin (lua_State *L) { in math_sin()
36 static int math_sinh (lua_State *L) { in math_sinh()
41 static int math_cos (lua_State *L) { in math_cos()
46 static int math_cosh (lua_State *L) { in math_cosh()
51 static int math_tan (lua_State *L) { in math_tan()
56 static int math_tanh (lua_State *L) { in math_tanh()
61 static int math_asin (lua_State *L) { in math_asin()
66 static int math_acos (lua_State *L) { in math_acos()
71 static int math_atan (lua_State *L) { in math_atan()
[all …]
H A Dlbaselib.c31 static int luaB_print (lua_State *L) { in luaB_print()
53 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
81 static int luaB_error (lua_State *L) { in luaB_error()
219 static int luaB_type (lua_State *L) { in luaB_type()
226 static int luaB_next (lua_State *L) { in luaB_next()
238 static int luaB_pairs (lua_State *L) { in luaB_pairs()
247 static int ipairsaux (lua_State *L) { in ipairsaux()
315 static int luaB_load (lua_State *L) { in luaB_load()
490 static int costatus (lua_State *L, lua_State *co) { in costatus()
518 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
[all …]
H A Dldo.h38 typedef void (*Pfunc) (lua_State *L, void *ud);
41 LUAI_FUNC void luaD_callhook (lua_State *L, int event, int line);
42 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
43 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
44 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
46 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
47 LUAI_FUNC void luaD_reallocCI (lua_State *L, int newsize);
48 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
49 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
51 LUAI_FUNC void luaD_throw (lua_State *L, int errcode);
[all …]
H A Dliolib.c57 static int io_type (lua_State *L) { in io_type()
72 static FILE *tofile (lua_State *L) { in tofile()
108 static int io_pclose (lua_State *L) { in io_pclose()
119 static int io_fclose (lua_State *L) { in io_fclose()
134 static int io_close (lua_State *L) { in io_close()
142 static int io_gc (lua_State *L) { in io_gc()
161 static int io_open (lua_State *L) { in io_open()
174 static int io_popen (lua_State *L) { in io_popen()
241 static int f_lines (lua_State *L) { in f_lines()
386 static int f_read (lua_State *L) { in f_read()
[all …]
H A Dlualib.h19 LUALIB_API int (luaopen_base) (lua_State *L);
22 LUALIB_API int (luaopen_table) (lua_State *L);
25 LUALIB_API int (luaopen_io) (lua_State *L);
28 LUALIB_API int (luaopen_os) (lua_State *L);
31 LUALIB_API int (luaopen_string) (lua_State *L);
34 LUALIB_API int (luaopen_math) (lua_State *L);
37 LUALIB_API int (luaopen_debug) (lua_State *L);
40 LUALIB_API int (luaopen_package) (lua_State *L);
44 LUALIB_API void (luaL_openlibs) (lua_State *L);
H A Dldblib.c22 static int db_getregistry (lua_State *L) { in db_getregistry()
28 static int db_getmetatable (lua_State *L) { in db_getmetatable()
47 static int db_getfenv (lua_State *L) { in db_getfenv()
54 static int db_setfenv (lua_State *L) { in db_setfenv()
76 static lua_State *getthread (lua_State *L, int *arg) { in getthread()
88 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption()
99 static int db_getinfo (lua_State *L) { in db_getinfo()
102 lua_State *L1 = getthread(L, &arg); in db_getinfo()
146 lua_State *L1 = getthread(L, &arg); in db_getlocal()
167 lua_State *L1 = getthread(L, &arg); in db_setlocal()
[all …]
H A Dlapi.c79 static Table *getcurrenv (lua_State *L) { in getcurrenv()
110 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
125 LUA_API void lua_setlevel (lua_State *from, lua_State *to) { in lua_setlevel()
140 LUA_API lua_State *lua_newthread (lua_State *L) { in lua_newthread()
141 lua_State *L1; in lua_newthread()
159 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
395 LUA_API lua_State *lua_tothread (lua_State *L, int idx) { in lua_tothread()
421 LUA_API void lua_pushnil (lua_State *L) { in lua_pushnil()
519 LUA_API int lua_pushthread (lua_State *L) { in lua_pushthread()
890 LUA_API int lua_status (lua_State *L) { in lua_status()
[all …]
H A Dlfunc.h21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);
24 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
25 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
26 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
28 LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);
29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
H A Dloslib.c38 static int os_execute (lua_State *L) { in os_execute()
44 static int os_remove (lua_State *L) { in os_remove()
50 static int os_rename (lua_State *L) { in os_rename()
57 static int os_tmpname (lua_State *L) { in os_tmpname()
68 static int os_getenv (lua_State *L) { in os_getenv()
74 static int os_clock (lua_State *L) { in os_clock()
124 static int os_date (lua_State *L) { in os_date()
170 static int os_time (lua_State *L) { in os_time()
195 static int os_difftime (lua_State *L) { in os_difftime()
204 static int os_setlocale (lua_State *L) { in os_setlocale()
[all …]
H A Dlauxlib.c68 static void tag_error (lua_State *L, int narg, int tag) { in tag_error()
73 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
280 static int checkint (lua_State *L, int topop) { in checkint()
287 static void getsizes (lua_State *L) { in getsizes()
321 LUALIB_API int luaL_getn (lua_State *L, int t) { in luaL_getn()
412 lua_State *L = B->L; in adjuststack()
455 lua_State *L = B->L; in luaL_addvalue()
481 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref()
639 static int panic (lua_State *L) { in panic()
647 LUALIB_API lua_State *luaL_newstate (void) { in luaL_newstate()
[all …]
H A Dlstate.c36 lua_State l;
42 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
61 static void freestack (lua_State *L, lua_State *L1) { in freestack()
70 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen()
105 static void close_state (lua_State *L) { in close_state()
119 lua_State *luaE_newthread (lua_State *L) { in luaE_newthread()
120 lua_State *L1 = tostate(luaM_malloc(L, state_size(lua_State))); in luaE_newthread()
134 void luaE_freethread (lua_State *L, lua_State *L1) { in luaE_freethread()
145 lua_State *L; in lua_newstate()
193 static void callallgcTM (lua_State *L, void *ud) { in callallgcTM()
[all …]
H A Dloadlib.c97 static void setprogdir (lua_State *L) { in setprogdir()
112 static void pusherror (lua_State *L) { in pusherror()
159 static void pusherror (lua_State *L) { in pusherror()
286 static int gctm (lua_State *L) { in gctm()
309 static int ll_loadlib (lua_State *L) { in ll_loadlib()
380 static int loader_Lua (lua_State *L) { in loader_Lua()
402 static int loader_C (lua_State *L) { in loader_C()
451 static int ll_require (lua_State *L) { in ll_require()
507 static void setfenv (lua_State *L) { in setfenv()
544 static int ll_module (lua_State *L) { in ll_module()
[all …]
H A Dlvm.h25 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
26 LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2);
28 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
29 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
31 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
33 LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls);
34 LUAI_FUNC void luaV_concat (lua_State *L, int total, int last);
H A Dlua.c22 static lua_State *globalL = NULL;
28 static void lstop (lua_State *L, lua_Debug *ar) { in lstop()
65 static int report (lua_State *L, int status) { in report()
76 static int traceback (lua_State *L) { in traceback()
163 static int incomplete (lua_State *L, int status) { in incomplete()
177 static int pushline (lua_State *L, int firstline) { in pushline()
196 static int loadline (lua_State *L) { in loadline()
216 static void dotty (lua_State *L) { in dotty()
323 static int handle_luainit (lua_State *L) { in handle_luainit()
340 static int pmain (lua_State *L) { in pmain()
[all …]
H A Dldebug.h21 LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o,
23 LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
24 LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1,
26 LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1,
28 LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...);
29 LUAI_FUNC void luaG_errormsg (lua_State *L);
H A Dltable.h22 LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key);
24 LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key);
26 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
27 LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash);
28 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
29 LUAI_FUNC void luaH_free (lua_State *L, Table *t);
30 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
H A Dltablib.c22 static int foreachi (lua_State *L) { in foreachi()
39 static int foreach (lua_State *L) { in foreach()
56 static int maxn (lua_State *L) { in maxn()
72 static int getn (lua_State *L) { in getn()
78 static int setn (lua_State *L) { in setn()
90 static int tinsert (lua_State *L) { in tinsert()
118 static int tremove (lua_State *L) { in tremove()
144 static int tconcat (lua_State *L) { in tconcat()
173 static void set2 (lua_State *L, int i, int j) { in set2()
256 static int sort (lua_State *L) { in sort()
[all …]
H A Dlua_cmsgpack.c107 mp_buf *mp_buf_new(lua_State *L) { in mp_buf_new()
130 void mp_buf_free(lua_State *L, mp_buf *buf) { in mp_buf_free()
349 void mp_encode_lua_bool(lua_State *L, mp_buf *buf) { in mp_encode_lua_bool()
423 int table_is_an_array(lua_State *L) { in table_is_an_array()
510 int mp_pack(lua_State *L) { in mp_pack()
839 int mp_unpack(lua_State *L) { in mp_unpack()
843 int mp_unpack_one(lua_State *L) { in mp_unpack_one()
850 int mp_unpack_limit(lua_State *L) { in mp_unpack_limit()
859 int mp_safe(lua_State *L) { in mp_safe()
890 int luaopen_create(lua_State *L) { in luaopen_create()
[all …]
H A Dlgc.h99 LUAI_FUNC size_t luaC_separateudata (lua_State *L, int all);
100 LUAI_FUNC void luaC_callGCTM (lua_State *L);
101 LUAI_FUNC void luaC_freeall (lua_State *L);
102 LUAI_FUNC void luaC_step (lua_State *L);
103 LUAI_FUNC void luaC_fullgc (lua_State *L);
104 LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
105 LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv);
106 LUAI_FUNC void luaC_barrierf (lua_State *L, GCObject *o, GCObject *v);
107 LUAI_FUNC void luaC_barrierback (lua_State *L, Table *t);
H A Dlua_cjson.c281 static int json_cfg_encode_max_depth(lua_State *l) in json_cfg_encode_max_depth()
290 static int json_cfg_decode_max_depth(lua_State *l) in json_cfg_decode_max_depth()
361 static int json_destroy_config(lua_State *l) in json_destroy_config()
373 static void json_create_config(lua_State *l) in json_create_config()
703 static int json_encode(lua_State *l) in json_encode()
1253 static int json_decode(lua_State *l) in json_decode()
1318 static int json_protect_conversion(lua_State *l) in json_protect_conversion()
1344 static int lua_cjson_new(lua_State *l) in lua_cjson_new()
1384 static int lua_cjson_safe_new(lua_State *l) in lua_cjson_safe_new()
1404 int luaopen_cjson(lua_State *l) in luaopen_cjson()
[all …]
H A Dldo.c71 static void restore_stack_limit (lua_State *L) { in restore_stack_limit()
81 static void resetstack (lua_State *L, int status) { in resetstack()
94 void luaD_throw (lua_State *L, int errcode) { in luaD_throw()
141 void luaD_reallocstack (lua_State *L, int newsize) { in luaD_reallocstack()
152 void luaD_reallocCI (lua_State *L, int newsize) { in luaD_reallocCI()
161 void luaD_growstack (lua_State *L, int n) { in luaD_growstack()
169 static CallInfo *growCI (lua_State *L) { in growCI()
244 static StkId tryfuncTM (lua_State *L, StkId func) { in tryfuncTM()
384 static void resume (lua_State *L, void *ud) { in resume()
418 LUA_API int lua_resume (lua_State *L, int nargs) { in lua_resume()
[all …]
H A Dlua_bit.c57 static UBits barg(lua_State *L, int idx) in barg()
96 static int bit_tobit(lua_State *L) { BRET(barg(L, 1)) } in bit_tobit()
97 static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) } in bit_bnot()
100 static int func(lua_State *L) { int i; UBits b = barg(L, 1); \
112 static int func(lua_State *L) { \
120 static int bit_bswap(lua_State *L) in BIT_SH()
127 static int bit_tohex(lua_State *L) in bit_tohex()
163 LUALIB_API int luaopen_bit(lua_State *L) in luaopen_bit()
H A Dldebug.c36 static int currentpc (lua_State *L, CallInfo *ci) { in currentpc()
44 static int currentline (lua_State *L, CallInfo *ci) { in currentline()
69 LUA_API lua_Hook lua_gethook (lua_State *L) { in lua_gethook()
74 LUA_API int lua_gethookmask (lua_State *L) { in lua_gethookmask()
79 LUA_API int lua_gethookcount (lua_State *L) { in lua_gethookcount()
84 LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { in lua_getstack()
177 static void collectvalidlines (lua_State *L, Closure *f) { in collectvalidlines()
581 void luaG_concaterror (lua_State *L, StkId p1, StkId p2) { in luaG_concaterror()
607 static void addinfo (lua_State *L, const char *msg) { in addinfo()
618 void luaG_errormsg (lua_State *L) { in luaG_errormsg()
[all …]

123