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

Function fxWriteScriptRecord

xs/tools/xslBase.c:1037–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037void fxWriteScriptRecord(txLinkerScript* script, FILE* file)
1038{
1039 fprintf(file, "\t{ ");
1040 if (script->hostsBuffer)
1041 fprintf(file, "xsHostModule%d, ", script->scriptIndex);
1042 else
1043 fprintf(file, "NULL, ");
1044 fprintf(file, "NULL, 0, ");
1045 if (script->preload == C_NULL)
1046 fprintf(file, "(txS1*)gxCode%d, %d, ", script->scriptIndex, script->codeSize);
1047 else
1048 fprintf(file, "NULL, 0, ");
1049 fprintf(file, "NULL, 0, ");
1050 fxWriteCString(file, script->path);
1051 fprintf(file, ", ");
1052 fprintf(file, "{ XS_MAJOR_VERSION, XS_MINOR_VERSION, XS_PATCH_VERSION, 0 } ");
1053 fprintf(file, "}");
1054}
1055
1056void fxWriteSymbols(txLinker* linker, txString path, FILE** fileAddress)
1057{

Callers 1

mainFunction · 0.85

Calls 1

fxWriteCStringFunction · 0.85

Tested by

no test coverage detected