RetroArch
Classes | Macros | Functions
lundump.c File Reference
#include "lprefix.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:

Classes

struct  LoadState
 

Macros

#define lundump_c
 
#define LUA_CORE
 
#define luai_verifycode(L, b, f)   /* empty */
 
#define LoadVector(S, b, n)   LoadBlock(S,b,(n)*sizeof((b)[0]))
 
#define LoadVar(S, x)   LoadVector(S,&x,1)
 
#define checksize(S, t)   fchecksize(S,sizeof(t),#t)
 

Functions

static l_noret error (LoadState *S, const char *why)
 
static void LoadBlock (LoadState *S, void *b, size_t size)
 
static lu_byte LoadByte (LoadState *S)
 
static int LoadInt (LoadState *S)
 
static lua_Number LoadNumber (LoadState *S)
 
static lua_Integer LoadInteger (LoadState *S)
 
static TStringLoadString (LoadState *S)
 
static void LoadCode (LoadState *S, Proto *f)
 
static void LoadFunction (LoadState *S, Proto *f, TString *psource)
 
static void LoadConstants (LoadState *S, Proto *f)
 
static void LoadProtos (LoadState *S, Proto *f)
 
static void LoadUpvalues (LoadState *S, Proto *f)
 
static void LoadDebug (LoadState *S, Proto *f)
 
static void checkliteral (LoadState *S, const char *s, const char *msg)
 
static void fchecksize (LoadState *S, size_t size, const char *tname)
 
static void checkHeader (LoadState *S)
 
LClosureluaU_undump (lua_State *L, ZIO *Z, const char *name)
 

Macro Definition Documentation

◆ checksize

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

◆ LoadVar

#define LoadVar (   S,
  x 
)    LoadVector(S,&x,1)

◆ LoadVector

#define LoadVector (   S,
  b,
  n 
)    LoadBlock(S,b,(n)*sizeof((b)[0]))

◆ LUA_CORE

#define LUA_CORE

◆ luai_verifycode

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

◆ lundump_c

#define lundump_c

Function Documentation

◆ checkHeader()

static void checkHeader ( LoadState S)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkliteral()

static void checkliteral ( LoadState S,
const char *  s,
const char *  msg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ error()

static l_noret error ( LoadState S,
const char *  why 
)
static
Here is the call graph for this function:

◆ fchecksize()

static void fchecksize ( LoadState S,
size_t  size,
const char *  tname 
)
static
Here is the call graph for this function:

◆ LoadBlock()

static void LoadBlock ( LoadState S,
void b,
size_t  size 
)
static
Here is the call graph for this function:

◆ LoadByte()

static lu_byte LoadByte ( LoadState S)
static
Here is the caller graph for this function:

◆ LoadCode()

static void LoadCode ( LoadState S,
Proto f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadConstants()

static void LoadConstants ( LoadState S,
Proto f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadDebug()

static void LoadDebug ( LoadState S,
Proto f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadFunction()

static void LoadFunction ( LoadState S,
Proto f,
TString psource 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadInt()

static int LoadInt ( LoadState S)
static
Here is the caller graph for this function:

◆ LoadInteger()

static lua_Integer LoadInteger ( LoadState S)
static
Here is the caller graph for this function:

◆ LoadNumber()

static lua_Number LoadNumber ( LoadState S)
static
Here is the caller graph for this function:

◆ LoadProtos()

static void LoadProtos ( LoadState S,
Proto f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadString()

static TString* LoadString ( LoadState S)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadUpvalues()

static void LoadUpvalues ( LoadState S,
Proto f 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaU_undump()

LClosure* luaU_undump ( lua_State L,
ZIO Z,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function: