MCPcopy Create free account
hub / github.com/AshenvaleZX/ZXEngine / luaH_newkey

Function luaH_newkey

CPPScripts/External/Lua/ltable.c:663–717  ·  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 2

luaH_finishsetFunction · 0.85
luaH_setintFunction · 0.85

Calls 7

luaG_runerrorFunction · 0.85
luaV_flttointegerFunction · 0.85
mainpositionTVFunction · 0.85
getfreeposFunction · 0.85
rehashFunction · 0.85
luaH_setFunction · 0.85
mainpositionfromnodeFunction · 0.85

Tested by

no test coverage detected