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

Function fxPurgeEntries

xs/sources/xsMapSet.c:1145–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145void fxPurgeEntries(txMachine* the, txSlot* list)
1146{
1147 txSlot* former = C_NULL;
1148 txSlot** address = &(list->value.list.first);
1149 txSlot* slot;
1150 while ((slot = *address)) {
1151 if (slot->flag & XS_DONT_ENUM_FLAG) {
1152 *address = slot->next;
1153 }
1154 else {
1155 former = slot;
1156 address = &slot->next;
1157 }
1158 }
1159 list->value.list.last = former;
1160}
1161
1162void fxResizeEntries(txMachine* the, txSlot* table, txSlot* list)
1163{

Callers 4

fxClearEntriesFunction · 0.85
fxDeleteEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected