| 2736 | } |
| 2737 | |
| 2738 | void fxToggle(txMachine* the, txSlot* slot) |
| 2739 | { |
| 2740 | txSlot** instanceInspectorAddress = &(mxInstanceInspectors.value.list.first); |
| 2741 | txSlot* instanceInspector; |
| 2742 | while ((instanceInspector = *instanceInspectorAddress)) { |
| 2743 | if (instanceInspector->value.instanceInspector.slot == slot) { |
| 2744 | *instanceInspectorAddress = instanceInspector->next; |
| 2745 | return; |
| 2746 | } |
| 2747 | if (instanceInspector->value.instanceInspector.slot > slot) |
| 2748 | break; |
| 2749 | instanceInspectorAddress = &(instanceInspector->next); |
| 2750 | } |
| 2751 | instanceInspector = fxNewSlot(the); |
| 2752 | instanceInspector->next = *instanceInspectorAddress; |
| 2753 | instanceInspector->kind = XS_INSTANCE_INSPECTOR_KIND; |
| 2754 | instanceInspector->value.instanceInspector.slot = slot; |
| 2755 | instanceInspector->value.instanceInspector.link = C_NULL; |
| 2756 | *instanceInspectorAddress = instanceInspector; |
| 2757 | } |
| 2758 | |
| 2759 | #endif |
| 2760 |
no test coverage detected