Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
luac.c File Reference
#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 <ctype.h>
#include "ldebug.h"
#include "lopcodes.h"

Go to the source code of this file.

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 Protocombine (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
 

Macro Definition Documentation

◆ FUNCTION

#define FUNCTION   "(function()end)();"

Definition at line 117 of file lua-5.2.4/src/luac.c.

Referenced by reader().

◆ IS

#define IS ( s)    (strcmp(argv[i],s)==0)

Definition at line 67 of file lua-5.2.4/src/luac.c.

Referenced by doargs(), and pmain().

◆ LUA_CORE [1/2]

#define LUA_CORE

Definition at line 13 of file lua-5.2.4/src/luac.c.

◆ LUA_CORE [2/2]

#define LUA_CORE

Definition at line 13 of file lua-5.2.4/src/luac.c.

◆ luac_c [1/2]

#define luac_c

Definition at line 12 of file lua-5.2.4/src/luac.c.

◆ luac_c [2/2]

#define luac_c

Definition at line 12 of file lua-5.2.4/src/luac.c.

◆ luaU_print

#define luaU_print   PrintFunction

Definition at line 23 of file lua-5.2.4/src/luac.c.

Referenced by pmain(), and pmain().

◆ MYK

#define MYK ( x)    (-1-(x))

Definition at line 275 of file lua-5.2.4/src/luac.c.

Referenced by PrintCode().

◆ OUTPUT

#define OUTPUT   PROGNAME ".out" /* default output file */

Definition at line 26 of file lua-5.2.4/src/luac.c.

◆ PROGNAME

#define PROGNAME   "luac" /* default program name */

Definition at line 25 of file lua-5.2.4/src/luac.c.

Referenced by combine().

◆ S

#define S ( x)    (int)(x),SS(x)

Definition at line 376 of file lua-5.2.4/src/luac.c.

Referenced by PrintHeader().

◆ SS

#define SS ( x)    ((x==1)?"":"s")

Definition at line 375 of file lua-5.2.4/src/luac.c.

Referenced by PrintHeader().

◆ toproto

#define toproto ( L,
i )   getproto(L->top+(i))

Definition at line 134 of file lua-5.2.4/src/luac.c.

Referenced by combine().

◆ UPVALNAME

#define UPVALNAME ( x)    ((f->upvalues[x].name) ? getstr(f->upvalues[x].name) : "-")

Definition at line 274 of file lua-5.2.4/src/luac.c.

Referenced by PrintCode(), and PrintDebug().

◆ VOID

#define VOID ( p)    ((const void*)(p))

Definition at line 221 of file lua-5.2.4/src/luac.c.

Referenced by PrintCode(), PrintDebug(), and PrintHeader().

Function Documentation

◆ cannot()

static void cannot ( const char * what)
static

Definition at line 41 of file lua-5.2.4/src/luac.c.

42{
43 fprintf(stderr,"%s: cannot %s %s: %s\n",progname,what,output,strerror(errno));
44 exit(EXIT_FAILURE);
45}
static const char * output
static const char * progname

References output, and progname.

Referenced by pmain().

◆ combine()

static const Proto * combine ( lua_State * L,
int n )
static

Definition at line 136 of file lua-5.2.4/src/luac.c.

137{
138 if (n==1)
139 return toproto(L,-1);
140 else
141 {
142 Proto* f;
143 int i=n;
144 if (lua_load(L,reader,&i,"=(" PROGNAME ")",NULL)!=LUA_OK) fatal(lua_tostring(L,-1));
145 f=toproto(L,-1);
146 for (i=0; i<n; i++)
147 {
148 f->p[i]=toproto(L,i-n-1);
149 if (f->p[i]->sizeupvalues>0) f->p[i]->upvalues[0].instack=0;
150 }
151 f->sizelineinfo=0;
152 return f;
153 }
154}
#define NULL
Definition gmacros.h:924
LUA_API int lua_load(lua_State *L, lua_Reader reader, void *data, const char *chunkname)
#define lua_tostring(L, i)
#define LUA_OK
#define toproto(L, i)
static const char * reader(lua_State *L, void *ud, size_t *size)
static void fatal(const char *message)
#define PROGNAME
struct Proto ** p
TString ** upvalues

