diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-22 14:35:20 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-22 14:35:20 -0200 |
commit | 04b143ddf931f5312209ddfc1d8d14ede6997afd (patch) | |
tree | 3a06772a43d0b966e62e0e96a1ff729f8db4f921 /llex.h | |
parent | 007f229568ec47a2b6659ef3049b9ed03ccac72d (diff) | |
download | lua-github-04b143ddf931f5312209ddfc1d8d14ede6997afd.tar.gz |
avoid C stack overflow during parsing
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |