Classes | Macros | Functions
ldump.c File Reference
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
Include dependency graph for ldump.c:

Go to the source code of this file.

Classes

struct  DumpState
 

Macros

#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
 

Functions

static void dumpBlock (DumpState *D, const void *b, size_t size)
 
static void dumpByte (DumpState *D, int y)
 
static void dumpCode (DumpState *D, const Proto *f)
 
static void dumpConstants (DumpState *D, const Proto *f)
 
static void dumpDebug (DumpState *D, const Proto *f)
 
static void dumpFunction (DumpState *D, const Proto *f, TString *psource)
 
static void dumpHeader (DumpState *D)
 
static void dumpInt (DumpState *D, int x)
 
static void dumpInteger (DumpState *D, lua_Integer x)
 
static void dumpNumber (DumpState *D, lua_Number x)
 
static void dumpProtos (DumpState *D, const Proto *f)
 
static void dumpSize (DumpState *D, size_t x)
 
static void dumpString (DumpState *D, const TString *s)
 
static void dumpUpvalues (DumpState *D, const Proto *f)
 
int luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
 

Macro Definition Documentation

◆ DIBS

#define DIBS   ((sizeof(size_t) * 8 / 7) + 1)

Definition at line 59 of file ldump.c.

◆ dumpLiteral

#define dumpLiteral (   D,
  s 
)    dumpBlock(D,s,sizeof(s) - sizeof(char))

Definition at line 37 of file ldump.c.

◆ dumpVar

#define dumpVar (   D,
 
)    dumpVector(D,&x,1)

Definition at line 49 of file ldump.c.

◆ dumpVector

#define dumpVector (   D,
  v,
 
)    dumpBlock(D,v,(n)*sizeof((v)[0]))

Definition at line 35 of file ldump.c.

◆ ldump_c

#define ldump_c

Definition at line 7 of file ldump.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file ldump.c.

Function Documentation

◆ dumpBlock()

static void dumpBlock ( DumpState D,
const void *  b,
size_t  size 
)
static

Definition at line 40 of file ldump.c.

◆ dumpByte()

static void dumpByte ( DumpState D,
int  y 
)
static

Definition at line 52 of file ldump.c.

◆ dumpCode()

static void dumpCode ( DumpState D,
const Proto f 
)
static

Definition at line 100 of file ldump.c.

◆ dumpConstants()

static void dumpConstants ( DumpState D,
const Proto f 
)
static

Definition at line 108 of file ldump.c.

◆ dumpDebug()

static void dumpDebug ( DumpState D,
const Proto f 
)
static

Definition at line 154 of file ldump.c.

◆ dumpFunction()

static void dumpFunction ( DumpState D,
const Proto f,
TString psource 
)
static

Definition at line 179 of file ldump.c.

◆ dumpHeader()

static void dumpHeader ( DumpState D)
static

Definition at line 197 of file ldump.c.

◆ dumpInt()

static void dumpInt ( DumpState D,
int  x 
)
static

Definition at line 73 of file ldump.c.

◆ dumpInteger()

static void dumpInteger ( DumpState D,
lua_Integer  x 
)
static

Definition at line 83 of file ldump.c.

◆ dumpNumber()

static void dumpNumber ( DumpState D,
lua_Number  x 
)
static

Definition at line 78 of file ldump.c.

◆ dumpProtos()

static void dumpProtos ( DumpState D,
const Proto f 
)
static

Definition at line 134 of file ldump.c.

◆ dumpSize()

static void dumpSize ( DumpState D,
size_t  x 
)
static

Definition at line 61 of file ldump.c.

◆ dumpString()

static void dumpString ( DumpState D,
const TString s 
)
static

Definition at line 88 of file ldump.c.

◆ dumpUpvalues()

static void dumpUpvalues ( DumpState D,
const Proto f 
)
static

Definition at line 143 of file ldump.c.

◆ luaU_dump()

int luaU_dump ( lua_State L,
const Proto f,
lua_Writer  w,
void *  data,
int  strip 
)

Definition at line 213 of file ldump.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49