#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"
gehe zum Quellcode dieser Datei
|
#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) |
|
|
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) |
|
LUAI_FUNC Proto * | luaU_undump (lua_State *L, ZIO *Z, Mbuffer *buff, const char *name) |
|
LUAI_FUNC void | luaU_header (char *h) |
|
#define LoadVector |
( |
|
S, |
|
|
|
b, |
|
|
|
n, |
|
|
|
size |
|
) |
| LoadMem(S,b,n,size) |
Definiert in Zeile 48 der Datei lundump.c.
51 IF (r!=0,
"unexpected end");
Definiert in Zeile 61 der Datei lundump.c.
65 IF (x<0,
"bad integer");
Definiert in Zeile 214 der Datei lundump.c.
221 *
h++=(char)*(
char*)&
x;
222 *
h++=(char)
sizeof(
int);
223 *
h++=(char)
sizeof(
size_t);
Definiert in Zeile 195 der Datei lundump.c.
198 if (*name==
'@' || *name==
'=')
201 S.
name=
"binary string";