|
lua5.4
|
#include "lprefix.h"#include <stddef.h>#include "lua.h"#include "lobject.h"#include "lstate.h"#include "lundump.h"类 | |
| struct | DumpState |
宏定义 | |
| #define | ldump_c |
| #define | LUA_CORE |
| #define | dumpVector(D, v, n) dumpBlock(D,v,(n)*sizeof((v)[0])) |
| #define | dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) |
| #define | dumpVar(D, x) dumpVector(D,&x,1) |
| #define | DIBS ((sizeof(size_t) * 8 / 7) + 1) |
函数 | |
| static void | dumpBlock (DumpState *D, const void *b, size_t size) |
| static void | dumpByte (DumpState *D, int y) |
| static void | dumpSize (DumpState *D, size_t x) |
| static void | dumpInt (DumpState *D, int x) |
| static void | dumpNumber (DumpState *D, lua_Number x) |
| static void | dumpInteger (DumpState *D, lua_Integer x) |
| static void | dumpString (DumpState *D, const TString *s) |
| static void | dumpCode (DumpState *D, const Proto *f) |
| static void | dumpFunction (DumpState *D, const Proto *f, TString *psource) |
| static void | dumpConstants (DumpState *D, const Proto *f) |
| static void | dumpProtos (DumpState *D, const Proto *f) |
| static void | dumpUpvalues (DumpState *D, const Proto *f) |
| static void | dumpDebug (DumpState *D, const Proto *f) |
| static void | dumpHeader (DumpState *D) |
| int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
| #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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int luaU_dump | ( | lua_State * | L, |
| const Proto * | f, | ||
| lua_Writer | w, | ||
| void * | data, | ||
| int | strip | ||
| ) |
1.8.18