aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-14 14:58:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-14 14:58:57 -0300
commit2b37f2150ef2630d594628d94b261cd9e6173e5a (patch)
tree8ec800ac8ff0dc657258d43f1a6af8a07f4ba1e3 /lobject.h
parent331632e8d8861a62b69ae7c3c9a148411c5a44ab (diff)
downloadlua-2b37f2150ef2630d594628d94b261cd9e6173e5a.tar.gz
lua-2b37f2150ef2630d594628d94b261cd9e6173e5a.tar.bz2
lua-2b37f2150ef2630d594628d94b261cd9e6173e5a.zip
comments
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lobject.h b/lobject.h
index 2897deac..58e1b18c 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.107 2015/01/16 16:54:37 roberto Exp roberto $ 2** $Id: lobject.h,v 2.108 2015/03/02 16:04:52 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -391,7 +391,7 @@ typedef union UUdata {
391*/ 391*/
392typedef struct Upvaldesc { 392typedef struct Upvaldesc {
393 TString *name; /* upvalue name (for debug information) */ 393 TString *name; /* upvalue name (for debug information) */
394 lu_byte instack; /* whether it is in stack */ 394 lu_byte instack; /* whether it is in stack (register) */
395 lu_byte idx; /* index of upvalue (in stack or in outer function's list) */ 395 lu_byte idx; /* index of upvalue (in stack or in outer function's list) */
396} Upvaldesc; 396} Upvaldesc;
397 397
@@ -414,7 +414,7 @@ typedef struct Proto {
414 CommonHeader; 414 CommonHeader;
415 lu_byte numparams; /* number of fixed parameters */ 415 lu_byte numparams; /* number of fixed parameters */
416 lu_byte is_vararg; 416 lu_byte is_vararg;
417 lu_byte maxstacksize; /* maximum stack used by this function */ 417 lu_byte maxstacksize; /* number of registers needed by this function */
418 int sizeupvalues; /* size of 'upvalues' */ 418 int sizeupvalues; /* size of 'upvalues' */
419 int sizek; /* size of 'k' */ 419 int sizek; /* size of 'k' */
420 int sizecode; 420 int sizecode;
@@ -424,12 +424,12 @@ typedef struct Proto {
424 int linedefined; 424 int linedefined;
425 int lastlinedefined; 425 int lastlinedefined;
426 TValue *k; /* constants used by the function */ 426 TValue *k; /* constants used by the function */
427 Instruction *code; 427 Instruction *code; /* opcodes */
428 struct Proto **p; /* functions defined inside the function */ 428 struct Proto **p; /* functions defined inside the function */
429 int *lineinfo; /* map from opcodes to source lines (debug information) */ 429 int *lineinfo; /* map from opcodes to source lines (debug information) */
430 LocVar *locvars; /* information about local variables (debug information) */ 430 LocVar *locvars; /* information about local variables (debug information) */
431 Upvaldesc *upvalues; /* upvalue information */ 431 Upvaldesc *upvalues; /* upvalue information */
432 struct LClosure *cache; /* last created closure with this prototype */ 432 struct LClosure *cache; /* last-created closure with this prototype */
433 TString *source; /* used for debug information */ 433 TString *source; /* used for debug information */
434 GCObject *gclist; 434 GCObject *gclist;
435} Proto; 435} Proto;