Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstring.h"
#include "lundump.h"
#include "lzio.h"
Go to the source code of this file.
Data Structures | |
struct | LoadState |
Macros | |
#define | lundump_c |
#define | LUA_CORE |
#define | IF(c, s) if (c) error(S,s) |
#define | LoadMem(S, b, n, size) LoadBlock(S,b,(n)*(size)) |
#define | LoadByte(S) (lu_byte)LoadChar(S) |
#define | LoadVar(S, x) LoadMem(S,&x,1,sizeof(x)) |
#define | LoadVector(S, b, n, size) LoadMem(S,b,n,size) |
Functions | |
static void | error (LoadState *S, const char *why) |
static void | LoadBlock (LoadState *S, void *b, size_t size) |
static int | LoadChar (LoadState *S) |
static int | LoadInt (LoadState *S) |
static lua_Number | LoadNumber (LoadState *S) |
static TString * | LoadString (LoadState *S) |
static void | LoadCode (LoadState *S, Proto *f) |
static Proto * | LoadFunction (LoadState *S, TString *p) |
static void | LoadConstants (LoadState *S, Proto *f) |
static void | LoadDebug (LoadState *S, Proto *f) |
static void | LoadHeader (LoadState *S) |
Proto * | luaU_undump (lua_State *L, ZIO *Z, Mbuffer *buff, const char *name) |
void | luaU_header (char *h) |
Definition at line 34 of file lua-5.1.5/src/lundump.c.
Referenced by LoadBlock(), LoadFunction(), LoadHeader(), and LoadInt().
Definition at line 44 of file lua-5.1.5/src/lundump.c.
Referenced by checkHeader(), fchecksize(), LoadConstants(), LoadFunction(), LoadFunction(), LoadString(), LoadUpvalues(), and luaU_undump().
Definition at line 43 of file lua-5.1.5/src/lundump.c.
Definition at line 45 of file lua-5.1.5/src/lundump.c.
Referenced by LoadChar(), LoadInt(), LoadNumber(), and LoadString().
Definition at line 46 of file lua-5.1.5/src/lundump.c.
Referenced by LoadCode(), and LoadDebug().
#define LUA_CORE |
Definition at line 10 of file lua-5.1.5/src/lundump.c.
#define lundump_c |
Definition at line 9 of file lua-5.1.5/src/lundump.c.
|
static |
Definition at line 36 of file lua-5.1.5/src/lundump.c.
References LUA_ERRSYNTAX, luaD_throw(), luaO_pushfstring(), and S.
Referenced by connect_socket(), duk__base64_decode_helper(), duk__hobject_pc2line_query_raw(), duk__init_heap_strings(), duk__parse_regexp_flags(), duk_base64_encode(), duk_bi_date_get_local_tzoffset_gmtime(), duk_default_panic_handler(), duk_hbuffer_alloc(), duk_heap_alloc(), duk_heap_strcache_offset_char2byte(), duk_hthread_create_builtin_objects(), fetch_github_user(), fileio_readfile(), fileio_readfile(), g_clear_fd(), g_unix_pipe_close(), g_unix_pipe_open(), handle_fh(), handle_fh(), handle_fh(), handle_file(), handle_file(), handle_file(), LoadConstants(), LoadFunction(), mg_connect_client(), mg_connect_client_impl(), mg_connect_client_secure(), mg_connect_websocket_client_impl(), mg_start2(), mg_start_domain2(), on_button_clicked(), and start_civetweb().
|
static |
Definition at line 48 of file lua-5.1.5/src/lundump.c.
References IF, luaZ_read(), and S.
Referenced by LoadHeader(), and LoadString().
|
static |
Definition at line 54 of file lua-5.1.5/src/lundump.c.
Referenced by LoadConstants().
Definition at line 90 of file lua-5.1.5/src/lundump.c.
References Proto::code, LoadInt(), LoadVector, luaM_newvector, S, and Proto::sizecode.
Referenced by LoadFunction().
Definition at line 100 of file lua-5.1.5/src/lundump.c.
References error(), Proto::k, LoadChar(), LoadFunction(), LoadInt(), LoadNumber(), LoadString(), LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, luaM_newvector, NULL, Proto::p, S, setbvalue, setnilvalue, setnvalue, setsvalue2n, Proto::sizek, Proto::sizep, and Proto::source.
Referenced by LoadFunction().
Definition at line 137 of file lua-5.1.5/src/lundump.c.
References LocVar::endpc, Proto::lineinfo, LoadInt(), LoadString(), LoadVector, Proto::locvars, luaM_newvector, NULL, S, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizeupvalues, LocVar::startpc, Proto::upvalues, and LocVar::varname.
Referenced by LoadFunction().
Definition at line 161 of file lua-5.1.5/src/lundump.c.
References error(), IF, incr_top, Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, LoadByte, LoadCode(), LoadConstants(), LoadDebug(), LoadInt(), LoadString(), luaF_newproto(), luaG_checkcode(), LUAI_MAXCCALLS, Proto::maxstacksize, NULL, Proto::numparams, Proto::nups, S, setptvalue2s, and Proto::source.
Referenced by LoadConstants(), and luaU_undump().
|
static |
Definition at line 183 of file lua-5.1.5/src/lundump.c.
References IF, LoadBlock(), LUAC_HEADERSIZE, luaU_header(), S, and s.
Referenced by luaU_undump().
|
static |
Definition at line 61 of file lua-5.1.5/src/lundump.c.
References IF, LoadVar, and S.
Referenced by LoadCode(), LoadConstants(), LoadDebug(), and LoadFunction().
|
static |
Definition at line 69 of file lua-5.1.5/src/lundump.c.
Referenced by LoadConstants().
Definition at line 76 of file lua-5.1.5/src/lundump.c.
References LoadBlock(), LoadVar, luaS_newlstr(), luaZ_openspace(), NULL, S, and s.
Referenced by LoadConstants(), LoadDebug(), and LoadFunction().
void luaU_header | ( | char * | h | ) |
Definition at line 214 of file lua-5.1.5/src/lundump.c.
References LUA_SIGNATURE, LUAC_FORMAT, and LUAC_VERSION.
Referenced by DumpHeader(), DumpHeader(), and LoadHeader().
Definition at line 195 of file lua-5.1.5/src/lundump.c.
References LoadFunction(), LoadHeader(), LUA_SIGNATURE, luaS_newliteral, name, LoadState::name, and S.
Referenced by f_parser(), f_parser(), f_parser(), and f_parser().