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

Function fxWriteIDs

xs/tools/xsc.c:284–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void fxWriteIDs(txScript* script, FILE* file)
285{
286 txByte* p = script->symbolsBuffer;
287 txID c, i;
288 mxDecode2(p, c);
289 for (i = 0; i < c; i++) {
290 if (fxIsCIdentifier((txString)p))
291 fprintf(file, "#define xsID_%s (((xsIdentifier*)(the->code))[%d])\n", p, i);
292 p += mxStringLength((char*)p) + 1;
293 }
294}
295
296#ifdef XSTOOLS
297extern int mainXSC(int argc, char* argv[]) ;

Callers 1

mainFunction · 0.85

Calls 1

fxIsCIdentifierFunction · 0.70

Tested by

no test coverage detected