MCPcopy Create free account
hub / github.com/dabing1022/Blog / newkey

Function newkey

TheCProgrammingLanguage/LuaGlue/lua/ltable.c:399–429  ·  view source on GitHub ↗

** inserts a new key into a hash table; first, check whether key's main ** position is free. If not, check whether colliding node is in its main ** position or not: if it is not, move colliding node to an empty place and ** put new key in its main position; otherwise (colliding node is in its main ** position), new key goes to an empty position. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

luaH_setFunction · 0.85
luaH_setnumFunction · 0.85
luaH_setstrFunction · 0.85

Calls 4

mainpositionFunction · 0.85
getfreeposFunction · 0.85
rehashFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected