diff options
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r-- | src/lj_lex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_lex.h b/src/lj_lex.h index ee183b40..9bcd3cdb 100644 --- a/src/lj_lex.h +++ b/src/lj_lex.h | |||
@@ -32,6 +32,12 @@ TKDEF(TKENUM1, TKENUM2) | |||
32 | 32 | ||
33 | typedef int LexToken; | 33 | typedef int LexToken; |
34 | 34 | ||
35 | /* Combined bytecode ins/line. Only used during bytecode generation. */ | ||
36 | typedef struct BCInsLine { | ||
37 | BCIns ins; /* Bytecode instruction. */ | ||
38 | BCLine line; /* Line number for this bytecode. */ | ||
39 | } BCInsLine; | ||
40 | |||
35 | /* Lua lexer state. */ | 41 | /* Lua lexer state. */ |
36 | typedef struct LexState { | 42 | typedef struct LexState { |
37 | struct FuncState *fs; /* Current FuncState. Defined in lj_parse.c. */ | 43 | struct FuncState *fs; /* Current FuncState. Defined in lj_parse.c. */ |
@@ -53,6 +59,8 @@ typedef struct LexState { | |||
53 | VarInfo *vstack; /* Stack for names and extents of local variables. */ | 59 | VarInfo *vstack; /* Stack for names and extents of local variables. */ |
54 | MSize sizevstack; /* Size of variable stack. */ | 60 | MSize sizevstack; /* Size of variable stack. */ |
55 | MSize vtop; /* Top of variable stack. */ | 61 | MSize vtop; /* Top of variable stack. */ |
62 | BCInsLine *bcstack; /* Stack for bytecode instructions/line numbers. */ | ||
63 | MSize sizebcstack; /* Size of bytecode stack. */ | ||
56 | uint32_t level; /* Syntactical nesting level. */ | 64 | uint32_t level; /* Syntactical nesting level. */ |
57 | } LexState; | 65 | } LexState; |
58 | 66 | ||