Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
Go to the source code of this file.
Data Structures | |
struct | LoadF |
struct | LoadS |
Macros | |
#define | lauxlib_c |
#define | LUA_LIB |
#define | FREELIST_REF 0 /* free list of references */ |
#define | abs_index(L, i) |
#define | bufflen(B) ((B)->p - (B)->buffer) |
#define | bufffree(B) ((size_t)(LUAL_BUFFERSIZE - bufflen(B))) |
#define | LIMIT (LUA_MINSTACK/2) |
Typedefs | |
typedef struct LoadF | LoadF |
typedef struct LoadS | LoadS |
Functions | |
LUALIB_API int | luaL_argerror (lua_State *L, int narg, const char *extramsg) |
LUALIB_API int | luaL_typerror (lua_State *L, int narg, const char *tname) |
static void | tag_error (lua_State *L, int narg, int tag) |
LUALIB_API void | luaL_where (lua_State *L, int level) |
LUALIB_API int | luaL_error (lua_State *L, const char *fmt,...) |
LUALIB_API int | luaL_checkoption (lua_State *L, int narg, const char *def, const char *const lst[]) |
LUALIB_API int | luaL_newmetatable (lua_State *L, const char *tname) |
LUALIB_API void * | luaL_checkudata (lua_State *L, int ud, const char *tname) |
LUALIB_API void | luaL_checkstack (lua_State *L, int space, const char *mes) |
LUALIB_API void | luaL_checktype (lua_State *L, int narg, int t) |
LUALIB_API void | luaL_checkany (lua_State *L, int narg) |
LUALIB_API const char * | luaL_checklstring (lua_State *L, int narg, size_t *len) |
LUALIB_API const char * | luaL_optlstring (lua_State *L, int narg, const char *def, size_t *len) |
LUALIB_API lua_Number | luaL_checknumber (lua_State *L, int narg) |
LUALIB_API lua_Number | luaL_optnumber (lua_State *L, int narg, lua_Number def) |
LUALIB_API lua_Integer | luaL_checkinteger (lua_State *L, int narg) |
LUALIB_API lua_Integer | luaL_optinteger (lua_State *L, int narg, lua_Integer def) |
LUALIB_API int | luaL_getmetafield (lua_State *L, int obj, const char *event) |
LUALIB_API int | luaL_callmeta (lua_State *L, int obj, const char *event) |
LUALIB_API void | luaL_register (lua_State *L, const char *libname, const luaL_Reg *l) |
static int | libsize (const luaL_Reg *l) |
LUALIB_API void | luaI_openlib (lua_State *L, const char *libname, const luaL_Reg *l, int nup) |
LUALIB_API const char * | luaL_gsub (lua_State *L, const char *s, const char *p, const char *r) |
LUALIB_API const char * | luaL_findtable (lua_State *L, int idx, const char *fname, int szhint) |
static int | emptybuffer (luaL_Buffer *B) |
static void | adjuststack (luaL_Buffer *B) |
LUALIB_API char * | luaL_prepbuffer (luaL_Buffer *B) |
LUALIB_API void | luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) |
LUALIB_API void | luaL_addstring (luaL_Buffer *B, const char *s) |
LUALIB_API void | luaL_pushresult (luaL_Buffer *B) |
LUALIB_API void | luaL_addvalue (luaL_Buffer *B) |
LUALIB_API void | luaL_buffinit (lua_State *L, luaL_Buffer *B) |
LUALIB_API int | luaL_ref (lua_State *L, int t) |
LUALIB_API void | luaL_unref (lua_State *L, int t, int ref) |
static const char * | getF (lua_State *L, void *ud, size_t *size) |
static int | errfile (lua_State *L, const char *what, int fnameindex) |
LUALIB_API int | luaL_loadfile (lua_State *L, const char *filename) |
static const char * | getS (lua_State *L, void *ud, size_t *size) |
LUALIB_API int | luaL_loadbuffer (lua_State *L, const char *buff, size_t size, const char *name) |
LUALIB_API int | luaL_loadstring (lua_State *L, const char *s) |
static void * | l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) |
static int | panic (lua_State *L) |
LUALIB_API lua_State * | luaL_newstate (void) |
#define abs_index | ( | L, | |
i ) |
Definition at line 32 of file lua-5.1.5/src/lauxlib.c.
Referenced by luaL_callmeta(), luaL_ref(), and luaL_unref().
#define bufffree | ( | B | ) | ((size_t)(LUAL_BUFFERSIZE - bufflen(B))) |
Definition at line 393 of file lua-5.1.5/src/lauxlib.c.
Referenced by luaL_addvalue().
#define bufflen | ( | B | ) | ((B)->p - (B)->buffer) |
Definition at line 392 of file lua-5.1.5/src/lauxlib.c.
Referenced by emptybuffer(), luaO_chunkid(), and luaO_chunkid().
#define FREELIST_REF 0 /* free list of references */ |
Definition at line 28 of file lua-5.1.5/src/lauxlib.c.
Referenced by luaL_ref(), and luaL_unref().
#define lauxlib_c |
Definition at line 20 of file lua-5.1.5/src/lauxlib.c.
#define LIMIT (LUA_MINSTACK/2) |
Definition at line 395 of file lua-5.1.5/src/lauxlib.c.
Referenced by adjuststack().
#define LUA_LIB |
Definition at line 21 of file lua-5.1.5/src/lauxlib.c.
typedef struct LoadF LoadF |
typedef struct LoadS LoadS |
|
static |
Definition at line 410 of file lua-5.1.5/src/lauxlib.c.
References luaL_Buffer::L, LIMIT, lua_concat(), lua_strlen, and luaL_Buffer::lvl.
Referenced by luaL_addvalue(), and luaL_prepbuffer().
|
static |
Definition at line 398 of file lua-5.1.5/src/lauxlib.c.
References luaL_Buffer::buffer, bufflen, luaL_Buffer::L, lua_pushlstring(), luaL_Buffer::lvl, and luaL_Buffer::p.
Referenced by luaL_addvalue(), luaL_prepbuffer(), and luaL_pushresult().
|
static |
Definition at line 543 of file lua-5.1.5/src/lauxlib.c.
References LUA_ERRFILE, lua_pushfstring(), lua_remove, and lua_tostring.
Referenced by luaL_loadfile().
|
static |
Definition at line 529 of file lua-5.1.5/src/lauxlib.c.
References LoadF::buff, LoadF::extraline, LoadF::f, fread(), and NULL.
Referenced by luaL_loadfile().
|
static |
Definition at line 599 of file lua-5.1.5/src/lauxlib.c.
References NULL, LoadS::s, and LoadS::size.
Referenced by luaL_loadbuffer().
|
static |
Definition at line 627 of file lua-5.1.5/src/lauxlib.c.
References free, NULL, and realloc.
Referenced by luaL_newstate().
|
static |
Definition at line 235 of file lua-5.1.5/src/lauxlib.c.
References luaL_Reg::name.
Referenced by luaI_openlib().
LUALIB_API void luaI_openlib | ( | lua_State * | L, |
const char * | libname, | ||
const luaL_Reg * | l, | ||
int | nup ) |
Definition at line 242 of file lua-5.1.5/src/lauxlib.c.
References luaL_Reg::func, libsize(), lua_getfield(), LUA_GLOBALSINDEX, lua_insert, lua_istable, lua_pop, lua_pushcclosure(), lua_pushvalue(), LUA_QS, LUA_REGISTRYINDEX, lua_remove, lua_setfield(), luaL_error(), luaL_findtable(), luaL_Reg::name, and NULL.
LUALIB_API void luaL_addlstring | ( | luaL_Buffer * | B, |
const char * | s, | ||
size_t | l ) |
Definition at line 436 of file lua-5.1.5/src/lauxlib.c.
References luaL_addchar, and s.
Referenced by add_s(), add_s(), add_s(), add_s(), add_value(), addquoted(), b_pack(), luaL_addstring(), luaL_gsub(), os_date(), os_date(), putinteger(), setpath(), str_format(), str_gsub(), str_gsub(), str_gsub(), str_gsub(), str_pack(), str_pack(), str_rep(), tconcat(), tconcat(), tconcat(), tconcat(), writer(), writer(), writer(), writer(), Xml_pushEncode(), and Xml_str().
LUALIB_API void luaL_addstring | ( | luaL_Buffer * | B, |
const char * | s ) |
Definition at line 442 of file lua-5.1.5/src/lauxlib.c.
References luaL_addlstring(), and s.
Referenced by addquoted(), addquoted(), addquoted(), findloader(), luaL_gsub(), pusherrornotfound(), setpath(), and Xml_str().
LUALIB_API void luaL_addvalue | ( | luaL_Buffer * | B | ) |
Definition at line 454 of file lua-5.1.5/src/lauxlib.c.
References adjuststack(), bufffree, emptybuffer(), luaL_Buffer::L, lua_insert, lua_pop, lua_tolstring(), luaL_Buffer::lvl, luaL_Buffer::p, and s.
Referenced by add_s(), add_s(), add_s(), add_s(), add_value(), add_value(), add_value(), add_value(), addfield(), addfield(), addfield(), addfield(), addliteral(), addliteral(), findloader(), findloader(), findloader(), searchpath(), searchpath(), str_format(), str_format(), str_format(), str_format(), utfchar(), utfchar(), and Xml_str().
LUALIB_API int luaL_argerror | ( | lua_State * | L, |
int | narg, | ||
const char * | extramsg ) |
Definition at line 43 of file lua-5.1.5/src/lauxlib.c.
References lua_getinfo(), lua_getstack(), LUA_QS, luaL_error(), lua_Debug::name, lua_Debug::namewhat, and NULL.
Referenced by addliteral(), addliteral(), b_size(), checkoption(), checkoption(), checkoption(), controloptions(), db_getinfo(), db_getinfo(), db_getinfo(), db_getinfo(), db_getlocal(), db_getlocal(), db_getlocal(), db_getlocal(), db_setlocal(), db_setlocal(), db_setlocal(), db_setlocal(), db_setuservalue(), fileerror(), g_read(), g_read(), g_read(), g_read(), getdetails(), getdetails(), getfunc(), lsqlite_checkbu(), lsqlite_checkcontext(), lsqlite_checkdb(), lsqlite_checkvm(), lsqlite_getvm(), lsqlite_open_ptr(), luaL_checkany(), luaL_checkoption(), luaL_typerror(), str_format(), str_format(), str_format(), str_format(), str_packsize(), and str_unpack().
LUALIB_API void luaL_buffinit | ( | lua_State * | L, |
luaL_Buffer * | B ) |
Definition at line 472 of file lua-5.1.5/src/lauxlib.c.
References luaL_Buffer::buffer, luaL_Buffer::L, luaL_Buffer::lvl, and luaL_Buffer::p.
Referenced by b_pack(), findloader(), findloader(), findloader(), luaL_gsub(), os_date(), os_date(), os_date(), os_date(), push_indentStr(), pusherrornotfound(), read_all(), read_all(), read_all(), read_chars(), read_chars(), read_chars(), read_chars(), read_line(), read_line(), read_line(), read_line(), searchpath(), searchpath(), searchpath(), setpath(), str_char(), str_dump(), str_dump(), str_dump(), str_format(), str_format(), str_format(), str_format(), str_gsub(), str_gsub(), str_gsub(), str_gsub(), str_lower(), str_pack(), str_pack(), str_rep(), str_reverse(), str_upper(), tconcat(), tconcat(), tconcat(), tconcat(), utfchar(), utfchar(), writer(), Xml_pushEncode(), and Xml_str().
LUALIB_API int luaL_callmeta | ( | lua_State * | L, |
int | obj, | ||
const char * | event ) |
Definition at line 219 of file lua-5.1.5/src/lauxlib.c.
References abs_index, lua_call, lua_pushvalue(), and luaL_getmetafield().
Referenced by luaB_tostring(), msghandler(), msghandler(), and traceback().
LUALIB_API void luaL_checkany | ( | lua_State * | L, |
int | narg ) |
Definition at line 152 of file lua-5.1.5/src/lauxlib.c.
References LUA_TNONE, lua_type(), and luaL_argerror().
Referenced by db_getfenv(), db_getmetatable(), db_getmetatable(), db_getmetatable(), db_getmetatable(), db_setlocal(), db_setlocal(), db_setlocal(), db_setlocal(), db_setupvalue(), db_setupvalue(), db_setupvalue(), db_setupvalue(), db_setuservalue(), db_setuservalue(), io_type(), io_type(), io_type(), io_type(), luaB_assert(), luaB_assert(), luaB_assert(), luaB_getmetatable(), luaB_getmetatable(), luaB_getmetatable(), luaB_getmetatable(), luaB_ipairs(), luaB_ipairs(), luaB_pairs(), luaB_pcall(), luaB_pcall(), luaB_pcall(), luaB_pcall(), luaB_rawequal(), luaB_rawequal(), luaB_rawequal(), luaB_rawequal(), luaB_rawget(), luaB_rawget(), luaB_rawget(), luaB_rawget(), luaB_rawset(), luaB_rawset(), luaB_rawset(), luaB_rawset(), luaB_tonumber(), luaB_tonumber(), luaB_tonumber(), luaB_tonumber(), luaB_tostring(), luaB_tostring(), luaB_tostring(), luaB_tostring(), luaB_type(), luaB_type(), luaB_xpcall(), math_toint(), math_toint(), math_type(), math_type(), and pairsmeta().
LUALIB_API lua_Integer luaL_checkinteger | ( | lua_State * | L, |
int | narg ) |
Definition at line 189 of file lua-5.1.5/src/lauxlib.c.
References lua_isnumber(), LUA_TNUMBER, lua_tointeger, and tag_error().
Referenced by auxupvalue(), auxupvalue(), byteoffset(), byteoffset(), checkupval(), checkupval(), db_getinfo(), db_getinfo(), db_getlocal(), db_getlocal(), db_setcstacklimit(), db_setlocal(), db_setlocal(), g_read(), g_read(), ipairsaux(), ipairsaux(), l_checktime(), lcontext_result(), luaB_select(), luaB_select(), luaB_tonumber(), luaB_tonumber(), luaL_optinteger(), math_random(), math_random(), math_randomseed(), math_ult(), math_ult(), pushutfchar(), pushutfchar(), str_char(), str_char(), str_format(), str_format(), str_pack(), str_pack(), str_rep(), str_rep(), str_sub(), str_sub(), str_sub(), str_sub(), tinsert(), tinsert(), tmove(), tmove(), tunpack(), and unpack().
LUALIB_API const char * luaL_checklstring | ( | lua_State * | L, |
int | narg, | ||
size_t * | len ) |
Definition at line 158 of file lua-5.1.5/src/lauxlib.c.
References lua_tolstring(), LUA_TSTRING, s, and tag_error().
Referenced by addquoted(), addquoted(), b_pack(), b_unpack(), byteoffset(), byteoffset(), codepoint(), codepoint(), g_write(), g_write(), g_write(), g_write(), gmatch(), gmatch(), iter_aux(), iter_aux(), lfs_lock_dir(), luaB_loadstring(), luaB_tonumber(), luaL_optlstring(), str_byte(), str_byte(), str_byte(), str_byte(), str_find_aux(), str_find_aux(), str_find_aux(), str_find_aux(), str_format(), str_format(), str_format(), str_format(), str_gsub(), str_gsub(), str_gsub(), str_gsub(), str_len(), str_len(), str_len(), str_len(), str_lower(), str_lower(), str_lower(), str_lower(), str_pack(), str_pack(), str_rep(), str_rep(), str_rep(), str_rep(), str_reverse(), str_reverse(), str_reverse(), str_reverse(), str_sub(), str_sub(), str_sub(), str_sub(), str_unpack(), str_unpack(), str_upper(), str_upper(), str_upper(), str_upper(), utflen(), utflen(), Xml_decode(), and Xml_eval().
LUALIB_API lua_Number luaL_checknumber | ( | lua_State * | L, |
int | narg ) |
Definition at line 176 of file lua-5.1.5/src/lauxlib.c.
References lua_isnumber(), LUA_TNUMBER, lua_tonumber, and tag_error().
Referenced by b_pack(), dbvm_bind_parameter_name(), dbvm_get_name(), dbvm_get_type(), lcontext_result(), lcontext_result_double(), luaL_optnumber(), math_abs(), math_abs(), math_abs(), math_abs(), math_acos(), math_acos(), math_acos(), math_acos(), math_asin(), math_asin(), math_asin(), math_asin(), math_atan(), math_atan(), math_atan(), math_atan(), math_atan2(), math_atan2(), math_ceil(), math_ceil(), math_ceil(), math_ceil(), math_cos(), math_cos(), math_cos(), math_cos(), math_cosh(), math_cosh(), math_deg(), math_deg(), math_deg(), math_deg(), math_exp(), math_exp(), math_exp(), math_exp(), math_floor(), math_floor(), math_floor(), math_floor(), math_fmod(), math_fmod(), math_fmod(), math_fmod(), math_frexp(), math_frexp(), math_ldexp(), math_ldexp(), math_log(), math_log(), math_log(), math_log(), math_log10(), math_max(), math_max(), math_min(), math_min(), math_modf(), math_modf(), math_modf(), math_modf(), math_pow(), math_pow(), math_rad(), math_rad(), math_rad(), math_rad(), math_random(), math_randomseed(), math_sin(), math_sin(), math_sin(), math_sin(), math_sinh(), math_sinh(), math_sqrt(), math_sqrt(), math_sqrt(), math_sqrt(), math_tan(), math_tan(), math_tan(), math_tan(), math_tanh(), math_tanh(), os_date(), os_date(), os_difftime(), os_difftime(), putinteger(), str_format(), str_format(), str_format(), str_format(), str_pack(), and str_pack().
LUALIB_API int luaL_checkoption | ( | lua_State * | L, |
int | narg, | ||
const char * | def, | ||
const char *const | lst[] ) |
Definition at line 99 of file lua-5.1.5/src/lauxlib.c.
References lua_pushfstring(), LUA_QS, luaL_argerror(), luaL_checkstring, luaL_optstring, and name.
Referenced by f_seek(), f_seek(), f_seek(), f_seek(), f_setvbuf(), f_setvbuf(), f_setvbuf(), f_setvbuf(), lfs_g_setmode(), luaB_collectgarbage(), luaB_collectgarbage(), luaB_collectgarbage(), luaB_collectgarbage(), os_setlocale(), os_setlocale(), os_setlocale(), and os_setlocale().
LUALIB_API void luaL_checkstack | ( | lua_State * | L, |
int | space, | ||
const char * | mes ) |
Definition at line 140 of file lua-5.1.5/src/lauxlib.c.
References lua_checkstack(), and luaL_error().
Referenced by b_unpack(), codepoint(), codepoint(), dotty(), g_read(), g_read(), g_read(), g_read(), generic_reader(), generic_reader(), generic_reader(), generic_reader(), getargs(), getargs(), io_readline(), io_readline(), l_print(), l_print(), push_captures(), push_captures(), push_captures(), push_captures(), pushargs(), pushargs(), sort(), sort(), str_byte(), str_byte(), str_byte(), str_byte(), str_unpack(), and str_unpack().
LUALIB_API void luaL_checktype | ( | lua_State * | L, |
int | narg, | ||
int | t ) |
Definition at line 146 of file lua-5.1.5/src/lauxlib.c.
References lua_type(), and tag_error().
Referenced by auxupvalue(), auxupvalue(), auxupvalue(), auxupvalue(), checktab(), checktab(), checkupval(), checkupval(), checkupval(), db_busy_handler(), db_commit_hook(), db_exec(), db_progress_handler(), db_register_function(), db_rollback_hook(), db_setfenv(), db_sethook(), db_sethook(), db_sethook(), db_sethook(), db_setuservalue(), db_setuservalue(), db_setuservalue(), db_trace(), db_update_hook(), dbvm_bind_names(), foreach(), foreachi(), ipairsaux(), ipairsaux(), ll_seeall(), lsqlite_open_ptr(), luaB_cocreate(), luaB_cocreate(), luaB_cocreate(), luaB_ipairs(), luaB_load(), luaB_load(), luaB_load(), luaB_load(), luaB_next(), luaB_next(), luaB_next(), luaB_next(), luaB_pairs(), luaB_rawget(), luaB_rawget(), luaB_rawget(), luaB_rawget(), luaB_rawset(), luaB_rawset(), luaB_rawset(), luaB_rawset(), luaB_setfenv(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaB_tonumber(), luaB_tonumber(), luaB_unpack(), luaB_xpcall(), luaB_xpcall(), maxn(), os_time(), os_time(), os_time(), os_time(), pairsmeta(), setn(), sort(), sort(), sort(), sort(), str_dump(), str_dump(), str_dump(), str_dump(), tconcat(), tconcat(), unpack(), and Xml_iterate().
LUALIB_API void * luaL_checkudata | ( | lua_State * | L, |
int | ud, | ||
const char * | tname ) |
Definition at line 124 of file lua-5.1.5/src/lauxlib.c.
References lua_getfield(), lua_getmetatable(), lua_pop, lua_rawequal(), LUA_REGISTRYINDEX, lua_touserdata(), luaL_typerror(), and NULL.
Referenced by check_file(), dir_iter(), gctm(), lfs_unlock_dir(), lsqlite_getbu(), lsqlite_getcontext(), lsqlite_getdb(), and lsqlite_getvm().
LUALIB_API int luaL_error | ( | lua_State * | L, |
const char * | fmt, | ||
... ) |
Definition at line 86 of file lua-5.1.5/src/lauxlib.c.
References lua_concat(), lua_error(), lua_pushvfstring(), and luaL_where().
Referenced by _file_info_(), _file_lock(), add_s(), add_s(), add_s(), add_value(), add_value(), add_value(), add_value(), addfield(), addfield(), addfield(), addfield(), auxresume(), auxsort(), auxsort(), b_unpack(), byteoffset(), byteoffset(), capture_to_close(), capture_to_close(), capture_to_close(), capture_to_close(), check_capture(), check_capture(), check_capture(), check_capture(), check_file(), checkload(), checkload(), checkload(), checkstack(), checkstack(), checkstack(), classend(), classend(), classend(), classend(), codepoint(), codepoint(), controloptions(), db_create_collation(), db_register_function(), db_setfenv(), dbvm_bind_index(), dbvm_bind_values(), dbvm_check_bind_index(), dbvm_check_contents(), dbvm_check_index(), dir_iter_factory(), fieldargs(), findfile(), findfile(), findfile(), findfile(), findloader(), findloader(), findloader(), generic_reader(), generic_reader(), generic_reader(), generic_reader(), get_onecapture(), getfield(), getfield(), getfield(), getfield(), getfunc(), getiofile(), getiofile(), getiofile(), getiofile(), getnumlimit(), getnumlimit(), getoption(), getoption(), gfind_nodef(), io_readline(), io_readline(), io_readline(), io_readline(), iter_aux(), iter_aux(), lcontext_check_aggregate(), lcontext_result(), ll_module(), ll_require(), loader_preload(), loaderror(), lstop(), lstop(), lstop(), lstop(), luaB_assert(), luaB_assert(), luaB_close(), luaB_print(), luaB_print(), luaB_print(), luaB_setfenv(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaB_unpack(), luaI_openlib(), luaL_argerror(), luaL_checkstack(), luaopen_bit32(), make_xml_object(), match(), match(), match(), match(), matchbalance(), matchbalance(), matchbalance(), matchbalance(), math_random(), math_random(), math_random(), math_random(), opencheck(), opencheck(), opencheck(), optsize(), os_date(), os_date(), os_time(), os_time(), os_tmpname(), os_tmpname(), os_tmpname(), os_tmpname(), partition(), partition(), push_onecapture(), push_onecapture(), push_onecapture(), pushargs(), pushargs(), scanformat(), scanformat(), scanformat(), scanformat(), setfenv(), setfield(), setn(), start_capture(), start_capture(), start_capture(), start_capture(), str_byte(), str_byte(), str_byte(), str_byte(), str_dump(), str_dump(), str_dump(), str_dump(), str_format(), str_format(), str_format(), str_format(), str_rep(), str_rep(), str_rep(), tinsert(), tinsert(), tinsert(), tinsert(), tofile(), tofile(), tofile(), tofile(), trymt(), tunpack(), unpack(), unpack(), unpackint(), unpackint(), Xml_eval(), and Xml_load().
LUALIB_API const char * luaL_findtable | ( | lua_State * | L, |
int | idx, | ||
const char * | fname, | ||
int | szhint ) |
Definition at line 357 of file lua-5.1.5/src/lauxlib.c.
References lua_createtable(), lua_isnil, lua_istable, lua_pop, lua_pushlstring(), lua_pushvalue(), lua_rawget(), lua_remove, lua_settable(), and NULL.
Referenced by ll_module(), luaI_openlib(), and luaopen_package().
LUALIB_API int luaL_getmetafield | ( | lua_State * | L, |
int | obj, | ||
const char * | event ) |
Definition at line 203 of file lua-5.1.5/src/lauxlib.c.
References lua_getmetatable(), lua_isnil, lua_pop, lua_pushstring(), lua_rawget(), and lua_remove.
Referenced by luaB_getmetatable(), luaB_getmetatable(), luaB_getmetatable(), luaB_getmetatable(), luaB_pairs(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaB_setmetatable(), luaL_callmeta(), pairsmeta(), pairsmeta(), and trymt().
LUALIB_API const char * luaL_gsub | ( | lua_State * | L, |
const char * | s, | ||
const char * | p, | ||
const char * | r ) |
Definition at line 340 of file lua-5.1.5/src/lauxlib.c.
References lua_tostring, luaL_addlstring(), luaL_addstring(), luaL_buffinit(), luaL_pushresult(), NULL, and s.
Referenced by do_gsub(), findfile(), loadfunc(), loadfunc(), loadfunc(), mkfuncname(), searchpath(), searchpath(), searchpath(), setpath(), setpath(), and setpath().
LUALIB_API int luaL_loadbuffer | ( | lua_State * | L, |
const char * | buff, | ||
size_t | size, | ||
const char * | name ) |
Definition at line 609 of file lua-5.1.5/src/lauxlib.c.
References getS(), lua_load(), name, LoadS::s, and LoadS::size.
LUALIB_API int luaL_loadfile | ( | lua_State * | L, |
const char * | filename ) |
Definition at line 552 of file lua-5.1.5/src/lauxlib.c.
References errfile(), LoadF::extraline, LoadF::f, getF(), lua_gettop(), lua_load(), lua_pushfstring(), lua_pushliteral, lua_remove, lua_settop(), LUA_SIGNATURE, lua_tostring, and NULL.
LUALIB_API int luaL_loadstring | ( | lua_State * | L, |
const char * | s ) |
Definition at line 618 of file lua-5.1.5/src/lauxlib.c.
References luaL_loadbuffer, and s.
LUALIB_API int luaL_newmetatable | ( | lua_State * | L, |
const char * | tname ) |
Definition at line 112 of file lua-5.1.5/src/lauxlib.c.
References lua_getfield(), lua_isnil, lua_newtable, lua_pop, lua_pushvalue(), LUA_REGISTRYINDEX, and lua_setfield().
Referenced by create_meta(), createmeta(), createmeta(), createmeta(), createmeta(), dir_create_meta(), lock_create_meta(), luaopen_LuaXML_lib(), and luaopen_package().
LUALIB_API lua_State * luaL_newstate | ( | void | ) |
Definition at line 647 of file lua-5.1.5/src/lauxlib.c.
References l_alloc(), lua_atpanic(), lua_newstate(), NULL, and panic().
LUALIB_API lua_Integer luaL_optinteger | ( | lua_State * | L, |
int | narg, | ||
lua_Integer | def ) |
Definition at line 197 of file lua-5.1.5/src/lauxlib.c.
References luaL_checkinteger(), and luaL_opt.
Referenced by b_unpack(), byteoffset(), byteoffset(), codepoint(), codepoint(), db_getuservalue(), db_sethook(), db_sethook(), db_setuservalue(), db_traceback(), db_traceback(), f_seek(), f_seek(), f_setvbuf(), f_setvbuf(), f_setvbuf(), f_setvbuf(), file_lock(), file_unlock(), file_utime(), getendpos(), gmatch(), lsqlite_open(), luaB_collectgarbage(), luaB_collectgarbage(), luaB_error(), luaB_error(), math_randomseed(), os_exit(), os_exit(), str_byte(), str_byte(), str_byte(), str_byte(), str_find_aux(), str_find_aux(), str_find_aux(), str_find_aux(), str_gsub(), str_gsub(), str_gsub(), str_sub(), str_sub(), str_sub(), str_unpack(), str_unpack(), tconcat(), tconcat(), tremove(), tremove(), tunpack(), unpack(), utflen(), and utflen().
LUALIB_API const char * luaL_optlstring | ( | lua_State * | L, |
int | narg, | ||
const char * | def, | ||
size_t * | len ) |
Definition at line 165 of file lua-5.1.5/src/lauxlib.c.
References lua_isnoneornil, and luaL_checklstring().
Referenced by os_date(), os_date(), str_rep(), str_rep(), str_rep(), tconcat(), tconcat(), tconcat(), and tconcat().
LUALIB_API lua_Number luaL_optnumber | ( | lua_State * | L, |
int | narg, | ||
lua_Number | def ) |
Definition at line 184 of file lua-5.1.5/src/lauxlib.c.
References luaL_checknumber(), and luaL_opt.
Referenced by f_seek(), file_utime(), math_atan(), math_atan(), os_difftime(), and os_difftime().
LUALIB_API char * luaL_prepbuffer | ( | luaL_Buffer * | B | ) |
Definition at line 429 of file lua-5.1.5/src/lauxlib.c.
References adjuststack(), luaL_Buffer::buffer, and emptybuffer().
LUALIB_API void luaL_pushresult | ( | luaL_Buffer * | B | ) |
Definition at line 447 of file lua-5.1.5/src/lauxlib.c.
References emptybuffer(), luaL_Buffer::L, lua_concat(), and luaL_Buffer::lvl.
Referenced by b_pack(), findloader(), findloader(), findloader(), luaL_gsub(), os_date(), os_date(), os_date(), os_date(), push_indentStr(), pusherrornotfound(), read_all(), read_all(), read_all(), read_chars(), read_chars(), read_chars(), read_chars(), read_line(), read_line(), read_line(), read_line(), searchpath(), searchpath(), searchpath(), setpath(), str_char(), str_dump(), str_dump(), str_dump(), str_dump(), str_format(), str_format(), str_format(), str_format(), str_gsub(), str_gsub(), str_gsub(), str_gsub(), str_lower(), str_pack(), str_pack(), str_rep(), str_reverse(), str_upper(), tconcat(), tconcat(), tconcat(), tconcat(), utfchar(), utfchar(), Xml_pushEncode(), and Xml_str().
LUALIB_API int luaL_ref | ( | lua_State * | L, |
int | t ) |
Definition at line 481 of file lua-5.1.5/src/lauxlib.c.
References abs_index, FREELIST_REF, lua_isnil, lua_objlen(), lua_pop, lua_rawgeti(), lua_rawseti(), LUA_REFNIL, and lua_tointeger.
Referenced by db_busy_handler(), db_commit_hook(), db_create_collation(), db_progress_handler(), db_register_function(), db_rollback_hook(), db_trace(), db_update_hook(), lcontext_set_aggregate_context(), luaopen_lsqlite3(), and luaopen_LuaXML_lib().
LUALIB_API void luaL_register | ( | lua_State * | L, |
const char * | libname, | ||
const luaL_Reg * | l ) |
Definition at line 229 of file lua-5.1.5/src/lauxlib.c.
References luaI_openlib.
Referenced by base_open(), createmeta(), luaopen_base(), luaopen_debug(), luaopen_io(), luaopen_math(), luaopen_os(), luaopen_package(), luaopen_string(), and luaopen_table().
LUALIB_API int luaL_typerror | ( | lua_State * | L, |
int | narg, | ||
const char * | tname ) |
Definition at line 61 of file lua-5.1.5/src/lauxlib.c.
References lua_pushfstring(), luaL_argerror(), and luaL_typename.
Referenced by lsqlite_getbu(), lsqlite_getcontext(), lsqlite_getdb(), luaL_checkudata(), and tag_error().
LUALIB_API void luaL_unref | ( | lua_State * | L, |
int | t, | ||
int | ref ) |
Definition at line 504 of file lua-5.1.5/src/lauxlib.c.
References abs_index, FREELIST_REF, lua_pushinteger(), lua_rawgeti(), and lua_rawseti().
Referenced by cleanupdb(), collfree(), db_busy_handler(), db_busy_timeout(), db_commit_hook(), db_progress_handler(), db_rollback_hook(), db_sql_finalize_function(), db_sql_normal_function(), db_trace(), db_update_hook(), and lcontext_set_aggregate_context().
LUALIB_API void luaL_where | ( | lua_State * | L, |
int | level ) |
Definition at line 73 of file lua-5.1.5/src/lauxlib.c.
References lua_Debug::currentline, lua_getinfo(), lua_getstack(), lua_pushfstring(), lua_pushliteral, and lua_Debug::short_src.
Referenced by luaB_auxwrap(), luaB_auxwrap(), luaB_auxwrap(), luaB_auxwrap(), luaB_error(), luaB_error(), luaB_error(), luaB_error(), and luaL_error().
|
static |
Definition at line 639 of file lua-5.1.5/src/lauxlib.c.
References lua_tostring.
Referenced by luaD_throw(), and luaL_newstate().
|
static |
Definition at line 68 of file lua-5.1.5/src/lauxlib.c.
References lua_typename(), and luaL_typerror().
Referenced by luaL_checkinteger(), luaL_checklstring(), luaL_checknumber(), and luaL_checktype().