diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-22 11:18:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-22 11:18:24 -0300 |
commit | 9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b (patch) | |
tree | 03898a73c1aa5c7ae600e1ba11a514b1c50edeef /lstate.h | |
parent | 0f1f51be4b1e2fb561b2ec6dce7fe292d5b3764d (diff) | |
download | lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.tar.gz lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.tar.bz2 lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.zip |
code for string cache generalized for "associative sets" (compiler
will optimize away or inline the extra loops)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.123 2015/07/04 16:33:17 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.124 2015/09/08 15:41:05 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,7 +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][1]; /* cache for strings in API */ | 143 | TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ |
144 | } global_State; | 144 | } global_State; |
145 | 145 | ||
146 | 146 | ||