diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-05 16:31:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-05 16:31:49 -0300 |
| commit | d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70 (patch) | |
| tree | b245be2289ab4fdbb558a0f52a81dd5631871ee3 /lobject.h | |
| parent | 0ad15fc10041f59b5466fe902637b1a2fb64565d (diff) | |
| download | lua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.tar.gz lua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.tar.bz2 lua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.zip | |
back to open hashing for the string table (but with a different
'hnext' field, to strings are still collected like all other
objects)
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 2.80 2013/08/18 16:12:18 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.81 2013/08/27 18:53:35 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -310,8 +310,9 @@ typedef union TString { | |||
| 310 | struct { | 310 | struct { |
| 311 | CommonHeader; | 311 | CommonHeader; |
| 312 | lu_byte extra; /* reserved words for short strings; "has hash" for longs */ | 312 | lu_byte extra; /* reserved words for short strings; "has hash" for longs */ |
| 313 | unsigned int hash; | ||
| 314 | size_t len; /* number of characters in string */ | 313 | size_t len; /* number of characters in string */ |
| 314 | union TString *hnext; /* linked list for hash table */ | ||
| 315 | unsigned int hash; | ||
| 315 | } tsv; | 316 | } tsv; |
| 316 | } TString; | 317 | } TString; |
| 317 | 318 | ||
