aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-15 16:31:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-15 16:31:22 -0300
commitb95e46621873cfb460e1d11dcd153914d5d69f86 (patch)
treeaeb1db66a8254b5f997bcfd0a8ac606eea2f621c /lstate.h
parentd406d3d05ffe8bc01d6416437963ce092cfc9772 (diff)
downloadlua-b95e46621873cfb460e1d11dcd153914d5d69f86.tar.gz
lua-b95e46621873cfb460e1d11dcd153914d5d69f86.tar.bz2
lua-b95e46621873cfb460e1d11dcd153914d5d69f86.zip
new field 'nilvalue' in struct 'global_State' to avoid the use of
addresses of static variables
Diffstat (limited to '')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index cd8b4db7..037b2be6 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.157 2018/02/25 12:43:52 roberto Exp roberto $ 2** $Id: lstate.h,v 2.158 2018/03/16 15:33:34 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*/
@@ -148,6 +148,7 @@ typedef struct global_State {
148 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ 148 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */
149 stringtable strt; /* hash table for strings */ 149 stringtable strt; /* hash table for strings */
150 TValue l_registry; 150 TValue l_registry;
151 TValue nilvalue; /* a nil value */
151 unsigned int seed; /* randomized seed for hashes */ 152 unsigned int seed; /* randomized seed for hashes */
152 lu_byte currentwhite; 153 lu_byte currentwhite;
153 lu_byte gcstate; /* state of garbage collector */ 154 lu_byte gcstate; /* state of garbage collector */