MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / exchangehashpart

Function exchangehashpart

lib/lua/src/ltable.c:527–537  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

525** Exchange the hash part of 't1' and 't2'.
526*/
527static void exchangehashpart (Table *t1, Table *t2) {
528 lu_byte lsizenode = t1->lsizenode;
529 Node *node = t1->node;
530 Node *lastfree = t1->lastfree;
531 t1->lsizenode = t2->lsizenode;
532 t1->node = t2->node;
533 t1->lastfree = t2->lastfree;
534 t2->lsizenode = lsizenode;
535 t2->node = node;
536 t2->lastfree = lastfree;
537}
538
539
540/*

Callers 1

luaH_resizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected