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

Function fxWriteExterns

xs/tools/xsc.c:246–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void fxWriteExterns(txScript* script, FILE* file)
247{
248 txByte* p = script->hostsBuffer;
249 txID c, i;
250 mxDecode2(p, c);
251 for (i = 0; i < c; i++) {
252 txS1 length = *p++;
253 p += 2;
254 if (length < 0)
255 fprintf(file, "extern void %s(void* data);\n", p);
256 else
257 fprintf(file, "extern void %s(xsMachine* the);\n", p);
258 p += mxStringLength((char*)p) + 1;
259 }
260}
261
262void fxWriteHosts(txScript* script, FILE* file)
263{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected