mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
avoid C stack overflow during parsing
This commit is contained in:
parent
007f229568
commit
04b143ddf9
3 changed files with 22 additions and 4 deletions
3
llex.h
3
llex.h
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: llex.h,v 1.44 2002/09/03 11:57:38 roberto Exp roberto $
|
||||
** $Id: llex.h,v 1.45 2002/10/08 18:46:08 roberto Exp roberto $
|
||||
** Lexical Analyzer
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -59,6 +59,7 @@ typedef struct LexState {
|
|||
ZIO *z; /* input stream */
|
||||
Mbuffer *buff; /* buffer for tokens */
|
||||
TString *source; /* current source name */
|
||||
int nestlevel; /* level of nested non-terminals */
|
||||
} LexState;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue