35 #define dumpVector(D,v,n) dumpBlock(D,v,(n)*sizeof((v)[0])) 37 #define dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) 41 if (D->
status == 0 && size > 0) {
49 #define dumpVar(D,x) dumpVector(D,&x,1) 59 #define DIBS ((sizeof(size_t) * 8 / 7) + 1) 65 buff[
DIBS - (++n)] = x & 0x7f;
68 buff[
DIBS - 1] |= 0x80;
93 const char *str =
getstr(s);
112 for (i = 0; i < n; i++) {
138 for (i = 0; i < n; i++)
146 for (i = 0; i < n; i++) {
161 for (i = 0; i < n; i++) {
167 for (i = 0; i < n; i++) {
174 for (i = 0; i < n; i++)
static void dumpCode(DumpState *D, const Proto *f)
int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
static void dumpHeader(DumpState *D)
int(* lua_Writer)(lua_State *L, const void *p, size_t sz, void *ud)
static void dumpInteger(DumpState *D, lua_Integer x)
static void dumpBlock(DumpState *D, const void *b, size_t size)
static void dumpDebug(DumpState *D, const Proto *f)
AbsLineInfo * abslineinfo
static void dumpUpvalues(DumpState *D, const Proto *f)
static void dumpNumber(DumpState *D, lua_Number x)
static void dumpByte(DumpState *D, int y)
#define dumpVector(D, v, n)
static void dumpFunction(DumpState *D, const Proto *f, TString *psource)
static void dumpString(DumpState *D, const TString *s)
static void dumpConstants(DumpState *D, const Proto *f)
static void dumpProtos(DumpState *D, const Proto *f)
#define dumpLiteral(D, s)
static void dumpInt(DumpState *D, int x)
static void dumpSize(DumpState *D, size_t x)