MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / exchangehashpart

Function exchangehashpart

3rd/lua-5.4.3/src/ltable.c:516–526  ·  view source on GitHub ↗

** Exchange the hash part of 't1' and 't2'. */

Source from the content-addressed store, hash-verified

514** Exchange the hash part of 't1' and 't2'.
515*/
516static void exchangehashpart (Table *t1, Table *t2) {
517 lu_byte lsizenode = t1->lsizenode;
518 Node *node = t1->node;
519 Node *lastfree = t1->lastfree;
520 t1->lsizenode = t2->lsizenode;
521 t1->node = t2->node;
522 t1->lastfree = t2->lastfree;
523 t2->lsizenode = lsizenode;
524 t2->node = node;
525 t2->lastfree = lastfree;
526}
527
528
529/*

Callers 1

luaH_resizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected