diff options
| -rw-r--r-- | lobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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 | */ |
| 392 | typedef struct Upvaldesc { | 392 | typedef 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; |
