| 2098 | } |
| 2099 | |
| 2100 | txBoolean 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 | |
| 2116 | void fxResolveModule(txMachine* the, txSlot* module, txID moduleID, txScript* script, void* data, txDestructor destructor) |
| 2117 | { |
no test coverage detected