Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "ldo.h"
#include "lfunc.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstring.h"
#include "lundump.h"
Go to the source code of this file.
Data Structures | |
struct | Smain |
Macros | |
#define | luac_c |
#define | LUA_CORE |
#define | PROGNAME "luac" /* default program name */ |
#define | OUTPUT PROGNAME ".out" /* default output file */ |
#define | IS(s) (strcmp(argv[i],s)==0) |
#define | toproto(L, i) (clvalue(L->top+(i))->l.p) |
Functions | |
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 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[]) |
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 |
Definition at line 68 of file lua-5.1.5/src/luac.c.
#define LUA_CORE |
Definition at line 13 of file lua-5.1.5/src/luac.c.
#define luac_c |
Definition at line 12 of file lua-5.1.5/src/luac.c.
Definition at line 27 of file lua-5.1.5/src/luac.c.
#define PROGNAME "luac" /* default program name */ |
Definition at line 26 of file lua-5.1.5/src/luac.c.
Referenced by combine().
#define toproto | ( | L, | |
i ) (clvalue(L->top+(i))->l.p) |
Definition at line 117 of file lua-5.1.5/src/luac.c.
Referenced by combine().
|
static |
Definition at line 42 of file lua-5.1.5/src/luac.c.
References output, and progname.
Referenced by pmain().
Definition at line 119 of file lua-5.1.5/src/luac.c.
References Proto::code, CREATE_ABC, CREATE_ABx, 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 |
Definition at line 70 of file lua-5.1.5/src/luac.c.
References dumping, IS, listing, LUA_COPYRIGHT, LUA_QL, LUA_RELEASE, NULL, Output, output, printf, progname, stripping, and usage().
Referenced by main().
|
static |
Definition at line 36 of file lua-5.1.5/src/luac.c.
References progname.
Referenced by duk_err_setup_heap_ljstate(), main(), and pmain().
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 186 of file lua-5.1.5/src/luac.c.
References Smain::argc, Smain::argv, doargs(), fatal(), lua_close(), lua_cpcall(), lua_open, lua_tostring, NULL, pmain(), s, and usage().
|
static |
Definition at line 158 of file lua-5.1.5/src/luac.c.
References Smain::argc, Smain::argv, cannot(), combine(), dumping, fatal(), IS, listing, lua_checkstack(), lua_lock, lua_tostring, lua_touserdata(), lua_unlock, luaL_loadfile, luaU_dump(), luaU_print, NULL, output, s, stripping, and writer().
Referenced by main().
|
static |
Definition at line 48 of file lua-5.1.5/src/luac.c.
|
static |
|
static |
Definition at line 30 of file lua-5.1.5/src/luac.c.
|
static |
Definition at line 29 of file lua-5.1.5/src/luac.c.
|
static |
Definition at line 32 of file lua-5.1.5/src/luac.c.
|
static |
Definition at line 33 of file lua-5.1.5/src/luac.c.
Referenced by cannot(), display_output(), doargs(), get_req_headers(), pmain(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
|
static |
|
static |
Definition at line 31 of file lua-5.1.5/src/luac.c.