aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-23 12:04:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-23 12:04:39 -0300
commit383e8b9e778d2bed9dc4347f441803e2c4f99d09 (patch)
tree6035d4b69801d535f3042120e549e457fb154068 /lstate.h
parentf1a1bb23fe29264ec0cf81a8bbfa8f30b0a5b76d (diff)
downloadlua-383e8b9e778d2bed9dc4347f441803e2c4f99d09.tar.gz
lua-383e8b9e778d2bed9dc4347f441803e2c4f99d09.tar.bz2
lua-383e8b9e778d2bed9dc4347f441803e2c4f99d09.zip
use of a common `dummynode' for all empty tables
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 6c2cfee9..84971213 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.82 2002/04/10 12:11:07 roberto Exp roberto $ 2** $Id: lstate.h,v 1.83 2002/04/16 17:08: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*/
@@ -113,6 +113,7 @@ typedef struct global_State {
113 lu_mem GCthreshold; 113 lu_mem GCthreshold;
114 lu_mem nblocks; /* number of `bytes' currently allocated */ 114 lu_mem nblocks; /* number of `bytes' currently allocated */
115 lua_CFunction panic; /* to be called in unprotected errors */ 115 lua_CFunction panic; /* to be called in unprotected errors */
116 Node dummynode[1]; /* common node array for all empty tables */
116 TString *tmname[TM_N]; /* array with tag-method names */ 117 TString *tmname[TM_N]; /* array with tag-method names */
117} global_State; 118} global_State;
118 119