#include "lprefix.h"
#include <limits.h>
#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.
|
#define | checksize(S, t) fchecksize(S,sizeof(t),#t) |
|
#define | loadVar(S, x) loadVector(S,&x,1) |
|
#define | loadVector(S, b, n) loadBlock(S,b,(n)*sizeof((b)[0])) |
|
#define | LUA_CORE |
|
#define | luai_verifycode(L, f) /* empty */ |
|
#define | lundump_c |
|
|
static void | checkHeader (LoadState *S) |
|
static void | checkliteral (LoadState *S, const char *s, const char *msg) |
|
static l_noret | error (LoadState *S, const char *why) |
|
static void | fchecksize (LoadState *S, size_t size, const char *tname) |
|
static void | loadBlock (LoadState *S, void *b, size_t size) |
|
static lu_byte | loadByte (LoadState *S) |
|
static void | loadCode (LoadState *S, Proto *f) |
|
static void | loadConstants (LoadState *S, Proto *f) |
|
static void | loadDebug (LoadState *S, Proto *f) |
|
static void | loadFunction (LoadState *S, Proto *f, TString *psource) |
|
static int | loadInt (LoadState *S) |
|
static lua_Integer | loadInteger (LoadState *S) |
|
static lua_Number | loadNumber (LoadState *S) |
|
static void | loadProtos (LoadState *S, Proto *f) |
|
static size_t | loadSize (LoadState *S) |
|
static TString * | loadString (LoadState *S, Proto *p) |
|
static TString * | loadStringN (LoadState *S, Proto *p) |
|
static size_t | loadUnsigned (LoadState *S, size_t limit) |
|
static void | loadUpvalues (LoadState *S, Proto *f) |
|
LClosure * | luaU_undump (lua_State *L, ZIO *Z, const char *name) |
|
◆ checksize
◆ loadVar
◆ loadVector
#define loadVector |
( |
|
S, |
|
|
|
b, |
|
|
|
n |
|
) |
| loadBlock(S,b,(n)*sizeof((b)[0])) |
◆ LUA_CORE
◆ luai_verifycode
#define luai_verifycode |
( |
|
L, |
|
|
|
f |
|
) |
| /* empty */ |
◆ lundump_c
◆ checkHeader()
◆ checkliteral()
static void checkliteral |
( |
LoadState * |
S, |
|
|
const char * |
s, |
|
|
const char * |
msg |
|
) |
| |
|
static |
◆ error()
◆ fchecksize()
static void fchecksize |
( |
LoadState * |
S, |
|
|
size_t |
size, |
|
|
const char * |
tname |
|
) |
| |
|
static |
◆ loadBlock()
static void loadBlock |
( |
LoadState * |
S, |
|
|
void * |
b, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ loadByte()
◆ loadCode()
◆ loadConstants()
◆ loadDebug()
◆ loadFunction()
◆ loadInt()
◆ loadInteger()
◆ loadNumber()
◆ loadProtos()
◆ loadSize()
◆ loadString()
◆ loadStringN()
◆ loadUnsigned()
static size_t loadUnsigned |
( |
LoadState * |
S, |
|
|
size_t |
limit |
|
) |
| |
|
static |
◆ loadUpvalues()
◆ luaU_undump()