MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxReadKeyhole

Function fxReadKeyhole

xs/sources/xsSnapshot.c:1431–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429}
1430
1431void fxReadKeyhole(txMachine* the, txSnapshot* snapshot)
1432{
1433 txSlot** p;
1434 txSlot** q;
1435 txSlot* slot;
1436 the->keyholeCount = 0;
1437 the->keyholeList = C_NULL;
1438 p = the->keyArray;
1439 q = p + the->keyIndex - the->keyOffset;
1440 p++; // skip @
1441 while (p < q) {
1442 slot = *p;
1443 if (slot->kind == XS_UNDEFINED_KIND) {
1444 the->keyholeCount++;
1445 the->keyholeList = slot;
1446 }
1447 p++;
1448 }
1449}
1450
1451void fxReadMapSet(txMachine* the, txSlot* table, txBoolean paired)
1452{

Callers 2

fxReadSnapshotFunction · 0.85
fxUseSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected