コード例 #1
0
ファイル: main.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(void, Commandgendepend_191410)(NimStringDesc* Filename_191412) {
TY105006 LOC1;
TY105006 LOC2;
NimStringDesc* LOC3;
NimStringDesc* LOC4;
NimStringDesc* LOC5;
Semanticpasses_191408();
LOC1 = Gendependpass_187004();
Registerpass_105028(&LOC1);
LOC2 = Cleanuppass_186161();
Registerpass_105028(&LOC2);
Compileproject_191405(Filename_191412);
Generatedot_187006(Filename_191412);
LOC3 = 0;
LOC4 = 0;
LOC4 = nosChangeFileExt(Filename_191412, ((NimStringDesc*) &TMP197496));
LOC5 = 0;
LOC5 = nosChangeFileExt(Filename_191412, ((NimStringDesc*) &TMP197497));
LOC3 = rawNewString(LOC4->Sup.len + LOC5->Sup.len + 13);
appendString(LOC3, ((NimStringDesc*) &TMP197495));
appendString(LOC3, LOC4);
appendChar(LOC3, 32);
appendString(LOC3, LOC5);
Execexternalprogram_70570(LOC3);
}
コード例 #2
0
ファイル: compiler_depends.c プロジェクト: rbehrends/csources
N_NIMCALL(void, generatedot_415006)(NimStringDesc* project) {
	TY180142 LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	trope121007* LOC4;
	NimStringDesc* LOC5;
	nimfr("generateDot", "depends.nim")
	nimln(45, "depends.nim");
	nimln(45, "depends.nim");
	memset((void*)LOC1, 0, sizeof(LOC1));
	nimln(46, "depends.nim");
	nimln(46, "depends.nim");
	nimln(46, "depends.nim");
	LOC2 = 0;
	LOC2 = nosextractFilename(project);
	LOC3 = 0;
	LOC3 = nosChangeFileExt(LOC2, ((NimStringDesc*) &TMP7015));
	LOC1[0] = torope_121058(LOC3);
	LOC1[1] = gdotgraph_415016;
	LOC4 = 0;
	LOC4 = ropef_121079(((NimStringDesc*) &TMP7014), LOC1, 2);
	nimln(47, "depends.nim");
	LOC5 = 0;
	LOC5 = nosChangeFileExt(project, ((NimStringDesc*) &TMP7016));
	writerope_122407(LOC4, LOC5, NIM_FALSE);	popFrame();
}N_NIMCALL(void, TMP7017)(void* p, NI op) {
コード例 #3
0
ファイル: nimconf.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(void, Loadconfig_80004)(NimStringDesc* Project_80006) {
NimStringDesc* Conffile_80520;
NimStringDesc* Prefix_80521;
NIM_BOOL LOC10;
NIM_BOOL LOC15;
Conffile_80520 = 0;
Prefix_80521 = 0;
if (!((Libpath_46112) && (Libpath_46112)->Sup.len == 0)) goto LA2;
Prefix_80521 = Getprefixdir_46109();
if (!eqStrings(Prefix_80521, ((NimStringDesc*) &TMP195677))) goto LA5;
asgnRefNoCycle((void**) &Libpath_46112, copyString(((NimStringDesc*) &TMP195678)));
goto LA4;
LA5: ;
if (!eqStrings(Prefix_80521, ((NimStringDesc*) &TMP195679))) goto LA7;
asgnRefNoCycle((void**) &Libpath_46112, copyString(((NimStringDesc*) &TMP195680)));
goto LA4;
LA7: ;
asgnRefNoCycle((void**) &Libpath_46112, nosJoinPath(Prefix_80521, ((NimStringDesc*) &TMP195681)));
LA4: ;
LA2: ;
Loadspecialconfig_80007(((NimStringDesc*) &TMP195723));
LOC10 = !(((Gglobaloptions_46079 &(1<<((((NU8) 17))&31)))!=0));
if (!(LOC10)) goto LA11;
LOC10 = !(((Project_80006) && (Project_80006)->Sup.len == 0));
LA11: ;
if (!LOC10) goto LA12;
Conffile_80520 = nosChangeFileExt(Project_80006, ((NimStringDesc*) &TMP195724));
LOC15 = nosexistsFile(Conffile_80520);
if (!LOC15) goto LA16;
Readconfigfile_80434(Conffile_80520);
LA16: ;
LA12: ;
}
コード例 #4
0
ファイル: options.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(NimStringDesc*, Togeneratedfile_41105)(NimStringDesc* Path_41107, NimStringDesc* Ext_41108) {
    NimStringDesc* Result_41231;
    TY33337 LOC1;
    NimStringDesc* Head_41232;
    NimStringDesc* Tail_41233;
    NimStringDesc* LOC5;
    TY42966 LOC6;
    Result_41231 = 0;
    memset((void*)&LOC1, 0, sizeof(LOC1));
    nosSplitPath(Path_41107, &LOC1);
    Head_41232 = 0;
    Head_41232 = copyString(LOC1.Head);
    Tail_41233 = 0;
    Tail_41233 = copyString(LOC1.Tail);
    if (!(0 < Head_41232->Sup.len)) goto LA3;
    LOC5 = 0;
    LOC5 = rawNewString(Head_41232->Sup.len + 1);
    appendString(LOC5, Head_41232);
    appendChar(LOC5, 92);
    Head_41232 = Shortendir_41200(LOC5);
LA3:
    ;
    memset((void*)&LOC6, 0, sizeof(LOC6));
    LOC6[0] = copyString(Projectpath_41113);
    LOC6[1] = copyString(((NimStringDesc*) &TMP191651));
    LOC6[2] = copyString(Head_41232);
    LOC6[3] = nosChangeFileExt(Tail_41233, Ext_41108);
    Result_41231 = nosJoinPathOpenArray(LOC6, 4);
    return Result_41231;
}
コード例 #5
0
ファイル: depends.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(void, Generatedot_187006)(NimStringDesc* Project_187008) {
TY176845 LOC1;
NimStringDesc* LOC2;
NimStringDesc* LOC3;
TY52008* LOC4;
NimStringDesc* LOC5;
memset((void*)&LOC1, 0, sizeof(LOC1));
LOC2 = 0;
LOC2 = nosextractFilename(Project_187008);
LOC3 = 0;
LOC3 = nosChangeFileExt(LOC2, ((NimStringDesc*) &TMP197493));
LOC1[0] = Torope_52046(LOC3);
LOC1[1] = Gdotgraph_187015;
LOC4 = 0;
LOC4 = Ropef_52066(((NimStringDesc*) &TMP197492), LOC1, 2);
LOC5 = 0;
LOC5 = nosChangeFileExt(Project_187008, ((NimStringDesc*) &TMP197494));
Writerope_52055(LOC4, LOC5);
}
コード例 #6
0
ファイル: options.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(NimStringDesc*, Getoutfile_46145)(NimStringDesc* Filename_46147, NimStringDesc* Ext_46148) {
NimStringDesc* Result_46170;
Result_46170 = 0;
if (!!(((Outfile_46082) && (Outfile_46082)->Sup.len == 0))) goto LA2;
Result_46170 = copyString(Outfile_46082);
goto LA1;
LA2: ;
Result_46170 = nosChangeFileExt(Filename_46147, Ext_46148);
LA1: ;
return Result_46170;
}
コード例 #7
0
ファイル: main.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(void, Commandcompiletoc_191416)(NimStringDesc* Filename_191418) {
TY105006 LOC1;
TY105006 LOC2;
NimStringDesc* LOC6;
Semanticpasses_191408();
LOC1 = Cgenpass_161201();
Registerpass_105028(&LOC1);
LOC2 = Rodwritepass_111001();
Registerpass_105028(&LOC2);
Compileproject_191405(Filename_191418);
if (!!((Gcmd_46084 == ((NU8) 18)))) goto LA4;
LOC6 = 0;
LOC6 = nosChangeFileExt(Filename_191418, ((NimStringDesc*) &TMP195921));
Callccompiler_70806(LOC6);
LA4: ;
}
コード例 #8
0
ファイル: compiler_options.c プロジェクト: rbehrends/csources
N_NIMCALL(NimStringDesc*, getoutfile_114304)(NimStringDesc* filename, NimStringDesc* ext) {
	NimStringDesc* result;
	nimfr("getOutFile", "options.nim")
	result = 0;
	nimln(183, "options.nim");
	{
		nimln(698, "system.nim");
		nimln(698, "system.nim");
		if (!!(((outfile_114115) && (outfile_114115)->Sup.len == 0))) goto LA3;
		nimln(183, "options.nim");
		result = copyString(outfile_114115);
	}	goto LA1;
	LA3: ;
	{
		nimln(184, "options.nim");
		result = nosChangeFileExt(filename, ext);
	}	LA1: ;
	popFrame();
	return result;
}
コード例 #9
0
ファイル: compiler_options.c プロジェクト: rbehrends/csources
N_NIMCALL(NimStringDesc*, togeneratedfile_114477)(NimStringDesc* path, NimStringDesc* ext) {
	NimStringDesc* result;
	TY87905 LOC1;
	NimStringDesc* head;
	NimStringDesc* tail;
	TY114486 LOC2;
	nimfr("toGeneratedFile", "options.nim")
	result = 0;
	nimln(240, "options.nim");
	nimln(240, "options.nim");
	memset((void*)&LOC1, 0, sizeof(LOC1));
	nosSplitPath(path, &LOC1);	head = copyString(LOC1.Field0);
	tail = copyString(LOC1.Field1);
	nimln(242, "options.nim");
	memset((void*)LOC2, 0, sizeof(LOC2));
	nimln(242, "options.nim");
	LOC2[0] = getgeneratedpath_114417();
	nimln(242, "options.nim");
	LOC2[1] = nosChangeFileExt(tail, ext);
	result = nosJoinPathOpenArray(LOC2, 2);
	popFrame();
	return result;
}
コード例 #10
0
ファイル: nimrod.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(void, Handlecmdline_195245)(void) {
NI Start_195247;
NI LOC2;
NimStringDesc* Command_195250;
NimStringDesc* Filename_195251;
TY38661 LOC8;
NimStringDesc* LOC12;
TY115159 LOC19;
NI LOC20;
NI64 LOC21;
NimStringDesc* Prog_195432;
NimStringDesc* LOC25;
NimStringDesc* LOC26;
NimStringDesc* LOC27;
NimStringDesc* LOC28;
Start_195247 = 0;
Start_195247 = Gettime_28616();
LOC2 = Paramcount_41430();
if (!(LOC2 == 0)) goto LA3;
Writecommandlineusage_73001();
goto LA1;
LA3: ;
Command_195250 = 0;
Command_195250 = copyString(((NimStringDesc*) &TMP195203));
Filename_195251 = 0;
Filename_195251 = copyString(((NimStringDesc*) &TMP195203));
Processcmdline_195204(((NU8) 0), &Command_195250, &Filename_195251);
if (!!(((Filename_195251) && (Filename_195251)->Sup.len == 0))) goto LA6;
memset((void*)&LOC8, 0, sizeof(LOC8));
nossplitFile(Filename_195251, &LOC8);
asgnRefNoCycle((void**) &Projectpath_46113, copyString(LOC8.Dir));
LA6: ;
Loadconfig_80004(Filename_195251);
Initvars_70472();
Command_195250 = copyString(((NimStringDesc*) &TMP195203));
Filename_195251 = copyString(((NimStringDesc*) &TMP195203));
Processcmdline_195204(((NU8) 1), &Command_195250, &Filename_195251);
Maincommand_191201(Command_195250, Filename_195251);
if (!(2 <= Gverbosity_46085)) goto LA10;
LOC12 = 0;
LOC12 = Gcgetstatistics_3082();
rawEcho(LOC12);
rawEchoNL();
LA10: ;
if (!(Gerrorcounter_47565 == 0)) goto LA14;
if (!!(((262208 &(1<<((Gcmd_46084)&31)))!=0))) goto LA17;
memset((void*)&LOC19, 0, sizeof(LOC19));
LOC19[0] = nimIntToStr(Glinescompiled_77285);
LOC20 = Gettime_28616();
LOC21 = ntDiffTime(LOC20, Start_195247);
LOC19[1] = nimInt64ToStr(LOC21);
Rawmessage_47971(((NU8) 224), LOC19, 2);
LA17: ;
if (!((Gglobaloptions_46079 &(1<<((((NU8) 14))&31)))!=0)) goto LA23;
Prog_195432 = 0;
LOC25 = 0;
LOC26 = 0;
LOC26 = nosChangeFileExt(Filename_195251, ((NimStringDesc*) &TMP195203));
LOC27 = 0;
LOC27 = Quoteifcontainswhite_26268(LOC26);
LOC25 = rawNewString(LOC27->Sup.len + 2);
appendString(LOC25, ((NimStringDesc*) &TMP197511));
appendString(LOC25, LOC27);
Prog_195432 = LOC25;
LOC28 = 0;
LOC28 = rawNewString(Prog_195432->Sup.len + Arguments_195201->Sup.len + 1);
appendString(LOC28, Prog_195432);
appendChar(LOC28, 32);
appendString(LOC28, Arguments_195201);
Execexternalprogram_70570(LOC28);
LA23: ;
LA14: ;
LA1: ;
}
コード例 #11
0
N_NIMCALL(void, handlecmdline_424603)(void) {
	nimfr("HandleCmdLine", "nimrod.nim")
	nimln(35, "nimrod.nim");
	{
		NI LOC3;
		nimln(35, "nimrod.nim");
		nimln(35, "nimrod.nim");
		LOC3 = 0;
		LOC3 = paramcount_107029();
		if (!(LOC3 == 0)) goto LA4;
		nimln(36, "nimrod.nim");
		writecommandlineusage_152002();	}	goto LA1;
	LA4: ;
	{
		nimln(39, "nimrod.nim");
		processcmdline_419207(((NU8) 0), ((NimStringDesc*) &TMP7233));		nimln(40, "nimrod.nim");
		{
			TSafePoint TMP7234;
			TY102259 p;
			NimStringDesc* LOC15;
			NimStringDesc* LOC16;
			nimln(698, "system.nim");
			nimln(698, "system.nim");
			if (!!(((gprojectname_114197) && (gprojectname_114197)->Sup.len == 0))) goto LA9;
			nimln(41, "nimrod.nim");
			pushSafePoint(&TMP7234);
			TMP7234.status = setjmp(TMP7234.context);
			if (TMP7234.status == 0) {
				nimln(42, "nimrod.nim");
				asgnRefNoCycle((void**) &gprojectfull_114199, canonicalizepath_114316(gprojectname_114197));
				popSafePoint();
			}			else {
				popSafePoint();
				setFrame((TFrame*)&F);
				if (isObj(getCurrentException()->Sup.m_type, (&NTI1035))) {
					NimStringDesc* LOC14;
					TMP7234.status = 0;
					nimln(44, "nimrod.nim");
					LOC14 = 0;
					LOC14 = gprojectfull_114199; gprojectfull_114199 = copyStringRC1(gprojectname_114197);
					if (LOC14) nimGCunrefNoCycle(LOC14);
					popCurrentException();
				}			}			if (TMP7234.status != 0) reraiseException();
			nimln(45, "nimrod.nim");
			chckNil((void*)&p);
			memset((void*)&p, 0, sizeof(p));
			nossplitFile(gprojectfull_114199, &p);			nimln(46, "nimrod.nim");
			LOC15 = 0;
			LOC15 = gprojectpath_114198; gprojectpath_114198 = copyStringRC1(p.Field0);
			if (LOC15) nimGCunrefNoCycle(LOC15);
			nimln(47, "nimrod.nim");
			LOC16 = 0;
			LOC16 = gprojectname_114197; gprojectname_114197 = copyStringRC1(p.Field1);
			if (LOC16) nimGCunrefNoCycle(LOC16);
		}		goto LA7;
		LA9: ;
		{
			nimln(49, "nimrod.nim");
			asgnRefNoCycle((void**) &gprojectpath_114198, nosgetCurrentDir());
		}		LA7: ;
		nimln(50, "nimrod.nim");
		loadconfigs_168607(((NimStringDesc*) &TMP7235));		nimln(53, "nimrod.nim");
		initvars_148647();		nimln(54, "nimrod.nim");
		processcmdline_419207(((NU8) 1), ((NimStringDesc*) &TMP7233));		nimln(55, "nimrod.nim");
		maincommand_422811();		nimln(56, "nimrod.nim");
		{
			NimStringDesc* LOC22;
			nimln(702, "system.nim");
			if (!(2 <= gverbosity_114117)) goto LA20;
			nimln(56, "nimrod.nim");
			nimln(56, "nimrod.nim");
			LOC22 = 0;
			LOC22 = gcgetstatistics_6021();
			printf("%s\012", (LOC22)->data);
		}		LA20: ;
		nimln(58, "nimrod.nim");
		{
			nimln(58, "nimrod.nim");
			if (!(gerrorcounter_138074 == 0)) goto LA25;
			nimln(62, "nimrod.nim");
			{
				nimln(730, "system.nim");
				if (!((gglobaloptions_114109 &(1<<((((NU8) 13))&31)))!=0)) goto LA29;
				nimln(63, "nimrod.nim");
				{
					NimStringDesc* ex;
					NimStringDesc* LOC35;
					NimStringDesc* LOC36;
					NimStringDesc* LOC37;
					NimStringDesc* LOC38;
					nimln(63, "nimrod.nim");
					if (!(gcmd_114111 == ((NU8) 4))) goto LA33;
					nimln(64, "nimrod.nim");
					nimln(65, "nimrod.nim");
					nimln(65, "nimrod.nim");
					nimln(65, "nimrod.nim");
					LOC35 = 0;
					LOC35 = nosChangeFileExt(gprojectfull_114199, ((NimStringDesc*) &TMP7236));
					LOC36 = 0;
					LOC36 = prependcurdir_424401(LOC35);
					LOC37 = 0;
					LOC37 = completecfilepath_148681(LOC36, NIM_TRUE);
					ex = nospquoteShell(LOC37);
					nimln(66, "nimrod.nim");
					nimln(66, "nimrod.nim");
					LOC38 = 0;
					LOC38 = rawNewString(ex->Sup.len + arguments_419205->Sup.len + 6);
appendString(LOC38, ((NimStringDesc*) &TMP7237));
appendString(LOC38, ex);
appendChar(LOC38, 32);
appendString(LOC38, arguments_419205);
					execexternalprogram_148713(LOC38);				}				goto LA31;
				LA33: ;
				{
					NimStringDesc* binpath;
					NimStringDesc* ex;
					NimStringDesc* LOC46;
					binpath = 0;
					nimln(69, "nimrod.nim");
					{
						nimln(706, "system.nim");
						nimln(69, "nimrod.nim");
						if (!(0 < outfile_114115->Sup.len)) goto LA42;
						nimln(71, "nimrod.nim");
						binpath = prependcurdir_424401(outfile_114115);
					}					goto LA40;
					LA42: ;
					{
						NimStringDesc* LOC45;
						nimln(74, "nimrod.nim");
						nimln(74, "nimrod.nim");
						LOC45 = 0;
						LOC45 = nosChangeFileExt(gprojectfull_114199, ((NimStringDesc*) &TMP7233));
						binpath = prependcurdir_424401(LOC45);
					}					LA40: ;
					nimln(75, "nimrod.nim");
					ex = nospquoteShell(binpath);
					nimln(76, "nimrod.nim");
					nimln(76, "nimrod.nim");
					LOC46 = 0;
					LOC46 = rawNewString(ex->Sup.len + arguments_419205->Sup.len + 1);
appendString(LOC46, ex);
appendChar(LOC46, 32);
appendString(LOC46, arguments_419205);
					execexternalprogram_148713(LOC46);				}				LA31: ;
			}			LA29: ;
		}		LA25: ;
	}	LA1: ;
	popFrame();
}
コード例 #12
0
ファイル: extccomp.c プロジェクト: ddlsmurf/Nimrod
N_NIMCALL(NimStringDesc*, Toobjfile_70512)(NimStringDesc* Filenamewithoutext_70514) {
NimStringDesc* Result_70515;
Result_70515 = 0;
Result_70515 = nosChangeFileExt(Filenamewithoutext_70514, Cc_70041[(Ccompiler_70340)-1].Objext);
return Result_70515;
}