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

Function getfreepos

lib/lua/src/ltable.c:645–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645static Node *getfreepos (Table *t) {
646 if (!isdummy(t)) {
647 while (t->lastfree > t->node) {
648 t->lastfree--;
649 if (keyisnil(t->lastfree))
650 return t->lastfree;
651 }
652 }
653 return NULL; /* could not find a free place */
654}
655
656
657

Callers 1

luaH_newkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected