#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
Go to the source code of this file.
|
#define | DIBS ((sizeof(size_t) * 8 / 7) + 1) |
|
#define | dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) |
|
#define | dumpVar(D, x) dumpVector(D,&x,1) |
|
#define | dumpVector(D, v, n) dumpBlock(D,v,(n)*sizeof((v)[0])) |
|
#define | ldump_c |
|
#define | LUA_CORE |
|
|
static void | dumpBlock (DumpState *D, const void *b, size_t size) |
|
static void | dumpByte (DumpState *D, int y) |
|
static void | dumpCode (DumpState *D, const Proto *f) |
|
static void | dumpConstants (DumpState *D, const Proto *f) |
|
static void | dumpDebug (DumpState *D, const Proto *f) |
|
static void | dumpFunction (DumpState *D, const Proto *f, TString *psource) |
|
static void | dumpHeader (DumpState *D) |
|
static void | dumpInt (DumpState *D, int x) |
|
static void | dumpInteger (DumpState *D, lua_Integer x) |
|
static void | dumpNumber (DumpState *D, lua_Number x) |
|
static void | dumpProtos (DumpState *D, const Proto *f) |
|
static void | dumpSize (DumpState *D, size_t x) |
|
static void | dumpString (DumpState *D, const TString *s) |
|
static void | dumpUpvalues (DumpState *D, const Proto *f) |
|
int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
|
◆ DIBS
#define DIBS ((sizeof(size_t) * 8 / 7) + 1) |
◆ dumpLiteral
◆ dumpVar
◆ dumpVector
#define dumpVector |
( |
|
D, |
|
|
|
v, |
|
|
|
n |
|
) |
| dumpBlock(D,v,(n)*sizeof((v)[0])) |
◆ ldump_c
◆ LUA_CORE
◆ dumpBlock()
static void dumpBlock |
( |
DumpState * |
D, |
|
|
const void * |
b, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ dumpByte()
static void dumpByte |
( |
DumpState * |
D, |
|
|
int |
y |
|
) |
| |
|
static |
◆ dumpCode()
◆ dumpConstants()
◆ dumpDebug()
◆ dumpFunction()
◆ dumpHeader()
◆ dumpInt()
◆ dumpInteger()
◆ dumpNumber()
◆ dumpProtos()
◆ dumpSize()
static void dumpSize |
( |
DumpState * |
D, |
|
|
size_t |
x |
|
) |
| |
|
static |
◆ dumpString()
◆ dumpUpvalues()
◆ luaU_dump()