mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Internalized string "break" kept by the parser
The parser uses "break" as fake label to compile "break" as "goto break". To avoid producing this string at each use, it keeps it available in its state.
This commit is contained in:
parent
fded0b4a84
commit
3fb7a77731
3 changed files with 7 additions and 3 deletions
1
llex.h
1
llex.h
|
|
@ -75,6 +75,7 @@ typedef struct LexState {
|
|||
struct Dyndata *dyd; /* dynamic structures used by the parser */
|
||||
TString *source; /* current source name */
|
||||
TString *envn; /* environment variable name */
|
||||
TString *brkn; /* "break" name (used as a label) */
|
||||
} LexState;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue