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

Function fxBasePrefix

xs/tools/xslBase.c:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96void fx_Uint8ClampedArray(txMachine* the) { fx_TypedArray(the); }
97
98txString fxBasePrefix(txLinker* linker, txString path)
99{
100 if ((path[0] == '~') && (path[1] == '.')) {
101 txString slash = c_strchr(path + 2, mxSeparator);
102 if (slash) {
103 *slash = ':';
104 path += 2;
105 }
106 }
107 return path;
108}
109
110void fxBaseResource(txLinker* linker, txLinkerResource* resource, txString base, txInteger baseLength)
111{

Callers 2

fxBaseScriptFunction · 0.85
fxNewLinkerPreloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected