MCPcopy Create free account
hub / github.com/Singular/Singular / PassThroughCompiler

Function PassThroughCompiler

ppcc/src/ppcc.cc:227–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void PassThroughCompiler() {
228 if (debug)
229 PrintLn(S("Pass through: ")->
230 add(StrJoin(Args->clone()->add(ExtraArgs), S(" "))));
231 if (ArgC <= 1) {
232 Error("no arguments");
233 }
234 Compiler = new Str(ArgV[1]);
235 StrArr *args = new StrArr(ArgC);
236 for (int i = 2; i < ArgC; i++) {
237 args->add(S(ArgV[i]));
238 }
239 args->add(ExtraArgs);
240 int exitcode = System(Compiler, args);
241 exit(exitcode);
242}
243
244void ExecCompiler() {
245 int exitcode;

Callers 2

ExecCompilerFunction · 0.85
MainFunction · 0.85

Calls 7

StrJoinFunction · 0.85
ErrorFunction · 0.85
SystemFunction · 0.85
PrintLnFunction · 0.50
SFunction · 0.50
addMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected