summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-07-27 10:50:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-07-27 10:50:16 -0300
commit6d998055c80a0fe8d4698ba02becb1813203eee9 (patch)
tree7f39b89a0d383bc8a96708c5b1cc36a036099a2a /lstate.h
parent11769b203f052f7423575c1a66901cb9eb277206 (diff)
downloadlua-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index 12dddf3b..5ccc4025 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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 */