luac.c File Reference
Go to the source code of this file.
Define Documentation
#define IS |
( |
s |
|
) |
(strcmp(argv[i],s)==0) |
#define OUTPUT PROGNAME ".out" |
#define toproto |
( |
L, |
|
|
i |
|
) |
(clvalue(L->top+(i))->l.p) |
Function Documentation
static void cannot |
( |
const char * |
what |
) |
[static] |
Definition at line 119 of file luac.c.
References Proto::code, CREATE_ABC, CREATE_ABx, f(), incr_top, luaF_newproto(), luaM_newvector, luaS_newliteral, Proto::maxstacksize, OP_CALL, OP_CLOSURE, OP_RETURN, Proto::p, PROGNAME, setptvalue2s, Proto::sizecode, Proto::sizep, Proto::source, lua_State::top, and toproto.
Referenced by pmain().
static int doargs |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | [static] |
Definition at line 70 of file luac.c.
References dumping, IS, listing, LUA_COPYRIGHT, LUA_QL, LUA_RELEASE, Output, output, progname, stripping, and usage().
Referenced by main().
static void fatal |
( |
const char * |
message |
) |
[static] |
int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
Definition at line 158 of file luac.c.
References Smain::argc, Smain::argv, cannot(), combine(), dumping, f(), fatal(), IS, listing, lua_checkstack(), lua_lock, lua_tostring, lua_touserdata(), lua_unlock, luaL_loadfile(), luaU_dump(), luaU_print(), output, stripping, and writer().
Referenced by main().
static void usage |
( |
const char * |
message |
) |
[static] |
static int writer |
( |
lua_State * |
L, |
|
|
const void * |
p, |
|
|
size_t |
size, |
|
|
void * |
u | |
|
) |
| | [static] |
Variable Documentation
char Output[] = { OUTPUT } [static] |
const char* progname = PROGNAME [static] |