diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-01 13:34:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-01 13:34:37 -0300 |
commit | 6645bb2df44d4fc6c7aea8347a559357b657f80a (patch) | |
tree | 787784229b0de5d41fea6bf8475656063db7af27 /lstate.h | |
parent | 02aed045def21789f7adad29a11da75cae118e44 (diff) | |
download | lua-6645bb2df44d4fc6c7aea8347a559357b657f80a.tar.gz lua-6645bb2df44d4fc6c7aea8347a559357b657f80a.tar.bz2 lua-6645bb2df44d4fc6c7aea8347a559357b657f80a.zip |
'strcache' elements as arrays of 1 element hints that cache can
be n-way (instead of direct mapped)
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.120 2015/03/04 13:31:21 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.121 2015/04/10 17:56:25 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 | */ |
@@ -141,7 +141,7 @@ typedef struct global_State { | |||
141 | TString *memerrmsg; /* memory-error message */ | 141 | TString *memerrmsg; /* memory-error message */ |
142 | TString *tmname[TM_N]; /* array with tag-method names */ | 142 | TString *tmname[TM_N]; /* array with tag-method names */ |
143 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ | 143 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ |
144 | TString *strcache[STRCACHE_SIZE]; /* cache for strings in API */ | 144 | TString *strcache[STRCACHE_SIZE][1]; /* cache for strings in API */ |
145 | } global_State; | 145 | } global_State; |
146 | 146 | ||
147 | 147 | ||