diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-07-27 10:50:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-07-27 10:50:16 -0300 |
commit | 6d998055c80a0fe8d4698ba02becb1813203eee9 (patch) | |
tree | 7f39b89a0d383bc8a96708c5b1cc36a036099a2a /lstate.h | |
parent | 11769b203f052f7423575c1a66901cb9eb277206 (diff) | |
download | lua-6d998055c80a0fe8d4698ba02becb1813203eee9.tar.gz lua-6d998055c80a0fe8d4698ba02becb1813203eee9.tar.bz2 lua-6d998055c80a0fe8d4698ba02becb1813203eee9.zip |
no more reference 'memerrmsg' + new reference to "n"
(both can be retrieved by 'luaS_newliteral' without creating anything,
because they are fixed, but "n" deserves fast access while 'memerrmsg'
does not)
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.142 2017/05/26 19:14:29 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.143 2017/06/12 14:21:44 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 | */ |
@@ -175,7 +175,7 @@ typedef struct global_State { | |||
175 | lua_CFunction panic; /* to be called in unprotected errors */ | 175 | lua_CFunction panic; /* to be called in unprotected errors */ |
176 | struct lua_State *mainthread; | 176 | struct lua_State *mainthread; |
177 | const lua_Number *version; /* pointer to version number */ | 177 | const lua_Number *version; /* pointer to version number */ |
178 | TString *memerrmsg; /* memory-error message */ | 178 | TString *nfield; /* string "n" (key in vararg tables) */ |
179 | TString *tmname[TM_N]; /* array with tag-method names */ | 179 | TString *tmname[TM_N]; /* array with tag-method names */ |
180 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ | 180 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ |
181 | TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ | 181 | TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ |