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

Function fxQueueModule

xs/sources/xsModule.c:2100–2114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2098}
2099
2100txBoolean fxQueueModule(txMachine* the, txSlot* queue, txSlot* module)
2101{
2102 txSlot** address = &(queue->next);
2103 txSlot* slot;
2104 while ((slot = *address)) {
2105 if (slot->value.reference == module->value.reference)
2106 return 0;
2107 address = &(slot->next);
2108 }
2109 slot = *address = fxNewSlot(the);
2110 slot->ID = mxModuleInternal(module)->value.module.id; //??
2111 slot->kind = XS_REFERENCE_KIND;
2112 slot->value.reference = module->value.reference;
2113 return 1;
2114}
2115
2116void fxResolveModule(txMachine* the, txSlot* module, txID moduleID, txScript* script, void* data, txDestructor destructor)
2117{

Callers 6

fxLoadModulesFromFunction · 0.85
fxMapModuleDescriptorFunction · 0.85
fxRunImportFunction · 0.85
fxRunImportNowFunction · 0.85
fxImportModuleStuffFunction · 0.85
fxLoadModuleStuffFromFunction · 0.85

Calls 1

fxNewSlotFunction · 0.85

Tested by

no test coverage detected