/device/linaro/bootloader/edk2/StdLib/Include/Lua/ |
D | lua.h | 54 typedef struct lua_State lua_State; typedef 56 typedef int (*lua_CFunction) (lua_State *L); 62 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 64 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 …]
|
D | lauxlib.h | 29 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver); 32 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); 33 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); 34 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); 35 LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg); 36 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg, 38 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg, 40 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg); 41 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def); 43 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); [all …]
|
D | lualib.h | 15 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 …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
D | lmathlib.c | 26 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 …]
|
D | ldo.h | 27 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 …]
|
D | lcorolib.c | 20 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 49 static int luaB_coresume (lua_State *L) { in luaB_coresume() 50 lua_State *co = lua_tothread(L, 1); in luaB_coresume() 67 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 68 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap() 82 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 83 lua_State *NL; in luaB_cocreate() 92 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() 99 static int luaB_yield (lua_State *L) { in luaB_yield() 104 static int luaB_costatus (lua_State *L) { in luaB_costatus() [all …]
|
D | ldblib.c | 25 static int db_getregistry (lua_State *L) { in db_getregistry() 31 static int db_getmetatable (lua_State *L) { in db_getmetatable() 40 static int db_setmetatable (lua_State *L) { in db_setmetatable() 50 static int db_getuservalue (lua_State *L) { in db_getuservalue() 59 static int db_setuservalue (lua_State *L) { in db_setuservalue() 71 static void settabss (lua_State *L, const char *i, const char *v) { in settabss() 77 static void settabsi (lua_State *L, const char *i, int v) { in settabsi() 83 static void settabsb (lua_State *L, const char *i, int v) { in settabsb() 89 static lua_State *getthread (lua_State *L, int *arg) { in getthread() 101 static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { in treatstackoption() [all …]
|
D | lvm.h | 26 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 …]
|
D | lfunc.h | 21 LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems); 23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems); 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_freeupval (lua_State *L, UpVal *uv);
|
D | lbitlib.c | 36 static b_uint andaux (lua_State *L) { in andaux() 45 static int b_and (lua_State *L) { in b_and() 52 static int b_test (lua_State *L) { in b_test() 59 static int b_or (lua_State *L) { in b_or() 69 static int b_xor (lua_State *L) { in b_xor() 79 static int b_not (lua_State *L) { in b_not() 86 static int b_shift (lua_State *L, b_uint r, int i) { in b_shift() 103 static int b_lshift (lua_State *L) { in b_lshift() 108 static int b_rshift (lua_State *L) { in b_rshift() 113 static int b_arshift (lua_State *L) { in b_arshift() [all …]
|
D | lbaselib.c | 23 static int luaB_print (lua_State *L) { in luaB_print() 48 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 89 static int luaB_error (lua_State *L) { in luaB_error() 101 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 112 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 125 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 133 static int luaB_rawlen (lua_State *L) { in luaB_rawlen() 142 static int luaB_rawget (lua_State *L) { in luaB_rawget() 150 static int luaB_rawset (lua_State *L) { in luaB_rawset() 160 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage() [all …]
|
D | liolib.c | 130 static int io_type (lua_State *L) { in io_type() 144 static int f_tostring (lua_State *L) { in f_tostring() 154 static FILE *tofile (lua_State *L) { in tofile() 168 static LStream *newprefile (lua_State *L) { in newprefile() 176 static int aux_close (lua_State *L) { in aux_close() 184 static int io_close (lua_State *L) { in io_close() 192 static int f_gc (lua_State *L) { in f_gc() 203 static int io_fclose (lua_State *L) { in io_fclose() 210 static LStream *newfile (lua_State *L) { in newfile() 218 static void opencheck (lua_State *L, const char *fname, const char *mode) { in opencheck() [all …]
|
D | lauxlib.c | 43 static int findfield (lua_State *L, int objidx, int level) { in findfield() 67 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 83 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 101 static int countlevels (lua_State *L) { in countlevels() 116 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 153 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror() 171 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() 178 static void tag_error (lua_State *L, int narg, int tag) { in tag_error() 183 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() 196 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
D | loadlib.c | 112 static void *ll_load (lua_State *L, const char *path, int seeglb); 113 static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym); 134 static void *ll_load (lua_State *L, const char *path, int seeglb) { in ll_load() 141 static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { in ll_sym() 168 static void setprogdir (lua_State *L) { in setprogdir() 183 static void pusherror (lua_State *L) { in pusherror() 198 static void *ll_load (lua_State *L, const char *path, int seeglb) { in ll_load() 206 static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { in ll_sym() 234 static void *ll_load (lua_State *L, const char *path, int seeglb) { in ll_load() 241 static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { in ll_sym() [all …]
|
D | lapi.c | 55 static TValue *index2addr (lua_State *L, int idx) { in index2addr() 86 static void growstack (lua_State *L, void *ud) { in growstack() 92 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack() 112 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove() 127 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 137 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version() 153 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 160 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 165 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() 182 LUA_API void lua_remove (lua_State *L, int idx) { in lua_remove() [all …]
|
D | ltable.h | 26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 31 LUAI_FUNC Table *luaH_new (lua_State *L); 32 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); 33 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 34 LUAI_FUNC void luaH_free (lua_State *L, Table *t); 35 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
|
D | loslib.c | 80 static int os_execute (lua_State *L) { in os_execute() 92 static int os_remove (lua_State *L) { in os_remove() 98 static int os_rename (lua_State *L) { in os_rename() 105 static int os_tmpname (lua_State *L) { in os_tmpname() 116 static int os_getenv (lua_State *L) { in os_getenv() 122 static int os_clock (lua_State *L) { in os_clock() 136 static void setfield (lua_State *L, const char *key, int value) { in setfield() 141 static void setboolfield (lua_State *L, const char *key, int value) { in setboolfield() 148 static int getboolfield (lua_State *L, const char *key) { in getboolfield() 157 static int getfield (lua_State *L, const char *key, int d) { in getfield() [all …]
|
D | ldebug.h | 24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 26 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2); 27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, 29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 31 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); 32 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
|
D | lstate.c | 63 lua_State l; 89 static unsigned int makeseed (lua_State *L) { in makeseed() 112 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI() 122 void luaE_freeCI (lua_State *L) { in luaE_freeCI() 133 static void stack_init (lua_State *L1, lua_State *L) { in stack_init() 153 static void freestack (lua_State *L) { in freestack() 165 static void init_registry (lua_State *L, global_State *g) { in init_registry() 183 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen() 204 static void preinit_state (lua_State *L, global_State *g) { in preinit_state() 223 static void close_state (lua_State *L) { in close_state() [all …]
|
D | lgc.h | 143 LUAI_FUNC void luaC_freeallobjects (lua_State *L); 144 LUAI_FUNC void luaC_step (lua_State *L); 145 LUAI_FUNC void luaC_forcestep (lua_State *L); 146 LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask); 147 LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); 148 LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, 150 LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v); 151 LUAI_FUNC void luaC_barrierback_ (lua_State *L, GCObject *o); 152 LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c); 153 LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt); [all …]
|
D | lua.c | 88 static lua_State *globalL = NULL; 94 static void lstop (lua_State *L, lua_Debug *ar) { in lstop() 135 static int report (lua_State *L, int status) { in report() 149 static void finalreport (lua_State *L, int status) { in finalreport() 160 static int traceback (lua_State *L) { in traceback() 172 static int docall (lua_State *L, int narg, int nres) { in docall() 192 static int getargs (lua_State *L, char **argv, int n) { in getargs() 210 static int dofile (lua_State *L, const char *name) { in dofile() 217 static int dostring (lua_State *L, const char *s, const char *name) { in dostring() 224 static int dolibrary (lua_State *L, const char *name) { in dolibrary() [all …]
|
D | ltablib.c | 24 static int maxn (lua_State *L) { in maxn() 41 static int tinsert (lua_State *L) { in tinsert() 68 static int tremove (lua_State *L) { in tremove() 84 static void addfield (lua_State *L, luaL_Buffer *b, int i) { in addfield() 93 static int tconcat (lua_State *L) { in tconcat() 119 static int pack (lua_State *L) { in pack() 136 static int unpack (lua_State *L) { in unpack() 164 static void set2 (lua_State *L, int i, int j) { in set2() 169 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() 184 static void auxsort (lua_State *L, int l, int u) { in auxsort() [all …]
|
D | lstring.h | 40 LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 41 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 42 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 43 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
|
D | ldebug.c | 36 static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name); 53 LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { in lua_sethook() 68 LUA_API lua_Hook lua_gethook (lua_State *L) { in lua_gethook() 73 LUA_API int lua_gethookmask (lua_State *L) { in lua_gethookmask() 78 LUA_API int lua_gethookcount (lua_State *L) { in lua_gethookcount() 83 LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { in lua_getstack() 118 static const char *findlocal (lua_State *L, CallInfo *ci, int n, in findlocal() 144 LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { in lua_getlocal() 166 LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { in lua_setlocal() 196 static void collectvalidlines (lua_State *L, Closure *f) { in collectvalidlines() [all …]
|
D | ldo.c | 84 static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { in seterrorobj() 103 l_noret luaD_throw (lua_State *L, int errcode) { in luaD_throw() 125 int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { in luaD_rawrunprotected() 142 static void correctstack (lua_State *L, TValue *oldstack) { in correctstack() 161 void luaD_reallocstack (lua_State *L, int newsize) { in luaD_reallocstack() 175 void luaD_growstack (lua_State *L, int n) { in luaD_growstack() 194 static int stackinuse (lua_State *L) { in stackinuse() 205 void luaD_shrinkstack (lua_State *L) { in luaD_shrinkstack() 217 void luaD_hook (lua_State *L, int event, int line) { in luaD_hook() 244 static void callhook (lua_State *L, CallInfo *ci) { in callhook() [all …]
|