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

Function fxFindScript

xs/tools/xsl.c:899–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899txBoolean fxFindScript(txMachine* the, txString path, txID* id)
900{
901 txLinker* linker = (txLinker*)(the->context);
902 txLinkerScript* linkerScript = linker->firstScript;
903 while (linkerScript) {
904 if (!c_strcmp(path, linkerScript->path)) {
905 *id = fxNewNameC(the, path);
906 return 1;
907 }
908 linkerScript = linkerScript->nextScript;
909 }
910 *id = XS_NO_ID;
911 return 0;
912}
913
914void fxFreezeBuiltIns(txMachine* the)
915{

Callers 1

fxFindModuleFunction · 0.70

Calls 1

fxNewNameCFunction · 0.85

Tested by

no test coverage detected