| /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 | 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 | 58 #define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m)) argument 59 #define lua_pclose(L,file) ((void)L, pclose(file)) argument 63 #define lua_popen(L,c,m) ((void)L, _popen(c,m)) argument 64 #define lua_pclose(L,file) ((void)L, _pclose(file)) argument 69 #define lua_popen(L,c,m) ((void)((void)c, m), \ argument 71 #define lua_pclose(L,file) ((void)((void)L, file), -1) argument 125 #define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) argument 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() [all …]
|
| D | lapi.c | 49 #define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index") argument 51 #define api_checkstackindex(L, i, o) \ argument 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() 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() [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 | 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 | 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 | 105 #define setprogdir(L) ((void)0) argument 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() 251 static void *ll_checkclib (lua_State *L, const char *path) { in ll_checkclib() [all …]
|
| D | ltablib.c | 19 #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), luaL_len(L, n)) argument 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() [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() 67 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 82 static int luaB_cocreate (lua_State *L) { 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() 132 static int luaB_corunning (lua_State *L) { in luaB_corunning() 151 LUAMOD_API int luaopen_coroutine (lua_State *L) { in luaopen_coroutine()
|
| 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 | ldo.c | 53 #define LUAI_THROW(L,c) throw(c) argument 54 #define LUAI_TRY(L,c,a) \ argument 60 #define LUAI_THROW(L,c) _longjmp((c)->b, 1) argument 61 #define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } argument 66 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument 67 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument 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() [all …]
|
| D | lua.c | 69 #define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) argument 70 #define lua_saveline(L,idx) \ argument 73 #define lua_freeline(L,b) ((void)L, free(b)) argument 77 #define lua_readline(L,b,p) \ argument 80 #define lua_saveline(L,idx) { (void)L; (void)idx; } argument 81 #define lua_freeline(L,b) { (void)L; (void)b; } argument 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() [all …]
|
| D | lmem.h | 24 #define luaM_reallocv(L,b,on,n,e) \ argument 29 #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) argument 30 #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) argument 31 #define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) argument 33 #define luaM_malloc(L,s) luaM_realloc_(L, NULL, 0, (s)) argument 34 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) argument 35 #define luaM_newvector(L,n,t) \ argument 38 #define luaM_newobject(L,tag,s) luaM_realloc_(L, NULL, tag, (s)) argument 40 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument 44 #define luaM_reallocvector(L, v,oldn,n,t) \ argument
|
| D | lstate.c | 77 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) argument 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 | lfunc.c | 23 Closure *luaF_newCclosure (lua_State *L, int n) { in luaF_newCclosure() 30 Closure *luaF_newLclosure (lua_State *L, int n) { in luaF_newLclosure() 39 UpVal *luaF_newupval (lua_State *L) { in luaF_newupval() 47 UpVal *luaF_findupval (lua_State *L, StkId level) { in luaF_findupval() 82 void luaF_freeupval (lua_State *L, UpVal *uv) { in luaF_freeupval() 89 void luaF_close (lua_State *L, StkId level) { in luaF_close() 110 Proto *luaF_newproto (lua_State *L) { in luaF_newproto() 135 void luaF_freeproto (lua_State *L, Proto *f) { in luaF_freeproto()
|
| D | ldo.h | 16 #define luaD_checkstack(L,n) if (L->stack_last - L->top <= (n)) \ argument 20 #define incr_top(L) {L->top++; luaD_checkstack(L,0);} argument 22 #define savestack(L,p) ((char *)(p) - (char *)L->stack) argument 23 #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) argument
|
| D | lapi.h | 14 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ argument 17 #define adjustresults(L,nres) \ argument 20 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ argument
|
| D | ldebug.c | 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() 215 static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, in auxgetinfo() [all …]
|
| D | llimits.h | 78 #define luai_apicheck(L,e) assert(e) argument 80 #define luai_apicheck(L,e) lua_assert(e) argument 155 #define lua_lock(L) ((void) 0) argument 156 #define lua_unlock(L) ((void) 0) argument 160 #define luai_threadyield(L) {lua_unlock(L); lua_lock(L);} argument 170 #define luai_userstateopen(L) ((void)L) argument 174 #define luai_userstateclose(L) ((void)L) argument 178 #define luai_userstatethread(L,L1) ((void)L) argument 182 #define luai_userstatefree(L,L1) ((void)L) argument 186 #define luai_userstateresume(L,n) ((void)L) argument [all …]
|
| D | lvm.c | 47 int luaV_tostring (lua_State *L, StkId obj) { in luaV_tostring() 60 static void traceexec (lua_State *L) { in traceexec() 93 static void callTM (lua_State *L, const TValue *f, const TValue *p1, in callTM() 110 void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_gettable() 136 void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_settable() 175 static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, in call_binTM() 186 static const TValue *get_equalTM (lua_State *L, Table *mt1, Table *mt2, in get_equalTM() 200 static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2, in call_orderTM() 231 int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) { in luaV_lessthan() 243 int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) { in luaV_lessequal() [all …]
|
| D | lstring.c | 64 void luaS_resize (lua_State *L, int newsize) { in luaS_resize() 98 static TString *createstrobj (lua_State *L, const char *str, size_t l, in createstrobj() 116 static TString *newshrstr (lua_State *L, const char *str, size_t l, in newshrstr() 133 static TString *internshrstr (lua_State *L, const char *str, size_t l) { in internshrstr() 156 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr() 170 TString *luaS_new (lua_State *L, const char *str) { in luaS_new() 175 Udata *luaS_newudata (lua_State *L, size_t s, Table *e) { in luaS_newudata()
|
| D | lgc.c | 135 void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) { in luaC_barrier_() 155 void luaC_barrierback_ (lua_State *L, GCObject *o) { in luaC_barrierback_() 172 LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c) { in luaC_barrierproto_() 212 GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, GCObject **list, in luaC_newobj() 663 static void freeobj (lua_State *L, GCObject *o) { in freeobj() 690 #define sweepwholelist(L,p) sweeplist(L,p,MAX_LUMEM) argument 698 static void sweepthread (lua_State *L, lua_State *L1) { in sweepthread() 719 static GCObject **sweeplist (lua_State *L, GCObject **p, lu_mem count) { in sweeplist() 758 static GCObject **sweeptolive (lua_State *L, GCObject **p, int *n) { in sweeptolive() 778 static void checkSizes (lua_State *L) { in checkSizes() [all …]
|
| /device/linaro/bootloader/edk2/StdLib/Include/Lua/ |
| D | lauxlib.h | 30 #define luaL_checkversion(L) luaL_checkversion_(L, LUA_VERSION_NUM) argument 78 #define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL) argument 108 #define luaL_newlibtable(L,l) \ argument 111 #define luaL_newlib(L,l) (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0)) argument 113 #define luaL_argcheck(L, cond,numarg,extramsg) \ argument 115 #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) argument 116 #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) argument 117 #define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) argument 118 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) argument 119 #define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n))) argument [all …]
|
| D | luaconf.h | 265 #define lua_cpcall(L,f,u) \ argument 293 #define lua_strlen(L,i) lua_rawlen(L, (i)) argument 295 #define lua_objlen(L,i) lua_rawlen(L, (i)) argument 297 #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) argument 298 #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) argument 435 #define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b)) argument 436 #define luai_numpow(L,a,b) (l_mathop(pow)(a,b)) argument 441 #define luai_numadd(L,a,b) ((a)+(b)) argument 442 #define luai_numsub(L,a,b) ((a)-(b)) argument 443 #define luai_nummul(L,a,b) ((a)*(b)) argument [all …]
|