|
RetroArch
|
#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 "lobject.h"#include "lstate.h"#include "lundump.h"#include "ldebug.h"#include "lopcodes.h"Macros | |
| #define | luac_c |
| #define | LUA_CORE |
| #define | luaU_print PrintFunction |
| #define | PROGNAME "luac" /* default program name */ |
| #define | OUTPUT PROGNAME ".out" /* default output file */ |
| #define | IS(s) (strcmp(argv[i],s)==0) |
| #define | FUNCTION "(function()end)();" |
| #define | toproto(L, i) getproto(L->top+(i)) |
| #define | luac_c |
| #define | LUA_CORE |
| #define | VOID(p) ((const void*)(p)) |
| #define | UPVALNAME(x) ((f->upvalues[x].name) ? getstr(f->upvalues[x].name) : "-") |
| #define | MYK(x) (-1-(x)) |
| #define | SS(x) ((x==1)?"":"s") |
| #define | S(x) (int)(x),SS(x) |
Functions | |
| static void | PrintFunction (const Proto *f, int full) |
| static void | fatal (const char *message) |
| static void | cannot (const char *what) |
| static void | usage (const char *message) |
| static int | doargs (int argc, char *argv[]) |
| static const char * | reader (lua_State *L, void *ud, size_t *size) |
| static const Proto * | combine (lua_State *L, int n) |
| static int | writer (lua_State *L, const void *p, size_t size, void *u) |
| static int | pmain (lua_State *L) |
| int | main (int argc, char *argv[]) |
| 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 | PrintDebug (const Proto *f) |
Variables | |
| static int | listing =0 |
| static int | dumping =1 |
| static int | stripping =0 |
| static char | Output [] ={ OUTPUT } |
| static const char * | output =Output |
| static const char * | progname =PROGNAME |
| #define FUNCTION "(function()end)();" |
| #define LUA_CORE |
| #define LUA_CORE |
| #define luac_c |
| #define luac_c |
| #define luaU_print PrintFunction |
|
static |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15