/external/lua/src/ |
D | lua.h | 56 typedef struct lua_State lua_State; typedef 105 typedef int (*lua_CFunction) (lua_State *L); 110 typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx); 116 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 118 typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud); 145 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 146 LUA_API void (lua_close) (lua_State *L); 147 LUA_API lua_State *(lua_newthread) (lua_State *L); 149 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); 152 LUA_API const lua_Number *(lua_version) (lua_State *L); [all …]
|
D | lauxlib.h | 39 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz); 43 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); 44 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); 45 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); 46 LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg); 47 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, 49 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, 51 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg); 52 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def); 54 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); [all …]
|
D | lcorolib.c | 21 static lua_State *getco (lua_State *L) { in getco() 22 lua_State *co = lua_tothread(L, 1); in getco() 28 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 57 static int luaB_coresume (lua_State *L) { in luaB_coresume() 58 lua_State *co = getco(L); in luaB_coresume() 74 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 75 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap() 89 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 90 lua_State *NL; in luaB_cocreate() 99 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() [all …]
|
D | lmathlib.c | 39 static int math_abs (lua_State *L) { in math_abs() 50 static int math_sin (lua_State *L) { in math_sin() 55 static int math_cos (lua_State *L) { in math_cos() 60 static int math_tan (lua_State *L) { in math_tan() 65 static int math_asin (lua_State *L) { in math_asin() 70 static int math_acos (lua_State *L) { in math_acos() 75 static int math_atan (lua_State *L) { in math_atan() 83 static int math_toint (lua_State *L) { in math_toint() 96 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint() 105 static int math_floor (lua_State *L) { in math_floor() [all …]
|
D | ldblib.c | 35 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack() 41 static int db_getregistry (lua_State *L) { in db_getregistry() 47 static int db_getmetatable (lua_State *L) { in db_getmetatable() 56 static int db_setmetatable (lua_State *L) { in db_setmetatable() 66 static int db_getuservalue (lua_State *L) { in db_getuservalue() 75 static int db_setuservalue (lua_State *L) { in db_setuservalue() 90 static lua_State *getthread (lua_State *L, int *arg) { in getthread() 107 static void settabss (lua_State *L, const char *k, const char *v) { in settabss() 112 static void settabsi (lua_State *L, const char *k, int v) { in settabsi() 117 static void settabsb (lua_State *L, const char *k, int v) { in settabsb() [all …]
|
D | lualib.h | 18 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_bit32) (lua_State *L); 42 LUAMOD_API int (luaopen_math) (lua_State *L); 45 LUAMOD_API int (luaopen_debug) (lua_State *L); [all …]
|
D | ldo.h | 37 typedef void (*Pfunc) (lua_State *L, void *ud); 39 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, 41 LUAI_FUNC void luaD_hook (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 void luaD_callnoyield (lua_State *L, StkId func, int nResults); 45 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 47 LUAI_FUNC int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, 49 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); 50 LUAI_FUNC void luaD_growstack (lua_State *L, int n); [all …]
|
D | lbaselib.c | 24 static int luaB_print (lua_State *L) { in luaB_print() 69 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 102 static int luaB_error (lua_State *L) { in luaB_error() 114 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 125 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 138 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 146 static int luaB_rawlen (lua_State *L) { in luaB_rawlen() 155 static int luaB_rawget (lua_State *L) { in luaB_rawget() 163 static int luaB_rawset (lua_State *L) { in luaB_rawset() 173 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage() [all …]
|
D | lapi.c | 60 static TValue *index2addr (lua_State *L, int idx) { in index2addr() 91 static void growstack (lua_State *L, void *ud) { in growstack() 97 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack() 118 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove() 134 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 144 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version() 160 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 167 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 172 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() 193 static void reverse (lua_State *L, StkId from, StkId to) { in reverse() [all …]
|
D | lauxlib.c | 46 static int findfield (lua_State *L, int objidx, int level) { in findfield() 73 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 94 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 110 static int lastlevel (lua_State *L) { in lastlevel() 125 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 164 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror() 182 static int typeerror (lua_State *L, int arg, const char *tname) { in typeerror() 196 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() 223 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
D | liolib.c | 150 static int io_type (lua_State *L) { in io_type() 164 static int f_tostring (lua_State *L) { in f_tostring() 174 static FILE *tofile (lua_State *L) { in tofile() 188 static LStream *newprefile (lua_State *L) { in newprefile() 201 static int aux_close (lua_State *L) { in aux_close() 209 static int f_close (lua_State *L) { in f_close() 215 static int io_close (lua_State *L) { in io_close() 222 static int f_gc (lua_State *L) { in f_gc() 233 static int io_fclose (lua_State *L) { in io_fclose() 240 static LStream *newfile (lua_State *L) { in newfile() [all …]
|
D | loadlib.c | 85 static void *lsys_load (lua_State *L, const char *path, int seeglb); 92 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym); 126 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 133 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 168 static void setprogdir (lua_State *L) { in setprogdir() 185 static void pusherror (lua_State *L) { in pusherror() 200 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 208 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 236 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 243 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() [all …]
|
D | lbitlib.c | 49 static lua_Unsigned andaux (lua_State *L) { in andaux() 58 static int b_and (lua_State *L) { in b_and() 65 static int b_test (lua_State *L) { in b_test() 72 static int b_or (lua_State *L) { in b_or() 82 static int b_xor (lua_State *L) { in b_xor() 92 static int b_not (lua_State *L) { in b_not() 99 static int b_shift (lua_State *L, lua_Unsigned r, lua_Integer i) { in b_shift() 116 static int b_lshift (lua_State *L) { in b_lshift() 121 static int b_rshift (lua_State *L) { in b_rshift() 126 static int b_arshift (lua_State *L) { in b_arshift() [all …]
|
D | ldebug.h | 21 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 23 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 25 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, 28 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, 30 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 32 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); 33 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, 35 LUAI_FUNC l_noret luaG_errormsg (lua_State *L); 36 LUAI_FUNC void luaG_traceexec (lua_State *L);
|
D | lua.c | 103 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 …]
|
D | loslib.c | 69 static time_t l_checktime (lua_State *L, int arg) { in l_checktime() 141 static int os_execute (lua_State *L) { in os_execute() 153 static int os_remove (lua_State *L) { in os_remove() 159 static int os_rename (lua_State *L) { in os_rename() 166 static int os_tmpname (lua_State *L) { in os_tmpname() 177 static int os_getenv (lua_State *L) { in os_getenv() 183 static int os_clock (lua_State *L) { in os_clock() 197 static void setfield (lua_State *L, const char *key, int value) { in setfield() 202 static void setboolfield (lua_State *L, const char *key, int value) { in setboolfield() 213 static void setallfields (lua_State *L, struct tm *stm) { in setallfields() [all …]
|
D | lstate.c | 56 lua_State l; 81 static unsigned int makeseed (lua_State *L) { in makeseed() 108 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI() 122 void luaE_freeCI (lua_State *L) { in luaE_freeCI() 137 void luaE_shrinkCI (lua_State *L) { in luaE_shrinkCI() 151 static void stack_init (lua_State *L1, lua_State *L) { in stack_init() 171 static void freestack (lua_State *L) { in freestack() 184 static void init_registry (lua_State *L, global_State *g) { in init_registry() 203 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen() 221 static void preinit_thread (lua_State *L, global_State *g) { in preinit_thread() [all …]
|
D | lvm.h | 96 LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2); 97 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 98 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 101 LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key, 103 LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key, 105 LUAI_FUNC void luaV_finishOp (lua_State *L); 106 LUAI_FUNC void luaV_execute (lua_State *L); 107 LUAI_FUNC void luaV_concat (lua_State *L, int total); 108 LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y); 109 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); [all …]
|
D | lgc.h | 134 LUAI_FUNC void luaC_fix (lua_State *L, GCObject *o); 135 LUAI_FUNC void luaC_freeallobjects (lua_State *L); 136 LUAI_FUNC void luaC_step (lua_State *L); 137 LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask); 138 LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); 139 LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz); 140 LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v); 141 LUAI_FUNC void luaC_barrierback_ (lua_State *L, Table *o); 142 LUAI_FUNC void luaC_upvalbarrier_ (lua_State *L, UpVal *uv); 143 LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt); [all …]
|
D | lfunc.h | 50 LUAI_FUNC Proto *luaF_newproto (lua_State *L); 51 LUAI_FUNC CClosure *luaF_newCclosure (lua_State *L, int nelems); 52 LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nelems); 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_close (lua_State *L, StkId level); 56 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
|
D | lstring.h | 39 LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 41 LUAI_FUNC void luaS_init (lua_State *L); 42 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); 43 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); 44 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 45 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); 46 LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
|
D | ltable.h | 44 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, 49 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 50 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 51 LUAI_FUNC Table *luaH_new (lua_State *L); 52 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, 54 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize); 55 LUAI_FUNC void luaH_free (lua_State *L, Table *t); 56 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
|
/external/skqp/src/utils/ |
D | SkLua.cpp | 75 template <typename T, typename... Args> T* push_new(lua_State* L, Args&&... args) { in DEF_MTNAME() 83 template <typename T> void push_obj(lua_State* L, const T& obj) { in push_obj() 89 template <typename T> T* push_ptr(lua_State* L, T* ptr) { in push_ptr() 96 template <typename T> T* push_ref(lua_State* L, T* ref) { in push_ref() 103 template <typename T> void push_ref(lua_State* L, sk_sp<T> sp) { in push_ref() 109 template <typename T> T* get_ref(lua_State* L, int index) { in get_ref() 113 template <typename T> T* get_obj(lua_State* L, int index) { in get_obj() 117 static bool lua2bool(lua_State* L, int index) { in lua2bool() 129 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {} in SkLua() 161 static void setfield_bool_if(lua_State* L, const char key[], bool pred) { in setfield_bool_if() [all …]
|
/external/skia/src/utils/ |
D | SkLua.cpp | 75 template <typename T, typename... Args> T* push_new(lua_State* L, Args&&... args) { in DEF_MTNAME() 83 template <typename T> void push_obj(lua_State* L, const T& obj) { in push_obj() 89 template <typename T> T* push_ptr(lua_State* L, T* ptr) { in push_ptr() 96 template <typename T> T* push_ref(lua_State* L, T* ref) { in push_ref() 103 template <typename T> void push_ref(lua_State* L, sk_sp<T> sp) { in push_ref() 109 template <typename T> T* get_ref(lua_State* L, int index) { in get_ref() 113 template <typename T> T* get_obj(lua_State* L, int index) { in get_obj() 117 static bool lua2bool(lua_State* L, int index) { in lua2bool() 129 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {} in SkLua() 161 static void setfield_bool_if(lua_State* L, const char key[], bool pred) { in setfield_bool_if() [all …]
|
/external/libtextclassifier/utils/ |
D | lua-utils.h | 56 T FromUpValue(const int index, lua_State *state) { in FromUpValue() 66 static int NextCallback(lua_State *state); 67 static int LengthCallback(lua_State *state); 68 static int ItemCallback(lua_State *state); 69 static int IteritemsCallback(lua_State *state); 72 virtual int Next(lua_State *state) const = 0; 75 virtual int Length(lua_State *state) const = 0; 78 virtual int Item(lua_State *state) const = 0; 81 virtual int Iteritems(lua_State *state) const = 0; 90 void NewIterator(StringPiece name, const T *items, lua_State *state) const { in NewIterator() [all …]
|