/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lbaselib.c | 29 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 70 static int luaB_error (lua_State *L) { in luaB_error() 82 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 93 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 106 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 114 static int luaB_rawlen (lua_State *L) { in luaB_rawlen() 123 static int luaB_rawget (lua_State *L) { in luaB_rawget() 131 static int luaB_rawset (lua_State *L) { in luaB_rawset() 141 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage() 170 static int luaB_type (lua_State *L) { in luaB_type() [all …]
|
H A D | lapi.c | 45 #define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index") argument 47 #define api_checkstackindex(L, i, o) \ argument 51 static TValue *index2addr (lua_State *L, int idx) { in index2addr() 82 static void growstack (lua_State *L, void *ud) { in growstack() 88 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack() 123 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 133 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version() 149 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 156 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 161 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() [all …]
|
H A D | lauxlib.c | 36 static int findfield (lua_State *L, int objidx, int level) { in findfield() 60 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 76 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 94 static int countlevels (lua_State *L) { in countlevels() 109 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 146 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror() 164 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() 171 static void tag_error (lua_State *L, int narg, int tag) { in tag_error() 176 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() 189 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
H A D | ltablib.c | 17 #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), luaL_len(L, n)) argument 22 static int maxn (lua_State *L) { in maxn() 39 static int tinsert (lua_State *L) { in tinsert() 66 static int tremove (lua_State *L) { in tremove() 82 static void addfield (lua_State *L, luaL_Buffer *b, int i) { in addfield() 91 static int tconcat (lua_State *L) { in tconcat() 117 static int pack (lua_State *L) { in pack() 134 static int unpack (lua_State *L) { in unpack() 163 static void set2 (lua_State *L, int i, int j) { in set2() 168 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() [all …]
|
H A D | ldo.c | 98 #define LUAI_THROW(L,c) longjmp(&(c)->b) argument 99 #define LUAI_TRY(L,c,a) if (setjmp(&(c)->b) == 0) { a } argument 113 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument 114 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument 122 #define LUAI_THROW(L,c) throw(c) argument 123 #define LUAI_TRY(L,c,a) \ argument 129 #define LUAI_THROW(L,c) _longjmp((c)->b, 1) argument 130 #define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } argument 135 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument 136 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument [all …]
|
H A D | lcorolib.c | 17 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 46 static int luaB_coresume (lua_State *L) { in luaB_coresume() 64 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 79 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 89 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() 96 static int luaB_yield (lua_State *L) { in luaB_yield() 101 static int luaB_costatus (lua_State *L) { in luaB_costatus() 129 static int luaB_corunning (lua_State *L) { in luaB_corunning() 148 LUAMOD_API int luaopen_coroutine (lua_State *L) { in luaopen_coroutine()
|
H A D | lstate.c | 73 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) argument 85 static unsigned int makeseed (lua_State *L) { in makeseed() 108 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI() 118 void luaE_freeCI (lua_State *L) { in luaE_freeCI() 129 static void stack_init (lua_State *L1, lua_State *L) { in stack_init() 149 static void freestack (lua_State *L) { in freestack() 161 static void init_registry (lua_State *L, global_State *g) { in init_registry() 179 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen() 200 static void preinit_state (lua_State *L, global_State *g) { in preinit_state() 220 static void close_state (lua_State *L) { in close_state() [all …]
|
H A D | lmem.h | 22 #define luaM_reallocv(L,b,on,n,e) \ argument 27 #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) argument 28 #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) argument 29 #define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) argument 31 #define luaM_malloc(L,s) luaM_realloc_(L, NULL, 0, (s)) argument 32 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) argument 33 #define luaM_newvector(L,n,t) \ argument 36 #define luaM_newobject(L,tag,s) luaM_realloc_(L, NULL, tag, (s)) argument 38 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument 42 #define luaM_reallocvector(L, v,oldn,n,t) \ argument
|
/freebsd/stand/liblua/ |
H A D | lutils.c | 41 lua_command(lua_State *L) in lua_command() 62 lua_has_command(lua_State *L) in lua_has_command() 78 lua_has_feature(lua_State *L) in lua_has_feature() 97 lua_perform(lua_State *L) in lua_perform() 113 lua_exit(lua_State *L) in lua_exit() 120 lua_command_error(lua_State *L) in lua_command_error() 132 lua_interpret(lua_State *L) in lua_interpret() 147 lua_parse(lua_State *L) in lua_parse() 165 lua_getchar(lua_State *L) in lua_getchar() 173 lua_ischar(lua_State *L) in lua_ischar() [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lapi.c | 46 #define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue) argument 60 static TValue *index2value (lua_State *L, int idx) { in index2value() 95 l_sinline StkId index2stack (lua_State *L, int idx) { in index2stack() 111 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack() 144 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 154 LUA_API lua_Number lua_version (lua_State *L) { in lua_version() 169 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 176 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 181 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() 209 LUA_API void lua_closeslot (lua_State *L, int idx) { in lua_closeslot() [all …]
|
H A D | lbaselib.c | 24 static int luaB_print (lua_State *L) { in luaB_print() 45 static int luaB_warn (lua_State *L) { in luaB_warn() 81 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 114 static int luaB_error (lua_State *L) { in luaB_error() 126 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 137 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 149 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 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() [all …]
|
H A 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() 65 static int db_getuservalue (lua_State *L) { in db_getuservalue() 77 static int db_setuservalue (lua_State *L) { in db_setuservalue() 94 static lua_State *getthread (lua_State *L, int *arg) { in getthread() 111 static void settabss (lua_State *L, const char *k, const char *v) { in settabss() 116 static void settabsi (lua_State *L, const char *k, int v) { in settabsi() 121 static void settabsb (lua_State *L, const char *k, int v) { in settabsb() [all …]
|
H A D | lstate.c | 51 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) argument 71 static unsigned int luai_makeseed (lua_State *L) { in luai_makeseed() 99 LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit) { in lua_setcstacklimit() 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() 173 LUAI_FUNC void luaE_incCstack (lua_State *L) { in luaE_incCstack() 180 static void stack_init (lua_State *L1, lua_State *L) { in stack_init() 203 static void freestack (lua_State *L) { in freestack() [all …]
|
H A D | liolib.c | 59 #define l_popen(L,c,m) (fflush(NULL), popen(c,m)) argument 60 #define l_pclose(L,file) (pclose(file)) argument 64 #define l_popen(L,c,m) (_popen(c,m)) argument 65 #define l_pclose(L,file) (_pclose(file)) argument 76 #define l_popen(L,c,m) \ argument 80 #define l_pclose(L,file) ((void)L, (void)file, -1) argument 158 #define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) argument 163 static int io_type (lua_State *L) { in io_type() 177 static int f_tostring (lua_State *L) { in f_tostring() 187 static FILE *tofile (lua_State *L) { in tofile() [all …]
|
H A D | ldo.c | 58 #define LUAI_THROW(L,c) throw(c) argument 59 #define LUAI_TRY(L,c,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 73 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument 74 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument 91 void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) { in luaD_seterrorobj() 115 l_noret luaD_throw (lua_State *L, int errcode) { in luaD_throw() 138 int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { in luaD_rawrunprotected() 165 static void relstack (lua_State *L) { in relstack() [all …]
|
H A D | loadlib.c | 67 #define setprogdir(L) ((void)0) argument 133 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 141 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 177 static void setprogdir (lua_State *L) { in setprogdir() 194 static void pusherror (lua_State *L) { in pusherror() 209 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 217 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 245 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 252 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 285 static int noenv (lua_State *L) { in noenv() [all …]
|
H A D | lua.c | 63 static void lstop (lua_State *L, lua_Debug *ar) { in lstop() 121 static int report (lua_State *L, int status) { in report() 134 static int msghandler (lua_State *L) { in msghandler() 153 static int docall (lua_State *L, int narg, int nres) { in docall() 183 static void createargtable (lua_State *L, char **argv, int argc, int script) { in createargtable() 195 static int dochunk (lua_State *L, int status) { in dochunk() 201 static int dofile (lua_State *L, const char *name) { in dofile() 206 static int dostring (lua_State *L, const char *s, const char *name) { in dostring() 214 static int dolibrary (lua_State *L, char *globname) { in dolibrary() 235 static int pushargs (lua_State *L) { in pushargs() [all …]
|
H A D | lcorolib.c | 21 static lua_State *getco (lua_State *L) { in getco() 32 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 56 static int luaB_coresume (lua_State *L) { in luaB_coresume() 73 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 95 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 105 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() 112 static int luaB_yield (lua_State *L) { in luaB_yield() 127 static int auxstatus (lua_State *L, lua_State *co) { in auxstatus() 149 static int luaB_costatus (lua_State *L) { in luaB_costatus() 156 static int luaB_yieldable (lua_State *L) { in luaB_yieldable() [all …]
|
H A D | lmathlib.c | 29 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() 86 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint() 95 static int math_floor (lua_State *L) { in math_floor() [all …]
|
H A D | lauxlib.c | 52 static int findfield (lua_State *L, int objidx, int level) { in findfield() 79 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 100 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 116 static int lastlevel (lua_State *L) { in lastlevel() 131 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 175 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror() 193 LUALIB_API int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror() 207 static void tag_error (lua_State *L, int arg, int tag) { in tag_error() 216 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() 234 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
H A D | loslib.c | 59 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) argument 60 #define l_gettime(L,arg) luaL_checkinteger(L, arg) argument 65 #define l_pushtime(L,t) lua_pushnumber(L,(lua_Number)(t)) argument 66 #define l_gettime(L,arg) luaL_checknumber(L, arg) argument 142 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() [all …]
|
H A D | lmem.h | 17 #define luaM_error(L) luaD_throw(L, LUA_ERRMEM) argument 34 #define luaM_checksize(L,n,e) \ argument 52 #define luaM_reallocvchar(L,b,on,n) \ argument 55 #define luaM_freemem(L, b, s) luaM_free_(L, (b), (s)) argument 56 #define luaM_free(L, b) luaM_free_(L, (b), sizeof(*(b))) argument 57 #define luaM_freearray(L, b, n) luaM_free_(L, (b), (n)*sizeof(*(b))) argument 59 #define luaM_new(L,t) cast(t*, luaM_malloc_(L, sizeof(t), 0)) argument 60 #define luaM_newvector(L,n,t) cast(t*, luaM_malloc_(L, (n)*sizeof(t), 0)) argument 61 #define luaM_newvectorchecked(L,n,t) \ argument 64 #define luaM_newobject(L,tag,s) luaM_malloc_(L, (s), tag) argument [all …]
|
/freebsd/libexec/flua/modules/ |
H A D | lposix.c | 27 lua__exit(lua_State * L) lua__exit() argument 39 lua_basename(lua_State * L) lua_basename() argument 61 lua_chmod(lua_State * L) lua_chmod() argument 83 lua_chown(lua_State * L) lua_chown() argument 139 lua_pclose(lua_State * L) lua_pclose() argument 168 lua_uname(lua_State * L) lua_uname() argument 201 lua_dirname(lua_State * L) lua_dirname() argument 224 lua_fork(lua_State * L) lua_fork() argument 245 lua_getpid(lua_State * L) lua_getpid() argument 256 lua_pipe(lua_State * L) lua_pipe() argument 277 lua_read(lua_State * L) lua_read() argument 324 lua_realpath(lua_State * L) lua_realpath() argument 348 lua_wait(lua_State * L) lua_wait() argument 398 lua_write(lua_State * L) lua_write() argument 496 luaopen_posix_libgen(lua_State * L) luaopen_posix_libgen() argument 503 luaopen_posix_stdlib(lua_State * L) luaopen_posix_stdlib() argument 510 luaopen_posix_sys_stat(lua_State * L) luaopen_posix_sys_stat() argument 517 luaopen_posix_sys_wait(lua_State * L) luaopen_posix_sys_wait() argument 521 lua_pushflag(L,flag) luaopen_posix_sys_wait() argument 543 luaopen_posix_sys_utsname(lua_State * L) luaopen_posix_sys_utsname() argument 550 luaopen_posix_unistd(lua_State * L) luaopen_posix_unistd() argument [all...] |
/freebsd/contrib/libucl/lua/ |
H A D | lua_ucl.c | 99 ucl_object_lua_push_element (lua_State *L, const char *key, in ucl_object_lua_push_element() 150 ucl_object_lua_push_object (lua_State *L, const ucl_object_t *obj, in ucl_object_lua_push_object() 181 ucl_object_lua_push_array (lua_State *L, const ucl_object_t *obj, int flags) in ucl_object_lua_push_array() 228 ucl_object_lua_push_scalar (lua_State *L, const ucl_object_t *obj, in ucl_object_lua_push_scalar() 277 ucl_object_push_lua_common (lua_State *L, const ucl_object_t *obj, int flags) in ucl_object_push_lua_common() 305 ucl_object_push_lua (lua_State *L, const ucl_object_t *obj, bool allow_array) in ucl_object_push_lua() 312 ucl_object_push_lua_filter_nil (lua_State *L, const ucl_object_t *obj, bool allow_array) in ucl_object_push_lua_filter_nil() 326 ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags) in ucl_object_lua_fromtable() 466 ucl_object_lua_fromelt (lua_State *L, int idx, ucl_string_flags_t flags) in ucl_object_lua_fromelt() 551 ucl_object_lua_import (lua_State *L, int idx) in ucl_object_lua_import() [all …]
|
/freebsd/lib/clang/liblldb/ |
H A D | LLDBWrapLua.cpp | 843 #define lua_pushrotable(L,p)\ argument 937 # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) argument 942 # define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1) argument 947 #define lua_rawsetp(L,index,ptr)\ argument 952 #define lua_rawgetp(L,index,ptr)\ argument 966 SWIG_Lua_pusherrstring (lua_State *L, const char *str) in SWIG_Lua_pusherrstring() 977 SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...) in SWIG_Lua_pushferrstring() 1076 #define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, … argument 1077 #define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) argument 1078 #define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, a… argument [all …]
|