Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <ctype.h>
#include <stdio.h>
#include "ldebug.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lundump.h"
Go to the source code of this file.
Macros | |
#define | luac_c |
#define | LUA_CORE |
#define | PrintFunction luaU_print |
#define | Sizeof(x) ((int)sizeof(x)) |
#define | VOID(p) ((const void*)(p)) |
#define | SS(x) (x==1)?"":"s" |
#define | S(x) x,SS(x) |
Functions | |
static void | PrintString (const TString *ts) |
static void | PrintConstant (const Proto *f, int i) |
static void | PrintCode (const Proto *f) |
static void | PrintHeader (const Proto *f) |
static void | PrintConstants (const Proto *f) |
static void | PrintLocals (const Proto *f) |
static void | PrintUpvalues (const Proto *f) |
void | PrintFunction (const Proto *f, int full) |
#define PrintFunction luaU_print |
Definition at line 18 of file print.c.
Referenced by PrintFunction(), PrintFunction(), PrintFunction(), and PrintFunction().
#define S | ( | x | ) | x,SS(x) |
Definition at line 159 of file print.c.
Referenced by checkHeader(), checkHeader(), checkliteral(), checkliteral(), error(), error(), error(), error(), fchecksize(), fchecksize(), LoadBlock(), LoadBlock(), LoadBlock(), loadBlock(), LoadByte(), loadByte(), LoadChar(), LoadChar(), LoadCode(), LoadCode(), LoadCode(), loadCode(), LoadConstants(), LoadConstants(), LoadConstants(), loadConstants(), LoadDebug(), LoadDebug(), LoadDebug(), loadDebug(), LoadFunction(), LoadFunction(), loadFunction(), LoadFunction(), LoadHeader(), LoadHeader(), LoadInt(), LoadInt(), LoadInt(), loadInt(), LoadInteger(), loadInteger(), LoadNumber(), LoadNumber(), LoadNumber(), loadNumber(), LoadProtos(), loadProtos(), loadSize(), LoadString(), LoadString(), LoadString(), loadString(), loadStringN(), loadUnsigned(), LoadUpvalues(), LoadUpvalues(), loadUpvalues(), luaU_undump(), luaU_undump(), and PrintHeader().
#define Sizeof | ( | x | ) | ((int)sizeof(x)) |
Definition at line 20 of file print.c.
Referenced by PrintHeader().
#define SS | ( | x | ) | (x==1)?"":"s" |
Definition at line 158 of file print.c.
Referenced by PrintHeader().
#define VOID | ( | p | ) | ((const void*)(p)) |
Definition at line 21 of file print.c.
Referenced by PrintCode(), PrintConstants(), PrintHeader(), PrintLocals(), and PrintUpvalues().
|
static |
Definition at line 74 of file print.c.
References Proto::code, GET_OPCODE, GETARG_A, GETARG_B, GETARG_Bx, GETARG_C, GETARG_sBx, getBMode, getCMode, getline, getOpMode, getstr, iABC, iABx, iAsBx, INDEXK, ISK, Proto::k, luaP_opnames, OP_ADD, OP_CLOSURE, OP_DIV, OP_EQ, OP_FORLOOP, OP_FORPREP, OP_GETGLOBAL, OP_GETTABLE, OP_GETUPVAL, OP_JMP, OP_LE, OP_LOADK, OP_LT, OP_MUL, OP_POW, OP_SELF, OP_SETGLOBAL, OP_SETLIST, OP_SETTABLE, OP_SETUPVAL, OP_SUB, OpArgK, OpArgN, Proto::p, PrintConstant(), printf, Proto::sizecode, Proto::sizeupvalues, svalue, Proto::upvalues, and VOID.
Referenced by PrintFunction().
|
static |
Definition at line 51 of file print.c.
References bvalue, Proto::k, LUA_NUMBER_FMT, LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, nvalue, printf, PrintString(), rawtsvalue, and ttype.
Referenced by PrintCode(), and PrintConstants().
|
static |
Definition at line 181 of file print.c.
References PrintConstant(), printf, Proto::sizek, and VOID.
Referenced by PrintFunction().
static void PrintFunction | ( | const Proto * | f, |
int | full ) |
Definition at line 215 of file print.c.
References Proto::p, PrintCode(), PrintConstants(), PrintFunction, PrintHeader(), PrintLocals(), PrintUpvalues(), and Proto::sizep.
|
static |
Definition at line 161 of file print.c.
References getstr, Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, LUA_SIGNATURE, Proto::maxstacksize, Proto::numparams, Proto::nups, printf, S, s, Proto::sizecode, Proto::sizek, Proto::sizelocvars, Sizeof, Proto::sizep, Proto::source, SS, and VOID.
Referenced by PrintFunction().
|
static |
Definition at line 193 of file print.c.
References LocVar::endpc, getstr, Proto::locvars, printf, Proto::sizelocvars, LocVar::startpc, LocVar::varname, and VOID.
Referenced by PrintFunction().
|
static |
Definition at line 23 of file print.c.
References getstr, TString::len, printf, s, and TString::tsv.
Referenced by PrintConstant().
|
static |
Definition at line 204 of file print.c.
References getstr, NULL, printf, Proto::sizeupvalues, Proto::upvalues, and VOID.
Referenced by PrintFunction().