diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-10-11 17:02:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-10-11 17:02:19 -0300 |
commit | 916587508c117decb2f4d70677fa06be18803874 (patch) | |
tree | 24f930dcb544c9ddb5a15394537b5d7d8e64169e /llex.h | |
parent | a5382b763c2faa4c47e55ee0e49889b4c47daac4 (diff) | |
download | lua-916587508c117decb2f4d70677fa06be18803874.tar.gz lua-916587508c117decb2f4d70677fa06be18803874.tar.bz2 lua-916587508c117decb2f4d70677fa06be18803874.zip |
parser keeps list of active local variables in a single dynamic array,
therefore saving C stack space
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.60 2007/05/11 17:28:56 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.61 2007/10/25 16:45:47 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -58,6 +58,7 @@ typedef struct LexState { | |||
58 | struct lua_State *L; | 58 | struct lua_State *L; |
59 | ZIO *z; /* input stream */ | 59 | ZIO *z; /* input stream */ |
60 | Mbuffer *buff; /* buffer for tokens */ | 60 | Mbuffer *buff; /* buffer for tokens */ |
61 | struct Varlist *varl; /* list of all active local variables */ | ||
61 | TString *source; /* current source name */ | 62 | TString *source; /* current source name */ |
62 | char decpoint; /* locale decimal point */ | 63 | char decpoint; /* locale decimal point */ |
63 | } LexState; | 64 | } LexState; |