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:
This graph shows which files directly or indirectly include this file:

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

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

Definition at line 288 of file lundump.c.

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

Definition at line 58 of file lundump.c.

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

Definition at line 50 of file lundump.c.

#define LUA_CORE

Definition at line 8 of file lundump.c.

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

Definition at line 29 of file lundump.c.

#define lundump_c

Definition at line 7 of file lundump.c.

Function Documentation

static void checkHeader ( LoadState S)
static

Definition at line 290 of file lundump.c.

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

Definition at line 273 of file lundump.c.

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

Definition at line 40 of file lundump.c.

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

Definition at line 282 of file lundump.c.

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

Definition at line 52 of file lundump.c.

static lu_byte loadByte ( LoadState S)
static

Definition at line 61 of file lundump.c.

static void loadCode ( LoadState S,
Proto f 
)
static

Definition at line 144 of file lundump.c.

static void loadConstants ( LoadState S,
Proto f 
)
static

Definition at line 155 of file lundump.c.

static void loadDebug ( LoadState S,
Proto f 
)
static

Definition at line 227 of file lundump.c.

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

Definition at line 256 of file lundump.c.

static int loadInt ( LoadState S)
static

Definition at line 88 of file lundump.c.

static lua_Integer loadInteger ( LoadState S)
static

Definition at line 100 of file lundump.c.

static lua_Number loadNumber ( LoadState S)
static

Definition at line 93 of file lundump.c.

static void loadProtos ( LoadState S,
Proto f 
)
static

Definition at line 191 of file lundump.c.

static size_t loadSize ( LoadState S)
static

Definition at line 83 of file lundump.c.

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

Definition at line 136 of file lundump.c.

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

Definition at line 110 of file lundump.c.

static size_t loadUnsigned ( LoadState S,
size_t  limit 
)
static

Definition at line 69 of file lundump.c.

static void loadUpvalues ( LoadState S,
Proto f 
)
static

Definition at line 212 of file lundump.c.

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 Dec 6 2020 04:02:49