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

Function fxNewLinkerBuilder

xs/tools/xslBase.c:370–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370txHostFunctionBuilder* fxNewLinkerBuilder(txLinker* linker, txCallback callback, txInteger length, txID id)
371{
372 txLinkerBuilder* result = fxNewLinkerChunkClear(linker, sizeof(txLinkerBuilder));
373 result->builderIndex = linker->builderCount;
374 linker->builderCount++;
375 if (linker->lastBuilder)
376 linker->lastBuilder->nextBuilder = result;
377 else
378 linker->firstBuilder = result;
379 linker->lastBuilder = result;
380 result->host.callback = callback;
381 result->host.length = length;
382 result->host.id = id;
383 return &(result->host);
384}
385
386txCallback fxNewLinkerCallback(txMachine* the, txCallback callback, txString name)
387{

Callers 5

fxBuildHostConstructorFunction · 0.85
fxBuildHostFunctionFunction · 0.85
mainFunction · 0.85

Calls 1

fxNewLinkerChunkClearFunction · 0.85

Tested by

no test coverage detected