References fatal(), lua_load(), LUA_OK, lua_tostring, NULL, Proto::p, PROGNAME, reader(), Proto::sizelineinfo, Proto::sizeupvalues, toproto, and Proto::upvalues.

Referenced by pmain().

◆ doargs()

static int doargs ( int argc,
char * argv[] )
static

Definition at line 69 of file lua-5.2.4/src/luac.c.

70{
71 int i;
72 int version=0;
73 if (argv[0]!=NULL && *argv[0]!=0) progname=argv[0];
74 for (i=1; i<argc; i++)
75 {
76 if (*argv[i]!='-') /* end of options; keep it */
77 break;
78 else if (IS("--")) /* end of options; skip it */
79 {
80 ++i;
81 if (version) ++version;
82 break;
83 }
84 else if (IS("-")) /* end of options; use stdin */
85 break;
86 else if (IS("-l")) /* list */
87 ++listing;
88 else if (IS("-o")) /* output file */
89 {
90 output=argv[++i];
91 if (output==NULL || *output==0 || (*output=='-' && output[1]!=0))
92 usage(LUA_QL("-o") " needs argument");
93 if (IS("-")) output=NULL;
94 }
95 else if (IS("-p")) /* parse only */
96 dumping=0;
97 else if (IS("-s")) /* strip debug information */
98 stripping=1;
99 else if (IS("-v")) /* show version */
100 ++version;
101 else /* unknown option */
102 usage(argv[i]);
103 }
104 if (i==argc && (listing || !dumping))
105 {
106 dumping=0;
107 argv[--i]=Output;
108 }
109 if (version)
110 {
111 printf("%s\n",LUA_COPYRIGHT);
112 if (version==argc-1) exit(EXIT_SUCCESS);
113 }
114 return i;
115}
#define LUA_COPYRIGHT
#define LUA_QL(x)
static int stripping
static int dumping
static void usage(const char *message)
#define IS(s)
static char Output[]
static int listing
#define printf

References dumping, IS, listing, LUA_COPYRIGHT, LUA_QL, NULL, Output, output, printf, progname, stripping, and usage().

Referenced by main().

◆ fatal()

static void fatal ( const char * message)
static

Definition at line 35 of file lua-5.2.4/src/luac.c.

36{
37 fprintf(stderr,"%s: %s\n",progname,message);
38 exit(EXIT_FAILURE);
39}

References progname.

Referenced by combine(), main(), and pmain().

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 189 of file lua-5.2.4/src/luac.c.

190{
191 lua_State* L;
192 int i=doargs(argc,argv);
193 argc-=i; argv+=i;
194 if (argc<=0) usage("no input files given");
195 L=luaL_newstate();
196 if (L==NULL) fatal("cannot create state: not enough memory");
198 lua_pushinteger(L,argc);
199 lua_pushlightuserdata(L,argv);
200 if (lua_pcall(L,2,0,0)!=LUA_OK) fatal(lua_tostring(L,-1));
201 lua_close(L);
202 return EXIT_SUCCESS;
203}
LUA_API void lua_pushlightuserdata(lua_State *L, void *p)
LUA_API void lua_pushinteger(lua_State *L, lua_Integer n)
LUALIB_API lua_State * luaL_newstate(void)
LUA_API void lua_close(lua_State *L)
#define lua_pushcfunction(L, f)
#define lua_pcall(L, n, r, f)
static int doargs(int argc, char *argv[])
static int pmain(lua_State *L)

References doargs(), fatal(), lua_close(), LUA_OK, lua_pcall, lua_pushcfunction, lua_pushinteger(), lua_pushlightuserdata(), lua_tostring, luaL_newstate(), NULL, pmain(), and usage().

