diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-15 16:31:22 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-15 16:31:22 -0300 |
| commit | b95e46621873cfb460e1d11dcd153914d5d69f86 (patch) | |
| tree | aeb1db66a8254b5f997bcfd0a8ac606eea2f621c /lstate.h | |
| parent | d406d3d05ffe8bc01d6416437963ce092cfc9772 (diff) | |
| download | lua-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 'lstate.h')
| -rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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 */ |
