Classes | Macros | Functions
lundump.c File Reference
#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"
Include dependency graph for lundump.c:

Go to the source code of this file.

Classes

struct  LoadState
 

Macros

#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
 

Functions

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 TStringloadString (LoadState *S, Proto *p)
 
static TStringloadStringN (LoadState *S, Proto *p)
 
static size_t loadUnsigned (LoadState *S, size_t limit)
 
static void loadUpvalues (LoadState *S, Proto *f)
 
LClosureluaU_undump (lua_State *L, ZIO *Z, const char *name)
 

Macro Definition Documentation

◆ checksize

#define checksize (   S,
 
)    fchecksize(S,sizeof(t),#t)

Definition at line 288 of file lundump.c.

◆ loadVar

#define loadVar (   S,
 
)    loadVector(S,&x,1)

Definition at line 58 of file lundump.c.

◆ loadVector

#define loadVector (   S,
  b,
 
)    loadBlock(S,b,(n)*sizeof((b)[0]))

Definition at line 50 of file lundump.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file lundump.c.

◆ luai_verifycode

#define luai_verifycode (   L,
  f 
)    /* empty */

Definition at line 29 of file lundump.c.

◆ lundump_c

#define lundump_c

Definition at line 7 of file lundump.c.

Function Documentation

◆ checkHeader()

static void checkHeader ( LoadState S)
static

Definition at line 290 of file lundump.c.

◆ checkliteral()

static void checkliteral ( LoadState S,
const char *  s,
const char *  msg 
)
static

Definition at line 273 of file lundump.c.

◆ error()

static l_noret error ( LoadState S,
const char *  why 
)
static

Definition at line 40 of file lundump.c.

◆ fchecksize()

static void fchecksize ( LoadState S,
size_t  size,
const char *  tname 
)
static

Definition at line 282 of file lundump.c.

◆ loadBlock()

static void loadBlock ( LoadState S,
void *  b,
size_t  size 
)
static

Definition at line 52 of file lundump.c.

◆ loadByte()

static lu_byte loadByte ( LoadState S)
static

Definition at line 61 of file lundump.c.

◆ loadCode()

static void loadCode ( LoadState S,
Proto f 
)
static

Definition at line 144 of file lundump.c.

◆ loadConstants()

static void loadConstants ( LoadState S,
Proto f 
)
static

Definition at line 155 of file lundump.c.

◆ loadDebug()

static void loadDebug ( LoadState S,
Proto f 
)
static

Definition at line 227 of file lundump.c.

◆ loadFunction()

static void loadFunction ( LoadState S,
Proto f,
TString psource 
)
static

Definition at line 256 of file lundump.c.

◆ loadInt()

static int loadInt ( LoadState S)
static

Definition at line 88 of file lundump.c.

◆ loadInteger()

static lua_Integer loadInteger ( LoadState S)
static

Definition at line 100 of file lundump.c.

◆ loadNumber()

static lua_Number loadNumber ( LoadState S)
static

Definition at line 93 of file lundump.c.

◆ loadProtos()

static void loadProtos ( LoadState S,
Proto f 
)
static

Definition at line 191 of file lundump.c.

◆ loadSize()

static size_t loadSize ( LoadState S)
static

Definition at line 83 of file lundump.c.

◆ loadString()

static TString* loadString ( LoadState S,
Proto p 
)
static

Definition at line 136 of file lundump.c.

◆ loadStringN()

static TString* loadStringN ( LoadState S,
Proto p 
)
static

Definition at line 110 of file lundump.c.

◆ loadUnsigned()

static size_t loadUnsigned ( LoadState S,
size_t  limit 
)
static

Definition at line 69 of file lundump.c.

◆ loadUpvalues()

static void loadUpvalues ( LoadState S,
Proto f 
)
static

Definition at line 212 of file lundump.c.

◆ luaU_undump()

LClosure* luaU_undump ( lua_State L,
ZIO Z,
const char *  name 
)

Definition at line 311 of file lundump.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28