◆ pmain()

static int pmain ( lua_State * L)
static

Definition at line 162 of file lua-5.2.4/src/luac.c.

163{
164 int argc=(int)lua_tointeger(L,1);
165 char** argv=(char**)lua_touserdata(L,2);
166 const Proto* f;
167 int i;
168 if (!lua_checkstack(L,argc)) fatal("too many input files");
169 for (i=0; i<argc; i++)
170 {
171 const char* filename=IS("-") ? NULL : argv[i];
172 if (luaL_loadfile(L,filename)!=LUA_OK) fatal(lua_tostring(L,-1));
173 }
174 f=combine(L,argc);
175 if (listing) luaU_print(f,listing>1);
176 if (dumping)
177 {
178 FILE* D= (output==NULL) ? stdout : fopen(output,"wb");
179 if (D==NULL) cannot("open");
180 lua_lock(L);
182 lua_unlock(L);
183 if (ferror(D)) cannot("write");
184 if (fclose(D)) cannot("close");
185 }
186 return 0;
187}
LUA_API void * lua_touserdata(lua_State *L, int idx)
LUA_API int lua_checkstack(lua_State *L, int size)
int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
#define lua_unlock(L)
#define lua_lock(L)
#define luaL_loadfile(L, f)
#define lua_tointeger(L, i)
static const Proto * combine(lua_State *L, int n)
#define luaU_print
static int writer(lua_State *L, const void *p, size_t size, void *u)
static void cannot(const char *what)

References cannot(), combine(), dumping, fatal(), IS, listing, lua_checkstack(), lua_lock, LUA_OK, lua_tointeger, lua_tostring, lua_touserdata(), lua_unlock, luaL_loadfile, luaU_dump(), luaU_print, NULL, output, stripping, and writer().

Referenced by main().

◆ PrintCode()

static void PrintCode ( const Proto * f)
static

Definition at line 277 of file lua-5.2.4/src/luac.c.

