コード例 #1
0
ファイル: compiler_nimblecmd.c プロジェクト: jlp765/csources
N_NIMCALL(void, addpackage_172126)(Stringtableobj133012* packages, NimStringDesc* p) {
	NI x;
	NimStringDesc* name;
	x = versionsplitpos_172023(p);
	name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1)));
	{
		NimStringDesc* version;
		if (!(x < (p ? p->Sup.len : 0))) goto LA3;
		version = copyStr(p, (NI)(x + ((NI) 1)));
		{
			NimStringDesc* LOC7;
			NIM_BOOL LOC8;
			LOC7 = 0;
			LOC7 = nstGet(packages, name);
			LOC8 = 0;
			LOC8 = HEX3CHEX2E_172064(LOC7, version);
			if (!LOC8) goto LA9;
			nstPut(packages, name, version);
		}
		LA9: ;
	}
	goto LA1;
	LA3: ;
	{
		nstPut(packages, name, ((NimStringDesc*) &TMP1660));
	}
	LA1: ;
}
コード例 #2
0
ファイル: compiler_nimblecmd.c プロジェクト: StetHD/csources
N_NIMCALL(void, addpackage_196084)(Stringtableobj140209* packages, NimStringDesc* p) {
	NI x;
	NimStringDesc* name;
	x = versionsplitpos_196008(p);
	name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1)));
	{
		NimStringDesc* version;
		if (!(x < (p ? p->Sup.len : 0))) goto LA3;
		version = copyStr(p, (NI)(x + ((NI) 1)));
		{
			NimStringDesc* LOC7;
			NIM_BOOL LOC8;
			LOC7 = 0;
			LOC7 = getordefault_140814(packages, name);
			LOC8 = 0;
			LOC8 = HEX3CHEX2E_196034(LOC7, version);
			if (!LOC8) goto LA9;
			nstPut(packages, name, version);
		}
		LA9: ;
	}
	goto LA1;
	LA3: ;
	{
		nstPut(packages, name, ((NimStringDesc*) &TMP1794));
	}
	LA1: ;
}
コード例 #3
0
N_NIMCALL(void, addpackage_277083_1623492514)(Stringtableobj152608* packages0, NimStringDesc* p0) {
	NI x0;
	NimStringDesc* name0;
	x0 = versionsplitpos_277007_1623492514(p0);
	name0 = copyStrLast(p0, ((NI) 0), (NI)(x0 - ((NI) 1)));
	{
		NimStringDesc* version0;
		if (!(x0 < (p0 ? p0->Sup.len : 0))) goto LA3;
		version0 = copyStr(p0, (NI)(x0 + ((NI) 1)));
		{
			NimStringDesc* LOC7;
			NIM_BOOL LOC8;
			LOC7 = (NimStringDesc*)0;
			LOC7 = getordefault_153214_603679043(packages0, name0);
			LOC8 = (NIM_BOOL)0;
			LOC8 = HEX3CHEX2E_277033_1623492514(LOC7, version0);
			if (!LOC8) goto LA9;
			nstPut(packages0, name0, version0);
		}
		LA9: ;
	}
	goto LA1;
	LA3: ;
	{
		nstPut(packages0, name0, ((NimStringDesc*) &T1623492514_5));
	}
	LA1: ;
}
コード例 #4
0
N_NIMCALL(void, addpackage_mPfTsfux8gBVeyQ8xwDYTQ)(Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* packages0, NimStringDesc* p0) {
	NI x0;
	NimStringDesc* name0;
	x0 = versionsplitpos_0bw6GOnkbOdW19ciUnT3QEw(p0);
	name0 = copyStrLast(p0, ((NI) 0), (NI)(x0 - ((NI) 1)));
	{
		NimStringDesc* version0;
		if (!(x0 < (p0 ? p0->Sup.len : 0))) goto LA3;
		version0 = copyStr(p0, (NI)(x0 + ((NI) 1)));
		{
			NimStringDesc* LOC7;
			NIM_BOOL LOC8;
			LOC7 = (NimStringDesc*)0;
			LOC7 = getordefault_puv5W0GXw9aUdLJI2i8WreQ(packages0, name0);
			LOC8 = (NIM_BOOL)0;
			LOC8 = HEX3CHEX2E_T3MrVNu6QdhxPeHWeI9a9bIg(LOC7, version0);
			if (!LOC8) goto LA9;
			nstPut(packages0, name0, version0);
		}
		LA9: ;
	}
	goto LA1;
	LA3: ;
	{
		nstPut(packages0, name0, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_5));
	}
	LA1: ;
}
コード例 #5
0
ファイル: babelcmd.c プロジェクト: rbehrends/csources
N_NIMCALL(void, addpackage_175137)(tstringtable123810* packages, NimStringDesc* p) {
    NI x;
    NimStringDesc* name;
    NI TMP1418;
    nimfr("addPackage", "babelcmd.nim")
    nimln(47, "babelcmd.nim");
    x = versionsplitpos_175014(p);
    nimln(48, "babelcmd.nim");
    nimln(48, "babelcmd.nim");
    nimln(48, "babelcmd.nim");
    TMP1418 = subInt(x, 1);
    name = copyStrLast(p, 0, (NI32)(TMP1418));
    nimln(49, "babelcmd.nim");
    {
        NimStringDesc* version;
        NI TMP1419;
        nimln(49, "babelcmd.nim");
        nimln(49, "babelcmd.nim");
        if (!(x < p->Sup.len)) goto LA3;
        nimln(50, "babelcmd.nim");
        nimln(50, "babelcmd.nim");
        nimln(50, "babelcmd.nim");
        TMP1419 = addInt(x, 1);
        version = copyStr(p, (NI32)(TMP1419));
        nimln(51, "babelcmd.nim");
        {
            NimStringDesc* LOC7;
            NIM_BOOL LOC8;
            nimln(51, "babelcmd.nim");
            nimln(51, "babelcmd.nim");
            LOC7 = 0;
            LOC7 = nstGet(packages, name);
            LOC8 = 0;
            LOC8 = HEX3CHEX2E_175054(LOC7, version);
            if (!LOC8) goto LA9;
            nimln(52, "babelcmd.nim");
            nstPut(packages, name, version);
        }
LA9:
        ;
    }
    goto LA1;
LA3:
    ;
    {
        nimln(54, "babelcmd.nim");
        nstPut(packages, name, ((NimStringDesc*) &TMP1417));
    }
LA1:
    ;
    popFrame();
}
コード例 #6
0
ファイル: pure_strtabs.c プロジェクト: rbehrends/csources
N_NIMCALL(tstringtable113610*, nstnewStringTableWithPairs)(NimStringDesc** keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) {
    tstringtable113610* result;
    NI i;
    nimfr("newStringTable", "strtabs.nim")
    result = 0;
    nimln(173, "strtabs.nim");
    result = nstnewStringTable(mode);
    nimln(174, "strtabs.nim");
    i = 0;
    nimln(175, "strtabs.nim");
    while (1) {
        NI TMP313;
        nimln(175, "strtabs.nim");
        nimln(175, "strtabs.nim");
        if (!(i < (keyvaluepairsLen0-1))) goto LA1;
        nimln(176, "strtabs.nim");
        if ((NU)(i) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
        nimln(176, "strtabs.nim");
        TMP313 = addInt(i, 1);
        if ((NU)((NI32)(TMP313)) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
        nstPut(result, keyvaluepairs[i], keyvaluepairs[(NI32)(TMP313)]);
        nimln(177, "strtabs.nim");
        i = addInt(i, 2);
    }
LA1:
    ;
    popFrame();
    return result;
}
コード例 #7
0
ファイル: stdlib_strtabs.c プロジェクト: JJjie/RuCTF-2015
N_NIMCALL(Stringtableobj144212*, nstnewStringTableWithTableConstr)(TY145352* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) {
    Stringtableobj144212* result;
    result = 0;
    result = nstnewStringTable(mode);
    {
        NimStringDesc* key_145393;
        NimStringDesc* val_145394;
        NI i_145398;
        key_145393 = 0;
        val_145394 = 0;
        i_145398 = ((NI) 0);
        {
            while (1) {
                if (!(i_145398 < keyvaluepairsLen0)) goto LA3;
                key_145393 = keyvaluepairs[i_145398].Field0;
                val_145394 = keyvaluepairs[i_145398].Field1;
                nstPut(result, key_145393, val_145394);
                i_145398 += ((NI) 1);
            }
LA3:
            ;
        }
    }
    return result;
}
コード例 #8
0
ファイル: pure_strtabs.c プロジェクト: rbehrends/csources
N_NIMCALL(tstringtable113610*, nstnewStringTableWithTableConstr)(TY92504* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) {
    tstringtable113610* result;
    NimStringDesc* key_114101;
    NimStringDesc* val_114102;
    NI i_114104;
    nimfr("newStringTable", "strtabs.nim")
    result = 0;
    nimln(186, "strtabs.nim");
    result = nstnewStringTable(mode);
    key_114101 = 0;
    val_114102 = 0;
    nimln(1377, "system.nim");
    i_114104 = 0;
    nimln(1378, "system.nim");
    while (1) {
        nimln(1378, "system.nim");
        nimln(1378, "system.nim");
        if (!(i_114104 < keyvaluepairsLen0)) goto LA1;
        nimln(1379, "system.nim");
        if ((NU)(i_114104) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
        key_114101 = keyvaluepairs[i_114104].Field0;
        nimln(1379, "system.nim");
        if ((NU)(i_114104) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
        val_114102 = keyvaluepairs[i_114104].Field1;
        nimln(187, "strtabs.nim");
        nstPut(result, key_114101, val_114102);
        nimln(1380, "system.nim");
        i_114104 = addInt(i_114104, 1);
    }
LA1:
    ;
    popFrame();
    return result;
}
コード例 #9
0
ファイル: stdlib_strtabs.c プロジェクト: reactormonk/csources
N_NIMCALL(tstringtable120810*, nstnewStringTableWithTableConstr)(TY94106* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) {
	tstringtable120810* result;
	NimStringDesc* key_121370;
	NimStringDesc* val_121371;
	NI i_121373;
	nimfr("newStringTable", "strtabs.nim")
	result = 0;
	nimln(186, "strtabs.nim");
	result = nstnewStringTable(mode);
	key_121370 = 0;
	val_121371 = 0;
	nimln(1530, "system.nim");
	i_121373 = 0;
	nimln(1531, "system.nim");
	while (1) {
		nimln(1531, "system.nim");
		nimln(1531, "system.nim");
		if (!(i_121373 < keyvaluepairsLen0)) goto LA1;
		nimln(1532, "system.nim");
		if ((NU)(i_121373) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
		key_121370 = keyvaluepairs[i_121373].Field0;
		nimln(1532, "system.nim");
		if ((NU)(i_121373) >= (NU)(keyvaluepairsLen0)) raiseIndexError();
		val_121371 = keyvaluepairs[i_121373].Field1;
		nimln(187, "strtabs.nim");
		nstPut(result, key_121370, val_121371);
		nimln(1533, "system.nim");
		i_121373 = addInt(i_121373, 1);
	} LA1: ;
	popFrame();
	return result;
}
コード例 #10
0
ファイル: compiler_options.c プロジェクト: rbehrends/csources
N_NIMCALL(void, incldynliboverride_114644)(NimStringDesc* lib) {
	NimStringDesc* LOC1;
	nimfr("inclDynlibOverride", "options.nim")
	nimln(318, "options.nim");
	nimln(318, "options.nim");
	LOC1 = 0;
	LOC1 = canondynlibname_114635(lib);
	nstPut(gdlloverrides_114195, LOC1, ((NimStringDesc*) &TMP363));	popFrame();
}
コード例 #11
0
ファイル: options.c プロジェクト: reactormonk/csources
N_NIMCALL(void, incldynliboverride_137369)(NimStringDesc* lib) {
	NimStringDesc* LOC1;
	nimfr("inclDynlibOverride", "options.nim")
	nimln(364, "options.nim");
	nimln(364, "options.nim");
	LOC1 = 0;
	LOC1 = canondynlibname_137360(lib);
	nstPut(gdlloverrides_136204, LOC1, ((NimStringDesc*) &TMP445));
	popFrame();
}
コード例 #12
0
ファイル: compiler_condsyms.c プロジェクト: StetHD/csources
N_NIMCALL(void, definesymbol_191004)(NimStringDesc* symbol) {
	nstPut(gsymbols_191001, symbol, ((NimStringDesc*) &TMP1639));
}
コード例 #13
0
ファイル: options.c プロジェクト: reactormonk/csources
N_NIMCALL(void, setconfigvar_136317)(NimStringDesc* key, NimStringDesc* val) {
	nimfr("setConfigVar", "options.nim")
	nimln(181, "options.nim");
	nstPut(gconfigvars_136203, key, val);
	popFrame();
}
コード例 #14
0
N_NIMCALL(void, definesymbol_142006)(NimStringDesc* symbol) {
	nimfr("DefineSymbol", "condsyms.nim")
	nimln(20, "condsyms.nim");
	nstPut(gsymbols_142003, symbol, ((NimStringDesc*) &TMP897));	popFrame();
}
コード例 #15
0
N_NIMCALL(void, undefsymbol_142011)(NimStringDesc* symbol) {
	nimfr("UndefSymbol", "condsyms.nim")
	nimln(23, "condsyms.nim");
	nstPut(gsymbols_142003, symbol, ((NimStringDesc*) &TMP898));	popFrame();
}
コード例 #16
0
N_NIMCALL(void, definesymbol_166013)(NimStringDesc* symbol) {
	nimfr("defineSymbol", "condsyms.nim")
	nimln(23, "condsyms.nim");
	nstPut(gsymbols_166004, symbol, ((NimStringDesc*) &TMP1317));
	popFrame();
}
コード例 #17
0
N_NIMCALL(void, undefsymbol_166022)(NimStringDesc* symbol) {
	nimfr("undefSymbol", "condsyms.nim")
	nimln(26, "condsyms.nim");
	nstPut(gsymbols_166004, symbol, ((NimStringDesc*) &TMP1318));
	popFrame();
}
コード例 #18
0
ファイル: stdlib_cookies.c プロジェクト: reactormonk/csources
N_NIMCALL(tstringtable120810*, parsecookies_333012)(NimStringDesc* s) {
	tstringtable120810* result;
	NI i;
	nimfr("parseCookies", "cookies.nim")
	result = 0;
	nimln(16, "cookies.nim");
	result = nstnewStringTable(((NU8) 1));
	nimln(17, "cookies.nim");
	i = 0;
	nimln(18, "cookies.nim");
	while (1) {
		NI keystart;
		NI keyend;
		NI TMP4687;
		NI valstart;
		NimStringDesc* LOC15;
		NI TMP4688;
		NimStringDesc* LOC16;
		nimln(19, "cookies.nim");
		while (1) {
			NIM_BOOL LOC3;
			nimln(19, "cookies.nim");
			LOC3 = 0;
			nimln(19, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC3 = ((NU8)(s->data[i]) == (NU8)(32));
			if (LOC3) goto LA4;
			nimln(19, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC3 = ((NU8)(s->data[i]) == (NU8)(9));
			LA4: ;
			if (!LOC3) goto LA2;
			nimln(19, "cookies.nim");
			i = addInt(i, 1);
		} LA2: ;
		nimln(20, "cookies.nim");
		keystart = i;
		nimln(21, "cookies.nim");
		while (1) {
			NIM_BOOL LOC6;
			nimln(21, "cookies.nim");
			LOC6 = 0;
			nimln(21, "cookies.nim");
			nimln(21, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC6 = !(((NU8)(s->data[i]) == (NU8)(61)));
			if (!(LOC6)) goto LA7;
			nimln(21, "cookies.nim");
			nimln(21, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC6 = !(((NU8)(s->data[i]) == (NU8)(0)));
			LA7: ;
			if (!LOC6) goto LA5;
			nimln(21, "cookies.nim");
			i = addInt(i, 1);
		} LA5: ;
		nimln(22, "cookies.nim");
		nimln(22, "cookies.nim");
		TMP4687 = subInt(i, 1);
		keyend = (NI32)(TMP4687);
		nimln(23, "cookies.nim");
		{
			nimln(23, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA10;
			nimln(23, "cookies.nim");
			goto LA1;
		}
		LA10: ;
		nimln(24, "cookies.nim");
		i = addInt(i, 1);
		nimln(25, "cookies.nim");
		valstart = i;
		nimln(26, "cookies.nim");
		while (1) {
			NIM_BOOL LOC13;
			nimln(26, "cookies.nim");
			LOC13 = 0;
			nimln(26, "cookies.nim");
			nimln(26, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC13 = !(((NU8)(s->data[i]) == (NU8)(59)));
			if (!(LOC13)) goto LA14;
			nimln(26, "cookies.nim");
			nimln(26, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			LOC13 = !(((NU8)(s->data[i]) == (NU8)(0)));
			LA14: ;
			if (!LOC13) goto LA12;
			nimln(26, "cookies.nim");
			i = addInt(i, 1);
		} LA12: ;
		nimln(27, "cookies.nim");
		nimln(27, "cookies.nim");
		LOC15 = 0;
		LOC15 = copyStrLast(s, keystart, keyend);
		nimln(27, "cookies.nim");
		nimln(27, "cookies.nim");
		TMP4688 = subInt(i, 1);
		LOC16 = 0;
		LOC16 = copyStrLast(s, valstart, (NI32)(TMP4688));
		nstPut(result, LOC15, LOC16);
		nimln(28, "cookies.nim");
		{
			nimln(28, "cookies.nim");
			if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError();
			if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA19;
			nimln(28, "cookies.nim");
			goto LA1;
		}
		LA19: ;
		nimln(29, "cookies.nim");
		i = addInt(i, 1);
	} LA1: ;
	popFrame();
	return result;
}
コード例 #19
0
ファイル: options.c プロジェクト: reactormonk/csources
N_NIMCALL(NimStringDesc*, getpackagename_136811)(NimStringDesc* path) {
	NimStringDesc* result;
	NI parents;
	NimStringDesc* d_136835;
	NimStringDesc* current_136866;
	nimfr("getPackageName", "options.nim")
	result = 0;
	nimln(234, "options.nim");
	parents = 0;
	{
		NimStringDesc* d_136817;
		NimStringDesc* current_136864;
		d_136817 = 0;
		nimln(227, "options.nim");
		current_136864 = copyString(path);
		nimln(228, "options.nim");
		while (1) {
			NimStringDesc* file_136834;
			NimStringDesc* HEX3Atmp_136852;
			glob_t f_136854;
			NI res_136856;
			int LOC12;
			nimln(229, "options.nim");
			current_136864 = nosparentDir(current_136864);
			nimln(230, "options.nim");
			{
				nimln(230, "options.nim");
				nimln(230, "options.nim");
				if (!(current_136864->Sup.len == 0)) goto LA5;
				nimln(230, "options.nim");
				goto LA2;
			}
			LA5: ;
			nimln(227, "options.nim");
			d_136817 = current_136864;
			nimln(237, "options.nim");
			{
				NIM_BOOL LOC9;
				nimln(237, "options.nim");
				LOC9 = 0;
				LOC9 = nsthasKey(packagecache_136601, d_136817);
				if (!LOC9) goto LA10;
				nimln(239, "options.nim");
				nimln(239, "options.nim");
				result = nstGet(packagecache_136601, d_136817);
				goto BeforeRet;
			}
			LA10: ;
			nimln(240, "options.nim");
			parents = addInt(parents, 1);
			file_136834 = 0;
			HEX3Atmp_136852 = 0;
			nimln(241, "options.nim");
			HEX3Atmp_136852 = HEX2F_108477(d_136817, ((NimStringDesc*) &TMP425));
			memset((void*)&f_136854, 0, sizeof(f_136854));
			res_136856 = 0;
			nimln(1208, "os.nim");
			f_136854.gl_offs = 0;
			nimln(1209, "os.nim");
			f_136854.gl_pathc = 0;
			nimln(1210, "os.nim");
			f_136854.gl_pathv = NIM_NIL;
			nimln(1211, "os.nim");
			nimln(1211, "os.nim");
			LOC12 = 0;
			LOC12 = glob(HEX3Atmp_136852->data, ((int) 0), NIM_NIL, &f_136854);
			res_136856 = ((NI) (LOC12));
			nimln(1212, "os.nim");
			{
				NI i_136858;
				NI HEX3Atmp_136860;
				NI TMP426;
				NI res_136862;
				nimln(1212, "os.nim");
				if (!(res_136856 == 0)) goto LA15;
				i_136858 = 0;
				HEX3Atmp_136860 = 0;
				nimln(1213, "os.nim");
				nimln(1213, "os.nim");
				TMP426 = subInt(f_136854.gl_pathc, 1);
				HEX3Atmp_136860 = (NI32)(TMP426);
				nimln(1457, "system.nim");
				res_136862 = 0;
				nimln(1458, "system.nim");
				while (1) {
					TY108700 LOC22;
					nimln(1458, "system.nim");
					if (!(res_136862 <= HEX3Atmp_136860)) goto LA17;
					nimln(1457, "system.nim");
					i_136858 = res_136862;
					nimln(1214, "os.nim");
					{
						nimln(1214, "os.nim");
						nimln(1214, "os.nim");
						nimln(1214, "os.nim");
						if ((NU)(i_136858) > (NU)(50000)) raiseIndexError();
						if (!!(!((f_136854.gl_pathv[(i_136858)- 0] == NIM_NIL)))) goto LA20;
						nimln(1214, "os.nim");
						failedassertimpl_79821(((NimStringDesc*) &TMP427));
					}
					LA20: ;
					nimln(1215, "os.nim");
					nimln(1215, "os.nim");
					if ((NU)(i_136858) > (NU)(50000)) raiseIndexError();
					file_136834 = cstrToNimstr(f_136854.gl_pathv[(i_136858)- 0]);
					nimln(242, "options.nim");
					nimln(242, "options.nim");
					memset((void*)&LOC22, 0, sizeof(LOC22));
					nossplitFile(file_136834, &LOC22);
					result = copyString(LOC22.Field1);
					nimln(243, "options.nim");
					goto LA1;
					nimln(1460, "system.nim");
					res_136862 = addInt(res_136862, 1);
				} LA17: ;
			}
			LA15: ;
			nimln(1216, "os.nim");
			globfree(&f_136854);
		} LA2: ;
	} LA1: ;
	nimln(245, "options.nim");
	{
		nimln(245, "options.nim");
		if (!result == 0) goto LA25;
		nimln(245, "options.nim");
		result = copyString(((NimStringDesc*) &TMP404));
	}
	LA25: ;
	d_136835 = 0;
	nimln(227, "options.nim");
	current_136866 = copyString(path);
	nimln(228, "options.nim");
	while (1) {
		nimln(229, "options.nim");
		current_136866 = nosparentDir(current_136866);
		nimln(230, "options.nim");
		{
			nimln(230, "options.nim");
			nimln(230, "options.nim");
			if (!(current_136866->Sup.len == 0)) goto LA30;
			nimln(230, "options.nim");
			goto LA27;
		}
		LA30: ;
		nimln(227, "options.nim");
		d_136835 = current_136866;
		nimln(248, "options.nim");
		nstPut(packagecache_136601, d_136835, result);
		nimln(249, "options.nim");
		parents = subInt(parents, 1);
		nimln(250, "options.nim");
		{
			nimln(250, "options.nim");
			if (!(parents <= 0)) goto LA34;
			nimln(250, "options.nim");
			goto LA27;
		}
		LA34: ;
	} LA27: ;
	BeforeRet: ;
	popFrame();
	return result;
}
コード例 #20
0
ファイル: compiler_condsyms.c プロジェクト: StetHD/csources
N_NIMCALL(void, undefsymbol_191007)(NimStringDesc* symbol) {
	nstPut(gsymbols_191001, symbol, ((NimStringDesc*) &TMP1591));
}
コード例 #21
0
ファイル: compiler_condsyms.c プロジェクト: jlp765/csources
N_NIMCALL(void, definesymbol_168013)(NimStringDesc* symbol) {
	nstPut(gsymbols_168004, symbol, ((NimStringDesc*) &TMP1509));
}
コード例 #22
0
ファイル: compiler_options.c プロジェクト: jlp765/csources
N_NIMCALL(NimStringDesc*, getpackagename_153825)(NimStringDesc* path) {
	NimStringDesc* result;
	NI parents;
{	result = 0;
	parents = ((NI) 0);
	{
		{
			NimStringDesc* d_153831;
			NimStringDesc* current_153888;
			d_153831 = 0;
			current_153888 = copyString(path);
			{
				while (1) {
					current_153888 = nosparentDir(current_153888);
					{
						if (!((current_153888 ? current_153888->Sup.len : 0) == ((NI) 0))) goto LA7;
						goto LA3;
					}
					LA7: ;
					d_153831 = current_153888;
					{
						NIM_BOOL LOC11;
						LOC11 = 0;
						LOC11 = nsthasKey(packagecache_153601, d_153831);
						if (!LOC11) goto LA12;
						result = nstGet(packagecache_153601, d_153831);
						goto BeforeRet;
					}
					LA12: ;
					parents += ((NI) 1);
					{
						NimStringDesc* file_153841;
						NimStringDesc* HEX3Atmp_153855;
						glob_t f_153859;
						NI res_153861;
						int LOC15;
						file_153841 = 0;
						HEX3Atmp_153855 = 0;
						HEX3Atmp_153855 = HEX2F_118292(d_153831, ((NimStringDesc*) &TMP1433));
						memset((void*)(&f_153859), 0, sizeof(f_153859));
						res_153861 = 0;
						f_153859.gl_offs = ((NI) 0);
						f_153859.gl_pathc = ((NI) 0);
						f_153859.gl_pathv = NIM_NIL;
						LOC15 = 0;
						LOC15 = glob(HEX3Atmp_153855->data, ((int) 0), NIM_NIL, (&f_153859));
						res_153861 = ((NI) (LOC15));
						{
							if (!(res_153861 == ((NI) 0))) goto LA18;
							{
								NI i_153863;
								NI HEX3Atmp_153865;
								NI res_153867;
								i_153863 = 0;
								HEX3Atmp_153865 = 0;
								HEX3Atmp_153865 = (NI)(f_153859.gl_pathc - ((NI) 1));
								res_153867 = ((NI) 0);
								{
									while (1) {
										TY118589 LOC23;
										if (!(res_153867 <= HEX3Atmp_153865)) goto LA22;
										i_153863 = res_153867;
										file_153841 = cstrToNimstr(f_153859.gl_pathv[(i_153863)- 0]);
										memset((void*)(&LOC23), 0, sizeof(LOC23));
										nossplitFile(file_153841, (&LOC23));
										result = copyString(LOC23.Field1);
										goto LA1;
										res_153867 += ((NI) 1);
									} LA22: ;
								}
							}
						}
						LA18: ;
						globfree((&f_153859));
					}
					{
						NimStringDesc* file_153842;
						NimStringDesc* HEX3Atmp_153871;
						glob_t f_153875;
						NI res_153877;
						int LOC25;
						file_153842 = 0;
						HEX3Atmp_153871 = 0;
						HEX3Atmp_153871 = HEX2F_118292(d_153831, ((NimStringDesc*) &TMP1434));
						memset((void*)(&f_153875), 0, sizeof(f_153875));
						res_153877 = 0;
						f_153875.gl_offs = ((NI) 0);
						f_153875.gl_pathc = ((NI) 0);
						f_153875.gl_pathv = NIM_NIL;
						LOC25 = 0;
						LOC25 = glob(HEX3Atmp_153871->data, ((int) 0), NIM_NIL, (&f_153875));
						res_153877 = ((NI) (LOC25));
						{
							if (!(res_153877 == ((NI) 0))) goto LA28;
							{
								NI i_153879;
								NI HEX3Atmp_153881;
								NI res_153883;
								i_153879 = 0;
								HEX3Atmp_153881 = 0;
								HEX3Atmp_153881 = (NI)(f_153875.gl_pathc - ((NI) 1));
								res_153883 = ((NI) 0);
								{
									while (1) {
										TY118589 LOC33;
										if (!(res_153883 <= HEX3Atmp_153881)) goto LA32;
										i_153879 = res_153883;
										file_153842 = cstrToNimstr(f_153875.gl_pathv[(i_153879)- 0]);
										memset((void*)(&LOC33), 0, sizeof(LOC33));
										nossplitFile(file_153842, (&LOC33));
										result = copyString(LOC33.Field1);
										goto LA1;
										res_153883 += ((NI) 1);
									} LA32: ;
								}
							}
						}
						LA28: ;
						globfree((&f_153875));
					}
				}
			} LA3: ;
		}
	} LA1: ;
	{
		if (!result == 0) goto LA36;
		result = copyString(((NimStringDesc*) &TMP39));
	}
	LA36: ;
	{
		NimStringDesc* d_153843;
		NimStringDesc* current_153892;
		d_153843 = 0;
		current_153892 = copyString(path);
		{
			while (1) {
				current_153892 = nosparentDir(current_153892);
				{
					if (!((current_153892 ? current_153892->Sup.len : 0) == ((NI) 0))) goto LA43;
					goto LA39;
				}
				LA43: ;
				d_153843 = current_153892;
				nstPut(packagecache_153601, d_153843, result);
				parents -= ((NI) 1);
				{
					if (!(parents <= ((NI) 0))) goto LA47;
					goto LA38;
				}
				LA47: ;
			}
		} LA39: ;
	} LA38: ;
	}BeforeRet: ;
	return result;
}
コード例 #23
0
ファイル: compiler_options.c プロジェクト: jlp765/csources
N_NIMCALL(void, setconfigvar_153350)(NimStringDesc* key, NimStringDesc* val) {
	nstPut(gconfigvars_153231, key, val);
}
コード例 #24
0
ファイル: compiler_options.c プロジェクト: jlp765/csources
N_NIMCALL(void, incldynliboverride_154472)(NimStringDesc* lib) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = canondynlibname_154459(lib);
	nstPut(gdlloverrides_153232, LOC1, ((NimStringDesc*) &TMP1865));
}
コード例 #25
0
N_NIMCALL(void, undefsymbol_198008_1967573533)(NimStringDesc* symbol0) {
	nstPut(gsymbols_198001_1967573533, symbol0, ((NimStringDesc*) &T1967573533_3));
}
コード例 #26
0
N_NIMCALL(void, undefsymbol_A5AFbr8Omc1Bw39cFWCpEFg)(NimStringDesc* symbol0) {
	nstPut(gsymbols_tS4f2TwBfIz6zIuFAktH6g, symbol0, ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_3));
}
コード例 #27
0
ファイル: compiler_condsyms.c プロジェクト: jlp765/csources
N_NIMCALL(void, undefsymbol_168022)(NimStringDesc* symbol) {
	nstPut(gsymbols_168004, symbol, ((NimStringDesc*) &TMP1461));
}
コード例 #28
0
ファイル: compiler_options.c プロジェクト: rbehrends/csources
N_NIMCALL(void, setconfigvar_114298)(NimStringDesc* key, NimStringDesc* val) {
	nimfr("setConfigVar", "options.nim")
	nimln(180, "options.nim");
	nstPut(gconfigvars_114194, key, val);	popFrame();
}
コード例 #29
0
ファイル: stdlib_cookies.c プロジェクト: JJjie/RuCTF-2015
N_NIMCALL(Stringtableobj144212*, parsecookies_237014)(NimStringDesc* s) {
	Stringtableobj144212* result;
	NI i;
	result = 0;
	result = nstnewStringTable(((NU8) 1));
	i = ((NI) 0);
	{
		while (1) {
			NI keystart;
			NI keyend;
			NI valstart;
			NimStringDesc* LOC19;
			NimStringDesc* LOC20;
			{
				while (1) {
					NIM_BOOL LOC5;
					LOC5 = 0;
					LOC5 = ((NU8)(s->data[i]) == (NU8)(32));
					if (LOC5) goto LA6;
					LOC5 = ((NU8)(s->data[i]) == (NU8)(9));
					LA6: ;
					if (!LOC5) goto LA4;
					i += ((NI) 1);
				} LA4: ;
			}
			keystart = i;
			{
				while (1) {
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = !(((NU8)(s->data[i]) == (NU8)(61)));
					if (!(LOC9)) goto LA10;
					LOC9 = !(((NU8)(s->data[i]) == (NU8)(0)));
					LA10: ;
					if (!LOC9) goto LA8;
					i += ((NI) 1);
				} LA8: ;
			}
			keyend = (NI)(i - ((NI) 1));
			{
				if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA13;
				goto LA1;
			}
			LA13: ;
			i += ((NI) 1);
			valstart = i;
			{
				while (1) {
					NIM_BOOL LOC17;
					LOC17 = 0;
					LOC17 = !(((NU8)(s->data[i]) == (NU8)(59)));
					if (!(LOC17)) goto LA18;
					LOC17 = !(((NU8)(s->data[i]) == (NU8)(0)));
					LA18: ;
					if (!LOC17) goto LA16;
					i += ((NI) 1);
				} LA16: ;
			}
			LOC19 = 0;
			LOC19 = copyStrLast(s, keystart, keyend);
			LOC20 = 0;
			LOC20 = copyStrLast(s, valstart, (NI)(i - ((NI) 1)));
			nstPut(result, LOC19, LOC20);
			{
				if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA23;
				goto LA1;
			}
			LA23: ;
			i += ((NI) 1);
		}
	} LA1: ;
	return result;
}
コード例 #30
0
N_NIMCALL(void, definesymbol_9aZwRQ421PtIIOO9cHOBczPA)(NimStringDesc* symbol0, NimStringDesc* value0) {
	nstPut(gsymbols_tS4f2TwBfIz6zIuFAktH6g, symbol0, value0);
}