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

Function fxMapSymbols

xs/tools/xslBase.c:354–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354txID* fxMapSymbols(txLinker* linker, txS1* symbolsBuffer, txFlag flag)
355{
356 txID* symbols = C_NULL;
357 txByte* p = symbolsBuffer;
358 txID c, i;
359 mxDecodeID(p, c);
360 symbols = fxNewLinkerChunk(linker, c * sizeof(txID*));
361 symbols[0] = XS_NO_ID;
362 for (i = 1; i < c; i++) {
363 txLinkerSymbol* symbol = fxNewLinkerSymbol(linker, (txString)p, flag, 1);
364 symbols[i] = symbol->ID;
365 p += mxStringLength((char*)p) + 1;
366 }
367 return symbols;
368}
369
370txHostFunctionBuilder* fxNewLinkerBuilder(txLinker* linker, txCallback callback, txInteger length, txID id)
371{

Callers 1

fxMapScriptFunction · 0.85

Calls 2

fxNewLinkerChunkFunction · 0.85
fxNewLinkerSymbolFunction · 0.85

Tested by

no test coverage detected