278{
279 const Instruction* code=f->code;
280 int pc,n=f->sizecode;
281 for (pc=0; pc<n; pc++)
282 {
283 Instruction i=code[pc];
284 OpCode o=GET_OPCODE(i);
285 int a=GETARG_A(i);
286 int b=GETARG_B(i);
287 int c=GETARG_C(i);
288 int ax=GETARG_Ax(i);
289 int bx=GETARG_Bx(i);
290 int sbx=GETARG_sBx(i);
291 int line=getfuncline(f,pc);
292 printf("\t%d\t",pc+1);
293 if (line>0) printf("[%d]\t",line); else printf("[-]\t");
294 printf("%-9s\t",luaP_opnames[o]);
295 switch (getOpMode(o))
296 {
297 case iABC:
298 printf("%d",a);
299 if (getBMode(o)!=OpArgN) printf(" %d",ISK(b) ? (MYK(INDEXK(b))) : b);
300 if (getCMode(o)!=OpArgN) printf(" %d",ISK(c) ? (MYK(INDEXK(c))) : c);
301 break;
302 case iABx:
303 printf("%d",a);
304 if (getBMode(o)==OpArgK) printf(" %d",MYK(bx));
305 if (getBMode(o)==OpArgU) printf(" %d",bx);
306 break;
307 case iAsBx:
308 printf("%d %d",a,sbx);
309 break;
310 case iAx:
311 printf("%d",MYK(ax));
312 break;
313 }
314 switch (o)
315 {
316 case OP_LOADK:
317 printf("\t; "); PrintConstant(f,bx);
318 break;
319 case OP_GETUPVAL:
320 case OP_SETUPVAL:
321 printf("\t; %s",UPVALNAME(b));
322 break;
323 case OP_GETTABUP:
324 printf("\t; %s",UPVALNAME(b));
325 if (ISK(c)) { printf(" "); PrintConstant(f,INDEXK(c)); }
326 break;
327 case OP_SETTABUP:
328 printf("\t; %s",UPVALNAME(a));
329 if (ISK(b)) { printf(" "); PrintConstant(f,INDEXK(b)); }
330 if (ISK(c)) { printf(" "); PrintConstant(f,INDEXK(c)); }
331 break;
332 case OP_GETTABLE:
333 case OP_SELF:
334 if (ISK(c)) { printf("\t; "); PrintConstant(f,INDEXK(c)); }
335 break;
336 case OP_SETTABLE:
337 case OP_ADD:
338 case OP_SUB:
339 case OP_MUL:
340 case OP_DIV:
341 case OP_POW:
342 case OP_EQ:
343 case OP_LT:
344 case OP_LE:
345 if (ISK(b) || ISK(c))
346 {
347 printf("\t; ");
348 if (ISK(b)) PrintConstant(f,INDEXK(b)); else printf("-");
349 printf(" ");
350 if (ISK(c)) PrintConstant(f,INDEXK(c)); else printf("-");
351 }
352 break;
353 case OP_JMP:
354 case OP_FORLOOP:
355 case OP_FORPREP:
356 case OP_TFORLOOP:
357 printf("\t; to %d",sbx+pc+2);
358 break;
359 case OP_CLOSURE:
360 printf("\t; %p",VOID(f->p[bx]));
361 break;
362 case OP_SETLIST:
363 if (c==0) printf("\t; %d",(int)code[++pc]); else printf("\t; %d",c);
364 break;
365 case OP_EXTRAARG:
366 printf("\t; "); PrintConstant(f,ax);
367 break;
368 default:
369 break;
370 }
371 printf("\n");
372 }
373}
lu_int32 Instruction
const char *const luaP_opnames[NUM_OPCODES+1]
#define ISK(x)
#define GETARG_A(i)
#define GETARG_sBx(i)
#define GETARG_B(i)
#define getCMode(m)
#define GET_OPCODE(i)
#define INDEXK(r)
#define GETARG_Bx(i)
#define getBMode(m)
#define GETARG_C(i)
#define getOpMode(m)
#define getfuncline(f, pc)
#define GETARG_Ax(i)
#define UPVALNAME(x)
#define VOID(p)
static void PrintConstant(const Proto *f, int i)
#define MYK(x)
Instruction * code

References Proto::code, GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, GETARG_sBx, getBMode, getCMode, getfuncline, getOpMode, iABC, iABx, iAsBx, iAx, INDEXK, ISK, luaP_opnames, MYK, OP_ADD, OP_CLOSURE, OP_DIV, OP_EQ, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_JMP, OP_LE, OP_LOADK, OP_LT, OP_MUL, OP_POW, OP_SELF, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SUB, OP_TFORLOOP, OpArgK, OpArgN, OpArgU, Proto::p, PrintConstant(), printf, Proto::sizecode, UPVALNAME, and VOID.

Referenced by PrintFunction().

◆ PrintConstant()

static void PrintConstant ( const Proto * f,
int i )
static

Definition at line 251 of file lua-5.2.4/src/luac.c.

252{
253 const TValue* o=&f->k[i];
254 switch (ttypenv(o))
255 {
256 case LUA_TNIL:
257 printf("nil");
258 break;
259 case LUA_TBOOLEAN:
260 printf(bvalue(o) ? "true" : "false");
261 break;
262 case LUA_TNUMBER:
264 break;
265 case LUA_TSTRING:
267 break;
268 default: /* cannot happen */
269 printf("? type=%d",ttype(o));
270 break;
271 }
272}
#define nvalue(o)
#define rawtsvalue(o)
#define bvalue(o)
#define ttype(o)
#define LUA_TSTRING
#define LUA_TBOOLEAN
#define LUA_TNUMBER
#define LUA_TNIL
#define LUA_NUMBER_FMT
#define ttypenv(o)
static void PrintString(const TString *ts)

