#include "lprefix.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "ldebug.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lopnames.h"
#include "lstate.h"
#include "lundump.h"
Go to the source code of this file.
|
static void | cannot (const char *what) |
|
static const Proto * | combine (lua_State *L, int n) |
|
static int | doargs (int argc, char *argv[]) |
|
static void | fatal (const char *message) |
|
int | main (int argc, char *argv[]) |
|
static int | pmain (lua_State *L) |
|
static void | PrintCode (const Proto *f) |
|
static void | PrintConstant (const Proto *f, int i) |
|
static void | PrintDebug (const Proto *f) |
|
static void | PrintFunction (const Proto *f, int full) |
|
static void | PrintHeader (const Proto *f) |
|
static void | PrintString (const TString *ts) |
|
static void | PrintType (const Proto *f, int i) |
|
static const char * | reader (lua_State *L, void *ud, size_t *size) |
|
static void | usage (const char *message) |
|
static int | writer (lua_State *L, const void *p, size_t size, void *u) |
|
◆ COMMENT
◆ eventname
◆ EXTRAARG
◆ EXTRAARGC
◆ FUNCTION
#define FUNCTION "(function()end)();" |
◆ IS
#define IS |
( |
|
s | ) |
(strcmp(argv[i],s)==0) |
◆ ISK
#define ISK (isk ? "k" : "") |
◆ LUA_CORE
Definition at line 8 of file luac.c.
◆ luac_c
Definition at line 7 of file luac.c.
◆ luaU_print
◆ OUTPUT
◆ PROGNAME
#define PROGNAME "luac" /* default program name */ |
#define S |
( |
|
x | ) |
(int)(x),SS(x) |
◆ SS
#define SS |
( |
|
x | ) |
((x==1)?"":"s") |
◆ toproto
◆ UPVALNAME
#define UPVALNAME |
( |
|
x | ) |
((f->upvalues[x].name) ? getstr(f->upvalues[x].name) : "-") |
◆ VOID
#define VOID |
( |
|
p | ) |
((const void*)(p)) |
◆ cannot()
static void cannot |
( |
const char * |
what | ) |
|
|
static |
◆ combine()
◆ doargs()
static int doargs |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
◆ fatal()
static void fatal |
( |
const char * |
message | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ pmain()
◆ PrintCode()
static void PrintCode |
( |
const Proto * |
f | ) |
|
|
static |
◆ PrintConstant()
static void PrintConstant |
( |
const Proto * |
f, |
|
|
int |
i |
|
) |
| |
|
static |
◆ PrintDebug()
static void PrintDebug |
( |
const Proto * |
f | ) |
|
|
static |
◆ PrintFunction()
static void PrintFunction |
( |
const Proto * |
f, |
|
|
int |
full |
|
) |
| |
|
static |
◆ PrintHeader()
static void PrintHeader |
( |
const Proto * |
f | ) |
|
|
static |
◆ PrintString()
static void PrintString |
( |
const TString * |
ts | ) |
|
|
static |
◆ PrintType()
static void PrintType |
( |
const Proto * |
f, |
|
|
int |
i |
|
) |
| |
|
static |
◆ reader()
static const char* reader |
( |
lua_State * |
L, |
|
|
void * |
ud, |
|
|
size_t * |
size |
|
) |
| |
|
static |
◆ usage()
static void usage |
( |
const char * |
message | ) |
|
|
static |
◆ writer()
static int writer |
( |
lua_State * |
L, |
|
|
const void * |
p, |
|
|
size_t |
size, |
|
|
void * |
u |
|
) |
| |
|
static |
◆ dumping
◆ listing
◆ Output
◆ output
◆ progname
◆ stripping
◆ tmname