Esempio n. 1
0
N_NIMCALL(void, loadconfigs_185811)(NimStringDesc* cfg) {
	NimStringDesc* pd;
	{
		NimStringDesc* prefix;
		if (!((libpath_153233) && (libpath_153233)->Sup.len == 0)) goto LA3;
		prefix = getprefixdir_153371();
		{
			NimStringDesc* LOC9;
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP1872))) goto LA7;
			LOC9 = 0;
			LOC9 = libpath_153233; libpath_153233 = copyStringRC1(((NimStringDesc*) &TMP1873));
			if (LOC9) nimGCunrefNoCycle(LOC9);
		}
		goto LA5;
		LA7: ;
		{
			NimStringDesc* LOC13;
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP1874))) goto LA11;
			LOC13 = 0;
			LOC13 = libpath_153233; libpath_153233 = copyStringRC1(((NimStringDesc*) &TMP1875));
			if (LOC13) nimGCunrefNoCycle(LOC13);
		}
		goto LA5;
		LA11: ;
		{
			asgnRefNoCycle((void**) (&libpath_153233), nosjoinPath(prefix, ((NimStringDesc*) &TMP1876)));
		}
		LA5: ;
	}
	LA3: ;
	{
		NimStringDesc* LOC19;
		if (!!(((gglobaloptions_153128 &(1<<((((NU8) 16))&31)))!=0))) goto LA17;
		LOC19 = 0;
		LOC19 = getsystemconfigpath_185592(cfg);
		readconfigfile_185522(LOC19);
	}
	LA17: ;
	{
		NimStringDesc* LOC24;
		if (!!(((gglobaloptions_153128 &(1<<((((NU8) 18))&31)))!=0))) goto LA22;
		LOC24 = 0;
		LOC24 = getuserconfigpath_185580(cfg);
		readconfigfile_185522(LOC24);
	}
	LA22: ;
	{
		if (!(((NI) 0) < (gprojectpath_153235 ? gprojectpath_153235->Sup.len : 0))) goto LA27;
		pd = copyString(gprojectpath_153235);
	}
	goto LA25;
	LA27: ;
	{
		pd = nosgetCurrentDir();
	}
	LA25: ;
	{
		if (!!(((gglobaloptions_153128 &(1<<((((NU8) 19))&31)))!=0))) goto LA32;
		{
			NimStringDesc* dir_186034;
			dir_186034 = 0;
			{
				NimStringDesc* current_186051;
				if (!NIM_FALSE) goto LA37;
				current_186051 = copyString(pd);
				{
					NimStringDesc* LOC43;
					if (!NIM_FALSE) goto LA41;
					dir_186034 = pd;
					LOC43 = 0;
					LOC43 = HEX2F_118292(dir_186034, cfg);
					readconfigfile_185522(LOC43);
				}
				LA41: ;
				{
					while (1) {
						NimStringDesc* LOC51;
						{
							NIM_BOOL LOC48;
							LOC48 = 0;
							LOC48 = nosisRootDir(current_186051);
							if (!LOC48) goto LA49;
							goto LA44;
						}
						LA49: ;
						current_186051 = nosparentDir(current_186051);
						dir_186034 = current_186051;
						LOC51 = 0;
						LOC51 = HEX2F_118292(dir_186034, cfg);
						readconfigfile_185522(LOC51);
					}
				} LA44: ;
			}
			goto LA35;
			LA37: ;
			{
				{
					NI i_186053;
					NI HEX3Atmp_186055;
					NI res_186057;
					i_186053 = 0;
					HEX3Atmp_186055 = 0;
					HEX3Atmp_186055 = (NI)((pd ? pd->Sup.len : 0) - ((NI) 2));
					res_186057 = ((NI) 0);
					{
						while (1) {
							if (!(res_186057 <= HEX3Atmp_186055)) goto LA55;
							i_186053 = res_186057;
							{
								NIM_BOOL LOC58;
								NIM_BOOL LOC60;
								NimStringDesc* LOC64;
								LOC58 = 0;
								LOC58 = (((NU8)(pd->data[i_186053])) == ((NU8)(47)) || ((NU8)(pd->data[i_186053])) == ((NU8)(47)));
								if (!(LOC58)) goto LA59;
								LOC60 = 0;
								LOC60 = (i_186053 == ((NI) 0));
								if (LOC60) goto LA61;
								LOC60 = !((((NU8)(pd->data[(NI)(i_186053 - ((NI) 1))])) == ((NU8)(47)) || ((NU8)(pd->data[(NI)(i_186053 - ((NI) 1))])) == ((NU8)(47))));
								LA61: ;
								LOC58 = LOC60;
								LA59: ;
								if (!LOC58) goto LA62;
								dir_186034 = copyStrLast(pd, ((NI) 0), i_186053);
								LOC64 = 0;
								LOC64 = HEX2F_118292(dir_186034, cfg);
								readconfigfile_185522(LOC64);
							}
							LA62: ;
							res_186057 += ((NI) 1);
						} LA55: ;
					}
				}
				{
					NimStringDesc* LOC69;
					if (!NIM_FALSE) goto LA67;
					dir_186034 = pd;
					LOC69 = 0;
					LOC69 = HEX2F_118292(dir_186034, cfg);
					readconfigfile_185522(LOC69);
				}
				LA67: ;
			}
			LA35: ;
		}
	}
	LA32: ;
	{
		NimStringDesc* LOC74;
		if (!!(((gglobaloptions_153128 &(1<<((((NU8) 17))&31)))!=0))) goto LA72;
		LOC74 = 0;
		LOC74 = HEX2F_118292(pd, cfg);
		readconfigfile_185522(LOC74);
		{
			NimStringDesc* projectconfig;
			if (!!(((gprojectname_153234 ? gprojectname_153234->Sup.len : 0) == ((NI) 0)))) goto LA77;
			projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1896));
			{
				NIM_BOOL LOC81;
				LOC81 = 0;
				LOC81 = fileexists_117010(projectconfig);
				if (!!(LOC81)) goto LA82;
				projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1897));
			}
			LA82: ;
			{
				NIM_BOOL LOC86;
				LOC86 = 0;
				LOC86 = fileexists_117010(projectconfig);
				if (!!(LOC86)) goto LA87;
				projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1898));
				{
					NIM_BOOL LOC91;
					LOC91 = 0;
					LOC91 = fileexists_117010(projectconfig);
					if (!LOC91) goto LA92;
					rawmessage_163970(((NU16) 234), projectconfig);
				}
				LA92: ;
			}
			LA87: ;
			readconfigfile_185522(projectconfig);
		}
		LA77: ;
	}
	LA72: ;
}
Esempio n. 2
0
N_NIMCALL(void, loadconfigs_210603)(NimStringDesc* cfg) {
	NimStringDesc* pd;
	setdefaultlibpath_160298();
	{
		NimStringDesc* LOC5;
		if (!!(((gglobaloptions_160121 &(1U<<((NU)(((NU8) 16))&31U)))!=0))) goto LA3;
		LOC5 = 0;
		LOC5 = getsystemconfigpath_210434(cfg);
		readconfigfile_210382(LOC5);
	}
	LA3: ;
	{
		NimStringDesc* LOC10;
		if (!!(((gglobaloptions_160121 &(1U<<((NU)(((NU8) 18))&31U)))!=0))) goto LA8;
		LOC10 = 0;
		LOC10 = getuserconfigpath_210428(cfg);
		readconfigfile_210382(LOC10);
	}
	LA8: ;
	{
		if (!(((NI) 0) < (gprojectpath_160200 ? gprojectpath_160200->Sup.len : 0))) goto LA13;
		pd = copyString(gprojectpath_160200);
	}
	goto LA11;
	LA13: ;
	{
		pd = nosgetCurrentDir();
	}
	LA11: ;
	{
		if (!!(((gglobaloptions_160121 &(1U<<((NU)(((NU8) 19))&31U)))!=0))) goto LA18;
		{
			NimStringDesc* dir_210637;
			dir_210637 = 0;
			{
				NimStringDesc* current_210654;
				if (!NIM_FALSE) goto LA23;
				current_210654 = copyString(pd);
				{
					NimStringDesc* LOC29;
					if (!NIM_FALSE) goto LA27;
					dir_210637 = pd;
					LOC29 = 0;
					LOC29 = HEX2F_118465(dir_210637, cfg);
					readconfigfile_210382(LOC29);
				}
				LA27: ;
				{
					while (1) {
						NimStringDesc* LOC37;
						{
							NIM_BOOL LOC34;
							LOC34 = 0;
							LOC34 = nosisRootDir(current_210654);
							if (!LOC34) goto LA35;
							goto LA30;
						}
						LA35: ;
						current_210654 = nosparentDir(current_210654);
						dir_210637 = current_210654;
						LOC37 = 0;
						LOC37 = HEX2F_118465(dir_210637, cfg);
						readconfigfile_210382(LOC37);
					}
				} LA30: ;
			}
			goto LA21;
			LA23: ;
			{
				{
					NI i_210656;
					NI HEX3Atmp_210658;
					NI res_210660;
					i_210656 = 0;
					HEX3Atmp_210658 = 0;
					HEX3Atmp_210658 = (NI)((pd ? pd->Sup.len : 0) - ((NI) 2));
					res_210660 = ((NI) 0);
					{
						while (1) {
							if (!(res_210660 <= HEX3Atmp_210658)) goto LA41;
							i_210656 = res_210660;
							{
								NIM_BOOL LOC44;
								NIM_BOOL LOC46;
								NimStringDesc* LOC50;
								LOC44 = 0;
								LOC44 = (((NU8)(pd->data[i_210656])) == ((NU8)(47)) || ((NU8)(pd->data[i_210656])) == ((NU8)(47)));
								if (!(LOC44)) goto LA45;
								LOC46 = 0;
								LOC46 = (i_210656 == ((NI) 0));
								if (LOC46) goto LA47;
								LOC46 = !((((NU8)(pd->data[(NI)(i_210656 - ((NI) 1))])) == ((NU8)(47)) || ((NU8)(pd->data[(NI)(i_210656 - ((NI) 1))])) == ((NU8)(47))));
								LA47: ;
								LOC44 = LOC46;
								LA45: ;
								if (!LOC44) goto LA48;
								dir_210637 = copyStrLast(pd, ((NI) 0), i_210656);
								LOC50 = 0;
								LOC50 = HEX2F_118465(dir_210637, cfg);
								readconfigfile_210382(LOC50);
							}
							LA48: ;
							res_210660 += ((NI) 1);
						} LA41: ;
					}
				}
				{
					NimStringDesc* LOC55;
					if (!NIM_FALSE) goto LA53;
					dir_210637 = pd;
					LOC55 = 0;
					LOC55 = HEX2F_118465(dir_210637, cfg);
					readconfigfile_210382(LOC55);
				}
				LA53: ;
			}
			LA21: ;
		}
	}
	LA18: ;
	{
		NimStringDesc* LOC60;
		if (!!(((gglobaloptions_160121 &(1U<<((NU)(((NU8) 17))&31U)))!=0))) goto LA58;
		LOC60 = 0;
		LOC60 = HEX2F_118465(pd, cfg);
		readconfigfile_210382(LOC60);
		{
			NimStringDesc* projectconfig;
			if (!!(((gprojectname_160199 ? gprojectname_160199->Sup.len : 0) == ((NI) 0)))) goto LA63;
			projectconfig = noschangeFileExt(gprojectfull_160201, ((NimStringDesc*) &TMP2054));
			{
				NIM_BOOL LOC67;
				LOC67 = 0;
				LOC67 = fileexists_121804(projectconfig);
				if (!!(LOC67)) goto LA68;
				projectconfig = noschangeFileExt(gprojectfull_160201, ((NimStringDesc*) &TMP2055));
			}
			LA68: ;
			{
				NIM_BOOL LOC72;
				LOC72 = 0;
				LOC72 = fileexists_121804(projectconfig);
				if (!!(LOC72)) goto LA73;
				projectconfig = noschangeFileExt(gprojectfull_160201, ((NimStringDesc*) &TMP2056));
				{
					NIM_BOOL LOC77;
					LOC77 = 0;
					LOC77 = fileexists_121804(projectconfig);
					if (!LOC77) goto LA78;
					rawmessage_185612(((NU16) 241), projectconfig);
				}
				LA78: ;
			}
			LA73: ;
			readconfigfile_210382(projectconfig);
		}
		LA63: ;
	}
	LA58: ;
}
Esempio n. 3
0
N_NIMCALL(void, loadconfigs_182607)(NimStringDesc* cfg) {
	NimStringDesc* pd;
	nimfr("loadConfigs", "nimconf.nim")
	nimln(224, "nimconf.nim");
	{
		NimStringDesc* prefix;
		nimln(224, "nimconf.nim");
		if (!((libpath_136205) && (libpath_136205)->Sup.len == 0)) goto LA3;
		nimln(226, "nimconf.nim");
		prefix = getprefixdir_136330();
		nimln(227, "nimconf.nim");
		{
			NimStringDesc* LOC9;
			nimln(227, "nimconf.nim");
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP1923))) goto LA7;
			nimln(227, "nimconf.nim");
			LOC9 = 0;
			LOC9 = libpath_136205; libpath_136205 = copyStringRC1(((NimStringDesc*) &TMP1924));
			if (LOC9) nimGCunrefNoCycle(LOC9);
		}
		goto LA5;
		LA7: ;
		{
			NimStringDesc* LOC13;
			nimln(228, "nimconf.nim");
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP1925))) goto LA11;
			nimln(228, "nimconf.nim");
			LOC13 = 0;
			LOC13 = libpath_136205; libpath_136205 = copyStringRC1(((NimStringDesc*) &TMP1926));
			if (LOC13) nimGCunrefNoCycle(LOC13);
		}
		goto LA5;
		LA11: ;
		{
			nimln(229, "nimconf.nim");
			asgnRefNoCycle((void**) &libpath_136205, nosjoinPath(prefix, ((NimStringDesc*) &TMP1927)));
		}
		LA5: ;
	}
	LA3: ;
	nimln(231, "nimconf.nim");
	{
		NimStringDesc* LOC19;
		nimln(231, "nimconf.nim");
		nimln(231, "nimconf.nim");
		if (!!(((gglobaloptions_136111 &(1<<((((NU8) 16))&31)))!=0))) goto LA17;
		nimln(232, "nimconf.nim");
		nimln(232, "nimconf.nim");
		LOC19 = 0;
		LOC19 = getsystemconfigpath_182544(cfg);
		readconfigfile_182479(LOC19);
	}
	LA17: ;
	nimln(234, "nimconf.nim");
	{
		NimStringDesc* LOC24;
		nimln(234, "nimconf.nim");
		nimln(234, "nimconf.nim");
		if (!!(((gglobaloptions_136111 &(1<<((((NU8) 18))&31)))!=0))) goto LA22;
		nimln(235, "nimconf.nim");
		nimln(235, "nimconf.nim");
		LOC24 = 0;
		LOC24 = getuserconfigpath_182536(cfg);
		readconfigfile_182479(LOC24);
	}
	LA22: ;
	nimln(237, "nimconf.nim");
	nimln(237, "nimconf.nim");
	{
		nimln(237, "nimconf.nim");
		nimln(237, "nimconf.nim");
		if (!(0 < gprojectpath_136207->Sup.len)) goto LA27;
		pd = copyString(gprojectpath_136207);
	}
	goto LA25;
	LA27: ;
	{
		nimln(237, "nimconf.nim");
		pd = nosgetCurrentDir();
	}
	LA25: ;
	nimln(238, "nimconf.nim");
	{
		NimStringDesc* dir_182654;
		nimln(238, "nimconf.nim");
		nimln(238, "nimconf.nim");
		if (!!(((gglobaloptions_136111 &(1<<((((NU8) 19))&31)))!=0))) goto LA32;
		dir_182654 = 0;
		nimln(621, "os.nim");
		{
			NimStringDesc* current_182669;
			if (!NIM_FALSE) goto LA36;
			nimln(622, "os.nim");
			current_182669 = copyString(pd);
			nimln(623, "os.nim");
			{
				NimStringDesc* LOC42;
				if (!NIM_FALSE) goto LA40;
				nimln(239, "nimconf.nim");
				dir_182654 = pd;
				nimln(240, "nimconf.nim");
				nimln(240, "nimconf.nim");
				LOC42 = 0;
				LOC42 = HEX2F_109477(dir_182654, cfg);
				readconfigfile_182479(LOC42);
			}
			LA40: ;
			nimln(624, "os.nim");
			while (1) {
				NimStringDesc* LOC49;
				nimln(625, "os.nim");
				{
					NIM_BOOL LOC46;
					nimln(625, "os.nim");
					LOC46 = 0;
					LOC46 = nosisRootDir(current_182669);
					if (!LOC46) goto LA47;
					nimln(625, "os.nim");
					goto LA43;
				}
				LA47: ;
				nimln(626, "os.nim");
				current_182669 = nosparentDir(current_182669);
				nimln(622, "os.nim");
				dir_182654 = current_182669;
				nimln(240, "nimconf.nim");
				nimln(240, "nimconf.nim");
				LOC49 = 0;
				LOC49 = HEX2F_109477(dir_182654, cfg);
				readconfigfile_182479(LOC49);
			} LA43: ;
		}
		goto LA34;
		LA36: ;
		{
			NI i_182671;
			NI HEX3Atmp_182673;
			NI TMP1928;
			NI res_182675;
			i_182671 = 0;
			HEX3Atmp_182673 = 0;
			nimln(629, "os.nim");
			nimln(629, "os.nim");
			nimln(629, "os.nim");
			TMP1928 = subInt(pd->Sup.len, 2);
			HEX3Atmp_182673 = (NI32)(TMP1928);
			nimln(1450, "system.nim");
			res_182675 = 0;
			nimln(1451, "system.nim");
			while (1) {
				nimln(1451, "system.nim");
				if (!(res_182675 <= HEX3Atmp_182673)) goto LA51;
				nimln(1450, "system.nim");
				i_182671 = res_182675;
				nimln(631, "os.nim");
				{
					NIM_BOOL LOC54;
					NIM_BOOL LOC56;
					NI TMP1929;
					NimStringDesc* LOC60;
					nimln(631, "os.nim");
					LOC54 = 0;
					nimln(631, "os.nim");
					if ((NU)(i_182671) > (NU)(pd->Sup.len)) raiseIndexError();
					LOC54 = (((NU8)(pd->data[i_182671])) == ((NU8)(47)) || ((NU8)(pd->data[i_182671])) == ((NU8)(47)));
					if (!(LOC54)) goto LA55;
					nimln(632, "os.nim");
					LOC56 = 0;
					nimln(632, "os.nim");
					LOC56 = (i_182671 == 0);
					if (LOC56) goto LA57;
					nimln(632, "os.nim");
					nimln(632, "os.nim");
					nimln(632, "os.nim");
					TMP1929 = subInt(i_182671, 1);
					if ((NU)((NI32)(TMP1929)) > (NU)(pd->Sup.len)) raiseIndexError();
					LOC56 = !((((NU8)(pd->data[(NI32)(TMP1929)])) == ((NU8)(47)) || ((NU8)(pd->data[(NI32)(TMP1929)])) == ((NU8)(47))));
					LA57: ;
					LOC54 = LOC56;
					LA55: ;
					if (!LOC54) goto LA58;
					nimln(633, "os.nim");
					nimln(633, "os.nim");
					dir_182654 = copyStrLast(pd, 0, i_182671);
					nimln(240, "nimconf.nim");
					nimln(240, "nimconf.nim");
					LOC60 = 0;
					LOC60 = HEX2F_109477(dir_182654, cfg);
					readconfigfile_182479(LOC60);
				}
				LA58: ;
				nimln(1453, "system.nim");
				res_182675 = addInt(res_182675, 1);
			} LA51: ;
			nimln(635, "os.nim");
			{
				NimStringDesc* LOC65;
				if (!NIM_FALSE) goto LA63;
				nimln(239, "nimconf.nim");
				dir_182654 = pd;
				nimln(240, "nimconf.nim");
				nimln(240, "nimconf.nim");
				LOC65 = 0;
				LOC65 = HEX2F_109477(dir_182654, cfg);
				readconfigfile_182479(LOC65);
			}
			LA63: ;
		}
		LA34: ;
	}
	LA32: ;
	nimln(242, "nimconf.nim");
	{
		NimStringDesc* LOC70;
		nimln(242, "nimconf.nim");
		nimln(242, "nimconf.nim");
		if (!!(((gglobaloptions_136111 &(1<<((((NU8) 17))&31)))!=0))) goto LA68;
		nimln(243, "nimconf.nim");
		nimln(243, "nimconf.nim");
		LOC70 = 0;
		LOC70 = HEX2F_109477(pd, cfg);
		readconfigfile_182479(LOC70);
		nimln(245, "nimconf.nim");
		{
			NimStringDesc* LOC75;
			nimln(245, "nimconf.nim");
			nimln(245, "nimconf.nim");
			nimln(245, "nimconf.nim");
			if (!!((gprojectname_136206->Sup.len == 0))) goto LA73;
			nimln(247, "nimconf.nim");
			nimln(247, "nimconf.nim");
			LOC75 = 0;
			LOC75 = noschangeFileExt(gprojectfull_136208, ((NimStringDesc*) &TMP1930));
			readconfigfile_182479(LOC75);
		}
		LA73: ;
	}
	LA68: ;
	popFrame();
}
Esempio n. 4
0
N_NIMCALL(void, loadconfigs_186809)(NimStringDesc* cfg) {
	NimStringDesc* pd;
	nimfr("loadConfigs", "nimconf.nim")
	nimln(230, "nimconf.nim");
	{
		NimStringDesc* prefix;
		if (!((libpath_154233) && (libpath_154233)->Sup.len == 0)) goto LA3;
		nimln(232, "nimconf.nim");
		prefix = getprefixdir_154365();
		nimln(234, "nimconf.nim");
		{
			NimStringDesc* LOC9;
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP2504))) goto LA7;
			LOC9 = 0;
			LOC9 = libpath_154233; libpath_154233 = copyStringRC1(((NimStringDesc*) &TMP2505));
			if (LOC9) nimGCunrefNoCycle(LOC9);
		}
		goto LA5;
		LA7: ;
		{
			NimStringDesc* LOC13;
			nimln(235, "nimconf.nim");
			if (!eqStrings(prefix, ((NimStringDesc*) &TMP2506))) goto LA11;
			LOC13 = 0;
			LOC13 = libpath_154233; libpath_154233 = copyStringRC1(((NimStringDesc*) &TMP2507));
			if (LOC13) nimGCunrefNoCycle(LOC13);
		}
		goto LA5;
		LA11: ;
		{
			nimln(236, "nimconf.nim");
			asgnRefNoCycle((void**) (&libpath_154233), nosjoinPath(prefix, ((NimStringDesc*) &TMP2508)));
		}
		LA5: ;
	}
	LA3: ;
	nimln(239, "nimconf.nim");
	{
		NimStringDesc* LOC19;
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 16))&31)))!=0))) goto LA17;
		nimln(240, "nimconf.nim");
		LOC19 = 0;
		LOC19 = getsystemconfigpath_186594(cfg);
		readconfigfile_186520(LOC19);
	}
	LA17: ;
	nimln(242, "nimconf.nim");
	{
		NimStringDesc* LOC24;
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 18))&31)))!=0))) goto LA22;
		nimln(243, "nimconf.nim");
		LOC24 = 0;
		LOC24 = getuserconfigpath_186582(cfg);
		readconfigfile_186520(LOC24);
	}
	LA22: ;
	nimln(245, "nimconf.nim");
	{
		if (!(((NI) 0) < (gprojectpath_154235 ? gprojectpath_154235->Sup.len : 0))) goto LA27;
		pd = copyString(gprojectpath_154235);
	}
	goto LA25;
	LA27: ;
	{
		pd = nosgetCurrentDir();
	}
	LA25: ;
	nimln(246, "nimconf.nim");
	{
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 19))&31)))!=0))) goto LA32;
		{
			NimStringDesc* dir_187034;
			dir_187034 = 0;
			nimln(635, "os.nim");
			{
				NimStringDesc* current_187051;
				if (!NIM_FALSE) goto LA37;
				nimln(636, "os.nim");
				current_187051 = copyString(pd);
				nimln(637, "os.nim");
				{
					NimStringDesc* LOC43;
					if (!NIM_FALSE) goto LA41;
					nimln(247, "nimconf.nim");
					dir_187034 = pd;
					nimln(248, "nimconf.nim");
					LOC43 = 0;
					LOC43 = HEX2F_119292(dir_187034, cfg);
					readconfigfile_186520(LOC43);
				}
				LA41: ;
				{
					nimln(638, "os.nim");
					while (1) {
						NimStringDesc* LOC51;
						nimln(639, "os.nim");
						{
							NIM_BOOL LOC48;
							LOC48 = 0;
							LOC48 = nosisRootDir(current_187051);
							if (!LOC48) goto LA49;
							goto LA44;
						}
						LA49: ;
						nimln(640, "os.nim");
						current_187051 = nosparentDir(current_187051);
						nimln(636, "os.nim");
						dir_187034 = current_187051;
						nimln(248, "nimconf.nim");
						LOC51 = 0;
						LOC51 = HEX2F_119292(dir_187034, cfg);
						readconfigfile_186520(LOC51);
					}
				} LA44: ;
			}
			goto LA35;
			LA37: ;
			{
				{
					NI i_187053;
					NI HEX3Atmp_187055;
					NI TMP2509;
					NI res_187057;
					i_187053 = 0;
					HEX3Atmp_187055 = 0;
					nimln(643, "os.nim");
					TMP2509 = subInt((pd ? pd->Sup.len : 0), ((NI) 2));
					HEX3Atmp_187055 = (NI)(TMP2509);
					nimln(1598, "system.nim");
					res_187057 = ((NI) 0);
					{
						nimln(1599, "system.nim");
						while (1) {
							NI TMP2511;
							if (!(res_187057 <= HEX3Atmp_187055)) goto LA55;
							nimln(1600, "system.nim");
							i_187053 = res_187057;
							nimln(645, "os.nim");
							{
								NIM_BOOL LOC58;
								NIM_BOOL LOC60;
								NI TMP2510;
								NimStringDesc* LOC64;
								LOC58 = 0;
								if ((NU)(i_187053) > (NU)(pd->Sup.len)) raiseIndexError();
								LOC58 = (((NU8)(pd->data[i_187053])) == ((NU8)(47)) || ((NU8)(pd->data[i_187053])) == ((NU8)(47)));
								if (!(LOC58)) goto LA59;
								nimln(646, "os.nim");
								LOC60 = 0;
								LOC60 = (i_187053 == ((NI) 0));
								if (LOC60) goto LA61;
								TMP2510 = subInt(i_187053, ((NI) 1));
								if ((NU)((NI)(TMP2510)) > (NU)(pd->Sup.len)) raiseIndexError();
								LOC60 = !((((NU8)(pd->data[(NI)(TMP2510)])) == ((NU8)(47)) || ((NU8)(pd->data[(NI)(TMP2510)])) == ((NU8)(47))));
								LA61: ;
								LOC58 = LOC60;
								LA59: ;
								if (!LOC58) goto LA62;
								nimln(647, "os.nim");
								dir_187034 = copyStrLast(pd, ((NI) 0), i_187053);
								nimln(248, "nimconf.nim");
								LOC64 = 0;
								LOC64 = HEX2F_119292(dir_187034, cfg);
								readconfigfile_186520(LOC64);
							}
							LA62: ;
							nimln(1614, "system.nim");
							TMP2511 = addInt(res_187057, ((NI) 1));
							res_187057 = (NI)(TMP2511);
						} LA55: ;
					}
				}
				nimln(649, "os.nim");
				{
					NimStringDesc* LOC69;
					if (!NIM_FALSE) goto LA67;
					nimln(247, "nimconf.nim");
					dir_187034 = pd;
					nimln(248, "nimconf.nim");
					LOC69 = 0;
					LOC69 = HEX2F_119292(dir_187034, cfg);
					readconfigfile_186520(LOC69);
				}
				LA67: ;
			}
			LA35: ;
		}
	}
	LA32: ;
	nimln(250, "nimconf.nim");
	{
		NimStringDesc* LOC74;
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 17))&31)))!=0))) goto LA72;
		nimln(251, "nimconf.nim");
		LOC74 = 0;
		LOC74 = HEX2F_119292(pd, cfg);
		readconfigfile_186520(LOC74);
		nimln(253, "nimconf.nim");
		{
			NimStringDesc* projectconfig;
			if (!!(((gprojectname_154234 ? gprojectname_154234->Sup.len : 0) == ((NI) 0)))) goto LA77;
			nimln(255, "nimconf.nim");
			projectconfig = noschangeFileExt(gprojectfull_154236, ((NimStringDesc*) &TMP2512));
			nimln(256, "nimconf.nim");
			{
				NIM_BOOL LOC81;
				LOC81 = 0;
				LOC81 = fileexists_118010(projectconfig);
				if (!!(LOC81)) goto LA82;
				nimln(257, "nimconf.nim");
				projectconfig = noschangeFileExt(gprojectfull_154236, ((NimStringDesc*) &TMP2513));
			}
			LA82: ;
			nimln(258, "nimconf.nim");
			{
				NIM_BOOL LOC86;
				LOC86 = 0;
				LOC86 = fileexists_118010(projectconfig);
				if (!!(LOC86)) goto LA87;
				nimln(259, "nimconf.nim");
				projectconfig = noschangeFileExt(gprojectfull_154236, ((NimStringDesc*) &TMP2514));
				nimln(260, "nimconf.nim");
				{
					NIM_BOOL LOC91;
					LOC91 = 0;
					LOC91 = fileexists_118010(projectconfig);
					if (!LOC91) goto LA92;
					nimln(261, "nimconf.nim");
					rawmessage_164960(((NU16) 234), projectconfig);
				}
				LA92: ;
			}
			LA87: ;
			nimln(262, "nimconf.nim");
			readconfigfile_186520(projectconfig);
		}
		LA77: ;
	}
	LA72: ;
	popFrame();
}
N_NIMCALL(void, loadconfigs_291603_930198375)(NimStringDesc* cfg0) {
	NimStringDesc* pd0;
	setdefaultlibpath_170308_2607990831();
	{
		NimStringDesc* LOC5;
		if (!!(((gglobaloptions_170130_2607990831 &((NU64)1<<((NU)(((Tglobaloption170013) 16))&63U)))!=0))) goto LA3;
		LOC5 = (NimStringDesc*)0;
		LOC5 = getsystemconfigpath_291433_930198375(cfg0);
		readconfigfile_291381_930198375(LOC5);
	}
	LA3: ;
	{
		NimStringDesc* LOC10;
		if (!!(((gglobaloptions_170130_2607990831 &((NU64)1<<((NU)(((Tglobaloption170013) 18))&63U)))!=0))) goto LA8;
		LOC10 = (NimStringDesc*)0;
		LOC10 = getuserconfigpath_291427_930198375(cfg0);
		readconfigfile_291381_930198375(LOC10);
	}
	LA8: ;
	{
		if (!(((NI) 0) < (gprojectpath_170210_2607990831 ? gprojectpath_170210_2607990831->Sup.len : 0))) goto LA13;
		pd0 = copyString(gprojectpath_170210_2607990831);
	}
	goto LA11;
	LA13: ;
	{
		pd0 = nosgetCurrentDir();
	}
	LA11: ;
	{
		if (!!(((gglobaloptions_170130_2607990831 &((NU64)1<<((NU)(((Tglobaloption170013) 19))&63U)))!=0))) goto LA18;
		{
			NimStringDesc* dir_291637_930198375;
			dir_291637_930198375 = (NimStringDesc*)0;
			{
				NimStringDesc* current_291654_930198375;
				if (!NIM_FALSE) goto LA23;
				current_291654_930198375 = copyString(pd0);
				{
					NimStringDesc* LOC29;
					if (!NIM_FALSE) goto LA27;
					dir_291637_930198375 = pd0;
					LOC29 = (NimStringDesc*)0;
					LOC29 = HEX2F_128265_2125978480(dir_291637_930198375, cfg0);
					readconfigfile_291381_930198375(LOC29);
				}
				LA27: ;
				{
					while (1) {
						NimStringDesc* LOC37;
						{
							NIM_BOOL LOC34;
							LOC34 = (NIM_BOOL)0;
							LOC34 = nosisRootDir(current_291654_930198375);
							if (!LOC34) goto LA35;
							goto LA30;
						}
						LA35: ;
						current_291654_930198375 = nosparentDir(current_291654_930198375);
						dir_291637_930198375 = current_291654_930198375;
						LOC37 = (NimStringDesc*)0;
						LOC37 = HEX2F_128265_2125978480(dir_291637_930198375, cfg0);
						readconfigfile_291381_930198375(LOC37);
					}
				} LA30: ;
			}
			goto LA21;
			LA23: ;
			{
				{
					NI i_291656_930198375;
					NI HEX3Atmp_291658_930198375;
					NI res_291660_930198375;
					i_291656_930198375 = (NI)0;
					HEX3Atmp_291658_930198375 = (NI)0;
					HEX3Atmp_291658_930198375 = (NI)((pd0 ? pd0->Sup.len : 0) - ((NI) 2));
					res_291660_930198375 = ((NI) 0);
					{
						while (1) {
							if (!(res_291660_930198375 <= HEX3Atmp_291658_930198375)) goto LA41;
							i_291656_930198375 = res_291660_930198375;
							{
								NIM_BOOL LOC44;
								NIM_BOOL LOC46;
								NimStringDesc* LOC50;
								LOC44 = (NIM_BOOL)0;
								LOC44 = (((NU8)(pd0->data[i_291656_930198375])) == ((NU8)(47)) || ((NU8)(pd0->data[i_291656_930198375])) == ((NU8)(47)));
								if (!(LOC44)) goto LA45;
								LOC46 = (NIM_BOOL)0;
								LOC46 = (i_291656_930198375 == ((NI) 0));
								if (LOC46) goto LA47;
								LOC46 = !((((NU8)(pd0->data[(NI)(i_291656_930198375 - ((NI) 1))])) == ((NU8)(47)) || ((NU8)(pd0->data[(NI)(i_291656_930198375 - ((NI) 1))])) == ((NU8)(47))));
								LA47: ;
								LOC44 = LOC46;
								LA45: ;
								if (!LOC44) goto LA48;
								dir_291637_930198375 = copyStrLast(pd0, ((NI) 0), i_291656_930198375);
								LOC50 = (NimStringDesc*)0;
								LOC50 = HEX2F_128265_2125978480(dir_291637_930198375, cfg0);
								readconfigfile_291381_930198375(LOC50);
							}
							LA48: ;
							res_291660_930198375 += ((NI) 1);
						} LA41: ;
					}
				}
				{
					NimStringDesc* LOC55;
					if (!NIM_FALSE) goto LA53;
					dir_291637_930198375 = pd0;
					LOC55 = (NimStringDesc*)0;
					LOC55 = HEX2F_128265_2125978480(dir_291637_930198375, cfg0);
					readconfigfile_291381_930198375(LOC55);
				}
				LA53: ;
			}
			LA21: ;
		}
	}
	LA18: ;
	{
		NimStringDesc* LOC60;
		if (!!(((gglobaloptions_170130_2607990831 &((NU64)1<<((NU)(((Tglobaloption170013) 17))&63U)))!=0))) goto LA58;
		LOC60 = (NimStringDesc*)0;
		LOC60 = HEX2F_128265_2125978480(pd0, cfg0);
		readconfigfile_291381_930198375(LOC60);
		{
			NimStringDesc* projectconfig0;
			if (!!(((gprojectname_170209_2607990831 ? gprojectname_170209_2607990831->Sup.len : 0) == ((NI) 0)))) goto LA63;
			projectconfig0 = noschangeFileExt(gprojectfull_170211_2607990831, ((NimStringDesc*) &T930198375_21));
			{
				NIM_BOOL LOC67;
				LOC67 = (NIM_BOOL)0;
				LOC67 = fileexists_131604_2125978480(projectconfig0);
				if (!!(LOC67)) goto LA68;
				projectconfig0 = noschangeFileExt(gprojectfull_170211_2607990831, ((NimStringDesc*) &T930198375_22));
			}
			LA68: ;
			{
				NIM_BOOL LOC72;
				LOC72 = (NIM_BOOL)0;
				LOC72 = fileexists_131604_2125978480(projectconfig0);
				if (!!(LOC72)) goto LA73;
				projectconfig0 = noschangeFileExt(gprojectfull_170211_2607990831, ((NimStringDesc*) &T930198375_23));
				{
					NIM_BOOL LOC77;
					LOC77 = (NIM_BOOL)0;
					LOC77 = fileexists_131604_2125978480(projectconfig0);
					if (!LOC77) goto LA78;
					rawmessage_195612_155036129(((Tmsgkind192002) 241), projectconfig0);
				}
				LA78: ;
			}
			LA73: ;
			readconfigfile_291381_930198375(projectconfig0);
		}
		LA63: ;
	}
	LA58: ;
}