References bvalue, Proto::k, LUA_NUMBER_FMT, LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, nvalue, printf, PrintString(), rawtsvalue, ttype, and ttypenv.

Referenced by PrintCode(), and PrintDebug().

◆ PrintDebug()

static void PrintDebug ( const Proto * f)
static

Definition at line 398 of file lua-5.2.4/src/luac.c.

399{
400 int i,n;
401 n=f->sizek;
402 printf("constants (%d) for %p:\n",n,VOID(f));
403 for (i=0; i<n; i++)
404 {
405 printf("\t%d\t",i+1);
406 PrintConstant(f,i);
407 printf("\n");
408 }
409 n=f->sizelocvars;
410 printf("locals (%d) for %p:\n",n,VOID(f));
411 for (i=0; i<n; i++)
412 {
413 printf("\t%d\t%s\t%d\t%d\n",
414 i,getstr(f->locvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1);
415 }
416 n=f->sizeupvalues;
417 printf("upvalues (%d) for %p:\n",n,VOID(f));
418 for (i=0; i<n; i++)
419 {
420 printf("\t%d\t%s\t%d\t%d\n",
421 i,UPVALNAME(i),f->upvalues[i].instack,f->upvalues[i].idx);
422 }
423}
#define getstr(ts)
TString * varname
struct LocVar * locvars

References LocVar::endpc, getstr, Proto::locvars, PrintConstant(), printf, Proto::sizek, Proto::sizelocvars, Proto::sizeupvalues, LocVar::startpc, UPVALNAME, Proto::upvalues, LocVar::varname, and VOID.

Referenced by PrintFunction().

◆ PrintFunction()

static void PrintFunction ( const Proto * f,
int full )
static

Definition at line 425 of file lua-5.2.4/src/luac.c.

426{
427 int i,n=f->sizep;
428 PrintHeader(f);
429 PrintCode(f);
430 if (full) PrintDebug(f);
431 for (i=0; i<n; i++) PrintFunction(f->p[i],full);
432}
static void PrintDebug(const Proto *f)
static void PrintHeader(const Proto *f)
static void PrintCode(const Proto *f)
#define PrintFunction
Definition print.c:18

References Proto::p, PrintCode(), PrintDebug(), PrintFunction, PrintHeader(), and Proto::sizep.

◆ PrintHeader()

static void PrintHeader ( const Proto * f)
static

Definition at line 378 of file lua-5.2.4/src/luac.c.

379{
380 const char* s=f->source ? getstr(f->source) : "=?";
381 if (*s=='@' || *s=='=')
382 s++;
383 else if (*s==LUA_SIGNATURE[0])
384 s="(bstring)";
385 else
386 s="(string)";
387 printf("\n%s <%s:%d,%d> (%d instruction%s at %p)\n",
388 (f->linedefined==0)?"main":"function",s,
389 f->linedefined,f->lastlinedefined,
390 S(f->sizecode),VOID(f));
391 printf("%d%s param%s, %d slot%s, %d upvalue%s, ",
392 (int)(f->numparams),f->is_vararg?"+":"",SS(f->numparams),
393 S(f->maxstacksize),S(f->sizeupvalues));
394 printf("%d local%s, %d constant%s, %d function%s\n",
395 S(f->sizelocvars),S(f->sizek),S(f->sizep));
396}
#define LUA_SIGNATURE
#define SS(x)
#define S(x)
CURL_EXTERN CURLMcode curl_socket_t s
Definition multi.h:318
TString * source

References getstr, Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, LUA_SIGNATURE, Proto::maxstacksize, Proto::numparams, printf, S, s, Proto::sizecode, Proto::sizek, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, SS, and VOID.

Referenced by PrintFunction().

◆ PrintString()

static void PrintString ( const TString * ts)
static

Definition at line 223 of file lua-5.2.4/src/luac.c.

224{
225 const char* s=getstr(ts);
226 size_t i,n=ts->tsv.len;
227 printf("%c",'"');
228 for (i=0; i<n; i++)
229 {
230 int c=(int)(unsigned char)s[i];
231 switch (c)
232 {
233 case '"': printf("\\\""); break;
234 case '\\': printf("\\\\"); break;
235 case '\a': printf("\\a"); break;
236 case '\b': printf("\\b"); break;
237 case '\f': printf("\\f"); break;
238 case '\n': printf("\\n"); break;
239 case '\r': printf("\\r"); break;
240 case '\t': printf("\\t"); break;
241 case '\v': printf("\\v"); break;
242 default: if (isprint(c))
243 printf("%c",c);
244 else
245 printf("\\%03d",c);
246 }
247 }
248 printf("%c",'"');
249}
struct TString::@46 tsv

References getstr, TString::len, printf, s, and TString::tsv.

Referenced by PrintConstant().

◆ reader()

static const char * reader ( lua_State * L,
void * ud,
size_t * size )
static

Definition at line 119 of file lua-5.2.4/src/luac.c.

120{
121 UNUSED(L);
122 if ((*(int*)ud)--)
123 {
124 *size=sizeof(FUNCTION)-1;
125 return FUNCTION;
126 }
127 else
128 {
129 *size=0;
130 return NULL;
131 }
132}
#define UNUSED(x)
#define FUNCTION

References FUNCTION, NULL, and UNUSED.

Referenced by combine(), lua_load(), lua_load(), and luaZ_init().

◆ usage()

static void usage ( const char * message)
static

Definition at line 47 of file lua-5.2.4/src/luac.c.

48{
49 if (*message=='-')
50 fprintf(stderr,"%s: unrecognized option " LUA_QS "\n",progname,message);
51 else
52 fprintf(stderr,"%s: %s\n",progname,message);
53 fprintf(stderr,
54 "usage: %s [options] [filenames]\n"
55 "Available options are:\n"
56 " -l list (use -l -l for full listing)\n"
57 " -o name output to file " LUA_QL("name") " (default is \"%s\")\n"
58 " -p parse only\n"
59 " -s strip debug information\n"
60 " -v show version information\n"
61 " -- stop handling options\n"
62 " - stop handling options and process stdin\n"
64 exit(EXIT_FAILURE);
65}
#define LUA_QS

References LUA_QL, LUA_QS, Output, and progname.

Referenced by doargs(), and main().

◆ writer()

static int writer ( lua_State * L,
const void * p,
size_t size,
void * u )
static

Definition at line 156 of file lua-5.2.4/src/luac.c.

157{
158 UNUSED(L);
159 return (fwrite(p,size,1,(FILE*)u)!=1) && (size!=0);
160}
size_t fwrite(const void *, size_t, size_t, FILE *)

References fwrite(), and UNUSED.

Referenced by pmain().

Variable Documentation

◆ dumping

int dumping =1
static

Definition at line 29 of file lua-5.2.4/src/luac.c.

Referenced by doargs(), and pmain().

◆ listing

int listing =0
static

Definition at line 28 of file lua-5.2.4/src/luac.c.

Referenced by doargs(), and pmain().

◆ Output

char Output[] ={ OUTPUT }
static

Definition at line 31 of file lua-5.2.4/src/luac.c.

31{ OUTPUT }; /* default output file name */
#define OUTPUT

Referenced by doargs(), and usage().

◆ output

const char* output =Output
static

Definition at line 32 of file lua-5.2.4/src/luac.c.

Referenced by cannot(), doargs(), and pmain().

◆ progname

const char* progname =PROGNAME
static

Definition at line 33 of file lua-5.2.4/src/luac.c.

Referenced by cannot(), doargs(), fatal(), and usage().

◆ stripping

int stripping =0
static

Definition at line 30 of file lua-5.2.4/src/luac.c.

Referenced by doargs(), and pmain().