예제 #1
0
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, myCmp_as9bkyBfpSJDtryRTEgMhcg)(tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* t, NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	switch ((*t).mode) {
	case ((tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ) 0):
	{
		NI T2_;
		T2_ = (NI)0;
		T2_ = cmp_xEnKsp9cfvO7Do9cTYXo8eJw(a, b);
		result = (T2_ == ((NI) 0));
	}
	break;
	case ((tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ) 1):
	{
		NI T4_;
		T4_ = (NI)0;
		T4_ = nsuCmpIgnoreCase(a, b);
		result = (T4_ == ((NI) 0));
	}
	break;
	case ((tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ) 2):
	{
		NI T6_;
		T6_ = (NI)0;
		T6_ = nsuCmpIgnoreStyle(a, b);
		result = (T6_ == ((NI) 0));
	}
	break;
	}
	return result;
}
예제 #2
0
N_NIMCALL(NIM_BOOL, mycmp_140309)(Stringtableobj140209* t, NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	result = 0;
	switch ((*t).mode) {
	case ((NU8) 0):
	{
		NI LOC2;
		LOC2 = 0;
		LOC2 = cmp_5680(a, b);
		result = (LOC2 == ((NI) 0));
	}
	break;
	case ((NU8) 1):
	{
		NI LOC4;
		LOC4 = 0;
		LOC4 = nsuCmpIgnoreCase(a, b);
		result = (LOC4 == ((NI) 0));
	}
	break;
	case ((NU8) 2):
	{
		NI LOC6;
		LOC6 = 0;
		LOC6 = nsuCmpIgnoreStyle(a, b);
		result = (LOC6 == ((NI) 0));
	}
	break;
	}
	return result;
}
예제 #3
0
파일: options.c 프로젝트: ddlsmurf/Nimrod
N_NIMCALL(NI, Binarystrsearch_46149)(NimStringDesc** X_46152, NI X_46152Len0, NimStringDesc* Y_46153) {
NI Result_46299;
NI A_46300;
NI B_46311;
NI Mid_46314;
NI C_46315;
Result_46299 = 0;
A_46300 = 0;
A_46300 = 0;
B_46311 = 0;
B_46311 = (NI64)(X_46152Len0 - 1);
while (1) {
if (!(A_46300 <= B_46311)) goto LA1;
Mid_46314 = 0;
Mid_46314 = (NI64)((NI64)(A_46300 + B_46311) / 2);
C_46315 = 0;
C_46315 = nsuCmpIgnoreCase(X_46152[Mid_46314], Y_46153);
if (!(C_46315 < 0)) goto LA3;
A_46300 = (NI64)(Mid_46314 + 1);
goto LA2;
LA3: ;
if (!(0 < C_46315)) goto LA5;
B_46311 = (NI64)(Mid_46314 - 1);
goto LA2;
LA5: ;
Result_46299 = Mid_46314;
goto BeforeRet;
LA2: ;
} LA1: ;
Result_46299 = -1;
BeforeRet: ;
return Result_46299;
}
예제 #4
0
파일: stdlib_os.c 프로젝트: apense/csources
N_NIMCALL(NI, noscmpPaths)(NimStringDesc* patha, NimStringDesc* pathb) {
	NI result;
	result = 0;
	{
		if (!NIM_TRUE) goto LA3;
		result = cmp_4717(patha, pathb);
	}
	goto LA1;
	LA3: ;
	{
		result = nsuCmpIgnoreCase(patha, pathb);
	}
	LA1: ;
	return result;
}
예제 #5
0
N_NIMCALL(NI, noscmpPaths)(NimStringDesc* pathA, NimStringDesc* pathB) {
	NI result;
	result = (NI)0;
	{
		if (!NIM_TRUE) goto LA3_;
		result = cmp_xEnKsp9cfvO7Do9cTYXo8eJw(pathA, pathB);
	}
	goto LA1_;
	LA3_: ;
	{
		result = nsuCmpIgnoreCase(pathA, pathB);
	}
	LA1_: ;
	return result;
}
예제 #6
0
N_NIMCALL(NIM_BOOL, mycmp_113709)(tstringtable113610* t, NimStringDesc* a, NimStringDesc* b) {
    NIM_BOOL result;
    nimfr("myCmp", "strtabs.nim")
    result = 0;
    nimln(79, "strtabs.nim");
    switch ((*t).Mode) {
    case ((NU8) 0):
    {
        NI LOC2;
        nimln(80, "strtabs.nim");
        nimln(80, "strtabs.nim");
        nimln(80, "strtabs.nim");
        LOC2 = 0;
        LOC2 = cmp_2131(a, b);
        result = (LOC2 == 0);
    }
    break;
    case ((NU8) 1):
    {
        NI LOC4;
        nimln(81, "strtabs.nim");
        nimln(81, "strtabs.nim");
        nimln(81, "strtabs.nim");
        LOC4 = 0;
        LOC4 = nsuCmpIgnoreCase(a, b);
        result = (LOC4 == 0);
    }
    break;
    case ((NU8) 2):
    {
        NI LOC6;
        nimln(82, "strtabs.nim");
        nimln(82, "strtabs.nim");
        nimln(82, "strtabs.nim");
        LOC6 = 0;
        LOC6 = nsuCmpIgnoreStyle(a, b);
        result = (LOC6 == 0);
    }
    break;
    }
    popFrame();
    return result;
}
예제 #7
0
N_NIMCALL(NI, binarystrsearch_137380)(NimStringDesc** x, NI xLen0, NimStringDesc* y) {
	NI result;
	NI a;
	NI b;
	NI TMP446;
	nimfr("binaryStrSearch", "options.nim")
	result = 0;
	nimln(370, "options.nim");
	a = 0;
	nimln(371, "options.nim");
	nimln(371, "options.nim");
	nimln(371, "options.nim");
	TMP446 = subInt(xLen0, 1);
	b = (NI32)(TMP446);
	nimln(372, "options.nim");
	while (1) {
		NI mid;
		NI TMP447;
		NI TMP448;
		NI c;
		nimln(372, "options.nim");
		if (!(a <= b)) goto LA1;
		nimln(373, "options.nim");
		nimln(373, "options.nim");
		nimln(373, "options.nim");
		TMP447 = addInt(a, b);
		TMP448 = divInt((NI32)(TMP447), 2);
		mid = (NI32)(TMP448);
		nimln(374, "options.nim");
		if ((NU)(mid) >= (NU)(xLen0)) raiseIndexError();
		c = nsuCmpIgnoreCase(x[mid], y);
		nimln(375, "options.nim");
		{
			NI TMP449;
			nimln(375, "options.nim");
			if (!(c < 0)) goto LA4;
			nimln(376, "options.nim");
			nimln(376, "options.nim");
			TMP449 = addInt(mid, 1);
			a = (NI32)(TMP449);
		}
		goto LA2;
		LA4: ;
		{
			NI TMP450;
			nimln(377, "options.nim");
			if (!(0 < c)) goto LA7;
			nimln(378, "options.nim");
			nimln(378, "options.nim");
			TMP450 = subInt(mid, 1);
			b = (NI32)(TMP450);
		}
		goto LA2;
		LA7: ;
		{
			nimln(380, "options.nim");
			nimln(380, "options.nim");
			result = mid;
			goto BeforeRet;
		}
		LA2: ;
	} LA1: ;
	nimln(381, "options.nim");
	result = -1;
	BeforeRet: ;
	popFrame();
	return result;
}
예제 #8
0
N_NIMCALL(NI, binarystrsearch_114655)(NimStringDesc** x, NI xLen0, NimStringDesc* y) {
	NI result;
	NI a;
	NI b;
	NI TMP364;
	nimfr("binaryStrSearch", "options.nim")
	result = 0;
	nimln(324, "options.nim");
	a = 0;
	nimln(325, "options.nim");
	nimln(325, "options.nim");
	nimln(325, "options.nim");
	TMP364 = subInt(xLen0, 1);
	b = (NI32)(TMP364);
	nimln(326, "options.nim");
	while (1) {
		NI mid;
		NI TMP365;
		NI TMP366;
		NI c;
		nimln(326, "options.nim");
		if (!(a <= b)) goto LA1;
		nimln(327, "options.nim");
		nimln(327, "options.nim");
		nimln(327, "options.nim");
		TMP365 = addInt(a, b);
		TMP366 = divInt((NI32)(TMP365), 2);
		mid = (NI32)(TMP366);
		nimln(328, "options.nim");
		if ((NU)(mid) >= (NU)(xLen0)) raiseIndexError();
		c = nsuCmpIgnoreCase(x[mid], y);
		nimln(329, "options.nim");
		{
			NI TMP367;
			nimln(329, "options.nim");
			if (!(c < 0)) goto LA4;
			nimln(330, "options.nim");
			nimln(330, "options.nim");
			TMP367 = addInt(mid, 1);
			a = (NI32)(TMP367);
		}		goto LA2;
		LA4: ;
		{
			NI TMP368;
			nimln(706, "system.nim");
			if (!(0 < c)) goto LA7;
			nimln(332, "options.nim");
			nimln(332, "options.nim");
			TMP368 = subInt(mid, 1);
			b = (NI32)(TMP368);
		}		goto LA2;
		LA7: ;
		{
			nimln(334, "options.nim");
			nimln(334, "options.nim");
			result = mid;
			goto BeforeRet;
		}		LA2: ;
	} LA1: ;
	nimln(335, "options.nim");
	result = -1;
	BeforeRet: ;	popFrame();
	return result;
}N_NOINLINE(void, compileroptionsInit)(void) {