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

Function fxBaseScript

xs/tools/xslBase.c:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void fxBaseScript(txLinker* linker, txLinkerScript* script, txString base, txInteger baseLength)
119{
120 if (c_strncmp(script->path, base, baseLength))
121 fxReportLinkerError(linker, "'%s': not relative to '%s'", script->path, base);
122 script->path = fxBasePrefix(linker, script->path + baseLength);
123 script->pathSize = mxStringLength(script->path) - 4;
124 script->path[script->pathSize] = 0;
125 script->pathSize++;
126 script->scriptIndex = linker->scriptCount;
127 linker->scriptCount++;
128}
129
130void fxBufferMaps(txLinker* linker)
131{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

fxReportLinkerErrorFunction · 0.85
fxBasePrefixFunction · 0.85

Tested by

no test coverage detected