diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-04 10:31:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-04 10:31:21 -0300 |
commit | a80cada9142f9e967c710e37934067a708224161 (patch) | |
tree | b6ecc44201408c9e9cf520f47f15413531c51161 /lstate.h | |
parent | a00013c8d0d268616e004715da499e88e03b534c (diff) | |
download | lua-a80cada9142f9e967c710e37934067a708224161.tar.gz lua-a80cada9142f9e967c710e37934067a708224161.tar.bz2 lua-a80cada9142f9e967c710e37934067a708224161.zip |
new cache for interning strings
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.118 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.119 2014/10/30 18:53:28 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -140,6 +140,7 @@ typedef struct global_State { | |||
140 | TString *memerrmsg; /* memory-error message */ | 140 | TString *memerrmsg; /* memory-error message */ |
141 | TString *tmname[TM_N]; /* array with tag-method names */ | 141 | TString *tmname[TM_N]; /* array with tag-method names */ |
142 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ | 142 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ |
143 | TString *strcache[STRCACHE_SIZE]; /* cache for strings in API */ | ||
143 | } global_State; | 144 | } global_State; |
144 | 145 | ||
145 | 146 | ||