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

Function fxPushResult

xs/tools/xst262.c:647–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void fxPushResult(txPool* pool, char* path)
648{
649 txResult* parent = pool->current;
650 txResult* result = fxNewResult(path, NULL);
651 result->parent = parent;
652 if (parent) {
653 fxLockMutex(&(pool->resultMutex));
654 txResult* former = C_NULL;
655 txResult* current = parent->first;
656 while (current) {
657 if (c_strcmp(current->path, path) >= 0)
658 break;
659 former = current;
660 current = current->next;
661 }
662 if (former)
663 former->next = result;
664 else
665 parent->first = result;
666 result->next = current;
667 fxUnlockMutex(&(pool->resultMutex));
668 }
669 pool->current = result;
670}
671
672static int c = 0;
673

Callers 2

xst262.cFile · 0.85
fxRunDirectoryFunction · 0.85

Calls 1

fxNewResultFunction · 0.85

Tested by

no test coverage detected