• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ raiseIndexError函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中raiseIndexError函数的典型用法代码示例。如果您正苦于以下问题:C++ raiseIndexError函数的具体用法?C++ raiseIndexError怎么用?C++ raiseIndexError使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了raiseIndexError函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: N_NIMCALL

N_NIMCALL(void, addpathrec_150180)(NimStringDesc* dir, tlineinfo136509 info) {
	tstringtable112610* packages;
	NI pos;
	NI TMP1406;
	NU8 k_150207;
	NimStringDesc* p_150208;
	DIR* d_150219;
	NimStringDesc* p_150217;
	NimStringDesc* key_150229;
	NimStringDesc* val_150231;
	NI h_150233;
	NI HEX3Atmp_150235;
	NI res_150237;
	nimfr("addPathRec", "babelcmd.nim")
	nimln(79, "babelcmd.nim");
	packages = nstnewStringTable(((NU8) 2));
	nimln(80, "babelcmd.nim");
	nimln(80, "babelcmd.nim");
	nimln(80, "babelcmd.nim");
	TMP1406 = subInt(dir->Sup.len, 1);
	pos = (NI64)(TMP1406);
	nimln(81, "babelcmd.nim");
	{
		nimln(730, "system.nim");
		if ((NU)(pos) > (NU)(dir->Sup.len)) raiseIndexError();
		if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3;
		nimln(81, "babelcmd.nim");
		pos = addInt(pos, 1);
	}	LA3: ;
	k_150207 = 0;
	p_150208 = 0;
	nimln(1227, "os.nim");
	d_150219 = opendir(dir->data);
	nimln(1228, "os.nim");
	{
		int LOC41;
		nimln(698, "system.nim");
		nimln(698, "system.nim");
		if (!!((d_150219 == NIM_NIL))) goto LA7;
		nimln(1229, "os.nim");
		while (1) {
			struct dirent* x_150221;
			NimStringDesc* y_150223;
			nimln(1230, "os.nim");
			x_150221 = readdir(d_150219);
			nimln(1231, "os.nim");
			{
				nimln(1231, "os.nim");
				if (!(x_150221 == NIM_NIL)) goto LA12;
				nimln(1231, "os.nim");
				goto LA9;
			}			LA12: ;
			nimln(1232, "os.nim");
			nimln(1232, "os.nim");
			y_150223 = cstrToNimstr(((NCSTRING) ((*x_150221).d_name)));
			nimln(1233, "os.nim");
			{
				NIM_BOOL LOC16;
				struct stat s_150225;
				NU8 k_150227;
				nimln(1233, "os.nim");
				LOC16 = 0;
				nimln(698, "system.nim");
				nimln(698, "system.nim");
				LOC16 = !(eqStrings(y_150223, ((NimStringDesc*) &TMP1400)));
				if (!(LOC16)) goto LA17;
				nimln(698, "system.nim");
				nimln(698, "system.nim");
				LOC16 = !(eqStrings(y_150223, ((NimStringDesc*) &TMP1401)));
				LA17: ;
				if (!LOC16) goto LA18;
				memset((void*)&s_150225, 0, sizeof(s_150225));
				nimln(1235, "os.nim");
				y_150223 = HEX2F_102067(dir, y_150223);
				nimln(1236, "os.nim");
				{
					int LOC22;
					nimln(1236, "os.nim");
					nimln(1236, "os.nim");
					LOC22 = 0;
					LOC22 = lstat(y_150223->data, &s_150225);
					if (!(LOC22 < ((NI32) 0))) goto LA23;
					nimln(1236, "os.nim");
					goto LA9;
				}				LA23: ;
				nimln(1237, "os.nim");
				k_150227 = ((NU8) 0);
				nimln(1238, "os.nim");
				{
					NIM_BOOL LOC27;
					nimln(1238, "os.nim");
					LOC27 = 0;
					LOC27 = S_ISDIR(s_150225.st_mode);
					if (!LOC27) goto LA28;
					nimln(1238, "os.nim");
					k_150227 = ((NU8) 2);
				}				LA28: ;
				nimln(1239, "os.nim");
				{
					NIM_BOOL LOC32;
//.........这里部分代码省略.........
开发者ID:Varriount,项目名称:csources,代码行数:101,代码来源:compiler_babelcmd.c


示例2: N_NIMCALL

N_NIMCALL(void, nponext)(toptparser523807* p) {
	NI i;
	nimfr("next", "parseopt.nim")
	nimln(94, "parseopt.nim");
	i = (*p).Pos;
	nimln(95, "parseopt.nim");
	while (1) {
		nimln(95, "parseopt.nim");
		if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
		if (!(((NU8)((*p).Cmd->data[i])) == ((NU8)(9)) || ((NU8)((*p).Cmd->data[i])) == ((NU8)(32)))) goto LA1;
		nimln(95, "parseopt.nim");
		i = addInt(i, 1);
	} LA1: ;
	nimln(96, "parseopt.nim");
	(*p).Pos = i;
	nimln(97, "parseopt.nim");
	(*p).Key = setLengthStr((*p).Key, 0);
	nimln(98, "parseopt.nim");
	(*p).Val = setLengthStr((*p).Val, 0);
	nimln(99, "parseopt.nim");
	{
		if (!(*p).Inshortstate) goto LA4;
		nimln(100, "parseopt.nim");
		handleshortoption_524106(p);
		nimln(101, "parseopt.nim");
		goto BeforeRet;
	}
	LA4: ;
	nimln(102, "parseopt.nim");
	if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
	switch (((NU8)((*p).Cmd->data[i]))) {
	case 0:
	{
		nimln(104, "parseopt.nim");
		(*p).Kind = ((NU8) 0);
	}
	break;
	case 45:
	{
		nimln(106, "parseopt.nim");
		i = addInt(i, 1);
		nimln(107, "parseopt.nim");
		{
			nimln(107, "parseopt.nim");
			if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
			if (!((NU8)((*p).Cmd->data[i]) == (NU8)(45))) goto LA10;
			nimln(108, "parseopt.nim");
			(*p).Kind = ((NU8) 2);
			nimln(109, "parseopt.nim");
			i = addInt(i, 1);
			nimln(110, "parseopt.nim");
			i = parseword_524002((*p).Cmd, i, &(*p).Key, TMP7637);
			nimln(111, "parseopt.nim");
			while (1) {
				nimln(111, "parseopt.nim");
				if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
				if (!(((NU8)((*p).Cmd->data[i])) == ((NU8)(9)) || ((NU8)((*p).Cmd->data[i])) == ((NU8)(32)))) goto LA12;
				nimln(111, "parseopt.nim");
				i = addInt(i, 1);
			} LA12: ;
			nimln(112, "parseopt.nim");
			{
				nimln(112, "parseopt.nim");
				if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
				if (!(((NU8)((*p).Cmd->data[i])) == ((NU8)(58)) || ((NU8)((*p).Cmd->data[i])) == ((NU8)(61)))) goto LA15;
				nimln(113, "parseopt.nim");
				i = addInt(i, 1);
				nimln(114, "parseopt.nim");
				while (1) {
					nimln(114, "parseopt.nim");
					if ((NU)(i) > (NU)((*p).Cmd->Sup.len)) raiseIndexError();
					if (!(((NU8)((*p).Cmd->data[i])) == ((NU8)(9)) || ((NU8)((*p).Cmd->data[i])) == ((NU8)(32)))) goto LA17;
					nimln(114, "parseopt.nim");
					i = addInt(i, 1);
				} LA17: ;
				nimln(115, "parseopt.nim");
				(*p).Pos = parseword_524002((*p).Cmd, i, &(*p).Val, TMP7636);
			}
			goto LA13;
			LA15: ;
			{
				nimln(117, "parseopt.nim");
				(*p).Pos = i;
			}
			LA13: ;
		}
		goto LA8;
		LA10: ;
		{
			nimln(119, "parseopt.nim");
			(*p).Pos = i;
			nimln(120, "parseopt.nim");
			handleshortoption_524106(p);
		}
		LA8: ;
	}
	break;
	default:
	{
		nimln(122, "parseopt.nim");
//.........这里部分代码省略.........
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:stdlib_parseopt.c


示例3: N_NIMCALL

N_NIMCALL(void, evaltemplateaux_383039)(Tnode190813* templ, Tnode190813* actual, Templctx383019* c, Tnode190813* result) {
	nimfr("evalTemplateAux", "evaltempl.nim")
	nimln(28, "evaltempl.nim");
	switch ((*templ).kind) {
	case ((NU8) 3):
	{
		Tsym190843* s;
		nimln(30, "evaltempl.nim");
		if (!(((TMP7624[(*templ).kind/8] &(1<<((*templ).kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP7625));
		s = (*templ).kindU.S4.sym;
		nimln(31, "evaltempl.nim");
		{
			if (!((*(*s).owner).Sup.id == (*(*c).owner).Sup.id)) goto LA4;
			nimln(32, "evaltempl.nim");
			{
				NIM_BOOL LOC8;
				Tnode190813* x;
				LOC8 = 0;
				LOC8 = ((*s).kind == ((NU8) 3));
				if (!(LOC8)) goto LA9;
				LOC8 = !((((*s).flags &(1<<((((NU8) 31))&31)))!=0));
				LA9: ;
				if (!LOC8) goto LA10;
				nimln(33, "evaltempl.nim");
				if (((TMP7626[(*actual).kind/8] &(1<<((*actual).kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP7627));
				if ((NU)((*s).position) >= (NU)((*actual).kindU.S6.sons->Sup.len)) raiseIndexError();
				x = (*actual).kindU.S6.sons->data[(*s).position];
				nimln(34, "evaltempl.nim");
				{
					if (!((*x).kind == ((NU8) 152))) goto LA14;
					{
						Tnode190813* y_383083;
						y_383083 = 0;
						{
							NI i_383142;
							NI HEX3Atmp_383144;
							NI LOC18;
							NI res_383146;
							i_383142 = 0;
							HEX3Atmp_383144 = 0;
							nimln(1537, "ast.nim");
							LOC18 = 0;
							LOC18 = len_191097(x);
							HEX3Atmp_383144 = subInt(LOC18, 1);
							nimln(1598, "system.nim");
							res_383146 = ((NI) 0);
							{
								nimln(1599, "system.nim");
								while (1) {
									NI TMP7628;
									if (!(res_383146 <= HEX3Atmp_383144)) goto LA20;
									nimln(1600, "system.nim");
									i_383142 = res_383146;
									nimln(1537, "ast.nim");
									if (((TMP7626[(*x).kind/8] &(1<<((*x).kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP7627));
									if ((NU)(i_383142) >= (NU)((*x).kindU.S6.sons->Sup.len)) raiseIndexError();
									y_383083 = (*x).kindU.S6.sons->data[i_383142];
									nimln(35, "evaltempl.nim");
									add_191164(result, y_383083);
									nimln(1619, "system.nim");
									TMP7628 = addInt(res_383146, ((NI) 1));
									res_383146 = (NI)(TMP7628);
								} LA20: ;
							}
						}
					}
				}
				goto LA12;
				LA14: ;
				{
					Tnode190813* LOC22;
					nimln(37, "evaltempl.nim");
					LOC22 = 0;
					LOC22 = copytree_195028(x);
					add_191164(result, LOC22);
				}
				LA12: ;
			}
			goto LA6;
			LA10: ;
			{
				Tsym190843* x;
				Tidobj166015* LOC29;
				TNimObject* LOC30;
				Tlineinfo162338 LOC37;
				Tnode190813* LOC43;
				nimln(854, "msgs.nim");
				{
					NimStringDesc* LOC28;
					nimln(39, "evaltempl.nim");
					if (!!((((*s).flags &(1<<((((NU8) 31))&31)))!=0))) goto LA26;
					nimln(854, "msgs.nim");
					LOC28 = 0;
					LOC28 = HEX24_164306(TMP7629);
					internalerror_164218(LOC28);
				}
				LA26: ;
				nimln(40, "evaltempl.nim");
				LOC29 = 0;
				LOC29 = &s->Sup;
//.........这里部分代码省略.........
开发者ID:undecided,项目名称:csources,代码行数:101,代码来源:compiler_evaltempl.c


示例4: N_NIMCALL

N_NIMCALL(void, evaltemplateaux_389024)(tnode185813* templ, tnode185813* actual, templctx389010* c, tnode185813* result) {
	nimfr("evalTemplateAux", "evaltempl.nim")
	nimln(28, "evaltempl.nim");
	switch ((*templ).Kind) {
	case ((NU8) 3):
	{
		tsym185843* s;
		nimln(30, "evaltempl.nim");
		if (!(((TMP5462[(*templ).Kind/8] &(1<<((*templ).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5463));
		s = (*templ).kindU.S4.Sym;
		nimln(31, "evaltempl.nim");
		{
			nimln(31, "evaltempl.nim");
			if (!((*(*s).Owner).Sup.Id == (*(*c).Owner).Sup.Id)) goto LA4;
			nimln(32, "evaltempl.nim");
			{
				tnode185813* x;
				nimln(32, "evaltempl.nim");
				if (!((*s).Kind == ((NU8) 3))) goto LA8;
				nimln(33, "evaltempl.nim");
				if (((TMP5464[(*actual).Kind/8] &(1<<((*actual).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5465));
				if ((NU)((*s).Position) >= (NU)((*actual).kindU.S6.Sons->Sup.len)) raiseIndexError();
				x = (*actual).kindU.S6.Sons->data[(*s).Position];
				nimln(34, "evaltempl.nim");
				{
					tnode185813* y_389079;
					NI i_389161;
					NI HEX3Atmp_389163;
					NI LOC14;
					NI res_389165;
					nimln(34, "evaltempl.nim");
					if (!((*x).Kind == ((NU8) 150))) goto LA12;
					y_389079 = 0;
					i_389161 = 0;
					HEX3Atmp_389163 = 0;
					nimln(1522, "ast.nim");
					nimln(1522, "ast.nim");
					nimln(1522, "ast.nim");
					LOC14 = 0;
					LOC14 = len_186274(x);
					HEX3Atmp_389163 = subInt(LOC14, 1);
					nimln(1457, "system.nim");
					res_389165 = 0;
					nimln(1458, "system.nim");
					while (1) {
						nimln(1458, "system.nim");
						if (!(res_389165 <= HEX3Atmp_389163)) goto LA15;
						nimln(1457, "system.nim");
						i_389161 = res_389165;
						nimln(1522, "ast.nim");
						if (((TMP5464[(*x).Kind/8] &(1<<((*x).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5465));
						if ((NU)(i_389161) >= (NU)((*x).kindU.S6.Sons->Sup.len)) raiseIndexError();
						y_389079 = (*x).kindU.S6.Sons->data[i_389161];
						nimln(35, "evaltempl.nim");
						add_186400(result, y_389079);
						nimln(1460, "system.nim");
						res_389165 = addInt(res_389165, 1);
					} LA15: ;
				}
				goto LA10;
				LA12: ;
				{
					tnode185813* LOC17;
					nimln(37, "evaltempl.nim");
					nimln(37, "evaltempl.nim");
					LOC17 = 0;
					LOC17 = copytree_186247(x);
					add_186400(result, LOC17);
				}
				LA10: ;
			}
			goto LA6;
			LA8: ;
			{
				tsym185843* x;
				TNimObject* LOC24;
				tlineinfo161527 LOC29;
				tnode185813* LOC35;
				nimln(849, "msgs.nim");
				{
					NimStringDesc* LOC23;
					nimln(849, "msgs.nim");
					nimln(39, "evaltempl.nim");
					if (!!((((*s).Flags &(1<<((((NU8) 31))&31)))!=0))) goto LA21;
					nimln(849, "msgs.nim");
					nimln(849, "msgs.nim");
					LOC23 = 0;
					LOC23 = HEX24_163714(TMP5466);
					internalerror_163606(LOC23);
				}
				LA21: ;
				nimln(40, "evaltempl.nim");
				nimln(40, "evaltempl.nim");
				LOC24 = 0;
				LOC24 = idtableget_194137((*c).Mapping, &s->Sup);
				if (LOC24) chckObj((*LOC24).m_type, (&NTI185843));
				x = ((tsym185843*) (LOC24));
				nimln(41, "evaltempl.nim");
				{
					nimln(41, "evaltempl.nim");
//.........这里部分代码省略.........
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:evaltempl.c


示例5: N_NIMCALL

N_NIMCALL(NimStringDesc*, getpackagename_114423)(NimStringDesc* path) {
	NimStringDesc* result;
	NI q;
	NI b;
	NI i_114448;
	NI HEX3Atmp_114461;
	NI TMP334;
	NI res_114463;
	nimfr("getPackageName", "options.nim")
	result = 0;
	nimln(215, "options.nim");
	q = 1;
	nimln(216, "options.nim");
	b = 0;
	nimln(217, "options.nim");
	{
		NI TMP333;
		nimln(730, "system.nim");
		nimln(217, "options.nim");
		nimln(217, "options.nim");
		TMP333 = subInt(path->Sup.len, 1);
		if ((NU)((NI32)(TMP333)) > (NU)(path->Sup.len)) raiseIndexError();
		if (!(((NU8)(path->data[(NI32)(TMP333)])) == ((NU8)(47)) || ((NU8)(path->data[(NI32)(TMP333)])) == ((NU8)(47)))) goto LA3;
		nimln(217, "options.nim");
		q = 2;
	}	LA3: ;
	i_114448 = 0;
	HEX3Atmp_114461 = 0;
	nimln(218, "options.nim");
	nimln(218, "options.nim");
	nimln(218, "options.nim");
	TMP334 = subInt(path->Sup.len, q);
	HEX3Atmp_114461 = (NI32)(TMP334);
	nimln(1292, "system.nim");
	res_114463 = HEX3Atmp_114461;
	nimln(1293, "system.nim");
	while (1) {
		nimln(702, "system.nim");
		if (!(0 <= res_114463)) goto LA5;
		nimln(1292, "system.nim");
		i_114448 = res_114463;
		nimln(219, "options.nim");
		{
			nimln(730, "system.nim");
			if ((NU)(i_114448) > (NU)(path->Sup.len)) raiseIndexError();
			if (!(((NU8)(path->data[i_114448])) == ((NU8)(47)) || ((NU8)(path->data[i_114448])) == ((NU8)(47)))) goto LA8;
			nimln(220, "options.nim");
			{
				nimln(220, "options.nim");
				if (!(b == 0)) goto LA12;
				nimln(220, "options.nim");
				b = i_114448;
			}			goto LA10;
			LA12: ;
			{
				NimStringDesc* x;
				NI TMP335;
				NI TMP336;
				NimStringDesc* LOC15;
				nimln(222, "options.nim");
				nimln(222, "options.nim");
				nimln(222, "options.nim");
				TMP335 = addInt(i_114448, 1);
				nimln(222, "options.nim");
				TMP336 = subInt(b, 1);
				x = copyStrLast(path, (NI32)(TMP335), (NI32)(TMP336));
				nimln(223, "options.nim");
				nimln(223, "options.nim");
				LOC15 = 0;
				LOC15 = nsuNormalize(x);
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP339))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP340))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP341))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP342))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP343))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP344))) goto LA16;
				if (eqStrings(LOC15, ((NimStringDesc*) &TMP345))) goto LA16;
				goto LA17;
				LA16: ;
				{
					nimln(225, "options.nim");
					b = i_114448;
				}				goto LA18;
				LA17: ;
				{
					nimln(227, "options.nim");
					nimln(227, "options.nim");
					result = nsuReplaceChar(x, 46, 95);
					goto BeforeRet;
				}				LA18: ;
			}			LA10: ;
		}		LA8: ;
		nimln(1295, "system.nim");
		res_114463 = subInt(res_114463, 1);
	} LA5: ;
	nimln(228, "options.nim");
	result = copyString(((NimStringDesc*) &TMP313));
	BeforeRet: ;	popFrame();
	return result;
}
开发者ID:rbehrends,项目名称:csources,代码行数:100,代码来源:compiler_options.c


示例6: N_NIMCALL

N_NIMCALL(tnode171659*, cleanup_413046)(tpasscontext222003* c, tnode171659* n) {
	tnode171659* result;
	nimfr("cleanUp", "passaux.nim")
	result = 0;
	nimln(32, "passaux.nim");
	result = n;
	nimln(34, "passaux.nim");
	{
		NIM_BOOL LOC3;
		nimln(34, "passaux.nim");
		LOC3 = 0;
		nimln(730, "system.nim");
		LOC3 = ((gglobaloptions_114109 &(1<<((((NU8) 2))&31)))!=0);
		if (LOC3) goto LA4;
		nimln(34, "passaux.nim");
		LOC3 = (n == NIM_NIL);
		LA4: ;
		if (!LOC3) goto LA5;
		nimln(34, "passaux.nim");
		goto BeforeRet;
	}	LA5: ;
	nimln(35, "passaux.nim");
	switch ((*n).Kind) {
	case ((NU8) 114):
	{
		NI i_413082;
		NI HEX3Atmp_413157;
		NI LOC8;
		NI TMP7000;
		NI res_413159;
		i_413082 = 0;
		HEX3Atmp_413157 = 0;
		nimln(37, "passaux.nim");
		nimln(37, "passaux.nim");
		nimln(37, "passaux.nim");
		LOC8 = 0;
		LOC8 = sonslen_172022(n);
		TMP7000 = subInt(LOC8, 1);
		HEX3Atmp_413157 = (NI64)(TMP7000);
		nimln(1301, "system.nim");
		res_413159 = 0;
		nimln(1302, "system.nim");
		while (1) {
			tnode171659* LOC10;
			nimln(1302, "system.nim");
			if (!(res_413159 <= HEX3Atmp_413157)) goto LA9;
			nimln(1301, "system.nim");
			i_413082 = res_413159;
			nimln(37, "passaux.nim");
			nimln(37, "passaux.nim");
			if (((TMP6998[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP6999));
			if ((NU)(i_413082) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			LOC10 = 0;
			LOC10 = cleanup_413046(c, (*n).kindU.S6.Sons->data[i_413082]);
			nimln(1304, "system.nim");
			res_413159 = addInt(res_413159, 1);
		} LA9: ;
	}	break;
	case ((NU8) 79):
	case ((NU8) 80):
	{
		nimln(39, "passaux.nim");
		{
			tsym171689* s;
			nimln(39, "passaux.nim");
			if (((TMP6998[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP6999));
			if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			if (!((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3))) goto LA14;
			nimln(40, "passaux.nim");
			if (((TMP6998[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP6999));
			if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			if (!(((TMP7001[(*(*n).kindU.S6.Sons->data[0]).Kind/8] &(1<<((*(*n).kindU.S6.Sons->data[0]).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP7002));
			s = (*(*n).kindU.S6.Sons->data[0]).kindU.S4.Sym;
			nimln(41, "passaux.nim");
			{
				NIM_BOOL LOC18;
				tsym171689* LOC19;
				NIM_BOOL LOC21;
				nimln(41, "passaux.nim");
				LOC18 = 0;
				nimln(731, "system.nim");
				nimln(731, "system.nim");
				nimln(41, "passaux.nim");
				LOC19 = 0;
				LOC19 = getmodule_178187(s);
				LOC18 = !((((*LOC19).Flags &(1<<((((NU8) 25))&31)))!=0));
				if (!(LOC18)) goto LA20;
				nimln(41, "passaux.nim");
				nimln(41, "passaux.nim");
				LOC21 = 0;
				LOC21 = astneeded_222081(s);
				LOC18 = !(LOC21);
				LA20: ;
				if (!LOC18) goto LA22;
				nimln(42, "passaux.nim");
				if (((TMP6998[(*(*s).Ast).Kind/8] &(1<<((*(*s).Ast).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP6999));
				if ((NU)(6) >= (NU)((*(*s).Ast).kindU.S6.Sons->Sup.len)) raiseIndexError();
				asgnRefNoCycle((void**) &(*(*s).Ast).kindU.S6.Sons->data[6], emptynode_172505);
			}			LA22: ;
		}		LA14: ;
//.........这里部分代码省略.........
开发者ID:rbehrends,项目名称:csources,代码行数:101,代码来源:compiler_passaux.c


示例7: N_NIMCALL


//.........这里部分代码省略.........
	{
		nimln(64, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP996));
		nimln(65, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP997));
	}
	break;
	case ((NU8) 4):
	case ((NU8) 5):
	case ((NU8) 6):
	case ((NU8) 8):
	case ((NU8) 13):
	case ((NU8) 14):
	case ((NU8) 16):
	case ((NU8) 12):
	case ((NU8) 20):
	{
		nimln(69, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP998));
		nimln(70, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP999));
	}
	break;
	case ((NU8) 7):
	{
		nimln(72, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP1000));
		nimln(73, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP998));
		nimln(74, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP999));
	}
	break;
	case ((NU8) 9):
	case ((NU8) 10):
	case ((NU8) 11):
	{
		nimln(76, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP998));
		nimln(77, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP1001));
		nimln(78, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP999));
	}
	break;
	case ((NU8) 18):
	{
		nimln(80, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP1002));
	}
	break;
	case ((NU8) 19):
	{
		nimln(82, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP1002));
		nimln(83, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP998));
		nimln(84, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP999));
	}
	break;
	default:
	{
	}
	break;
	}
	nimln(86, "condsyms.nim");
	nimln(86, "condsyms.nim");
	LOC13 = 0;
	nimln(86, "condsyms.nim");
	if (targetcpu_142573 < 1 || targetcpu_142573 > 14) raiseIndexError();
	LOC14 = 0;
	LOC14 = nimIntToStr(cpu_142468[(targetcpu_142573)- 1].Field4);
	LOC13 = rawNewString(LOC14->Sup.len + 3);
appendString(LOC13, ((NimStringDesc*) &TMP1003));
appendString(LOC13, LOC14);
	definesymbol_168006(LOC13);
	nimln(87, "condsyms.nim");
	nimln(87, "condsyms.nim");
	if (targetcpu_142573 < 1 || targetcpu_142573 > 14) raiseIndexError();
	LOC15 = 0;
	LOC15 = nsuNormalize(endiantostr_142462[(cpu_142468[(targetcpu_142573)- 1].Field2)- 0]);
	definesymbol_168006(LOC15);
	nimln(88, "condsyms.nim");
	if (targetcpu_142573 < 1 || targetcpu_142573 > 14) raiseIndexError();
	definesymbol_168006(cpu_142468[(targetcpu_142573)- 1].Field0);
	nimln(89, "condsyms.nim");
	if (targetos_142575 < 1 || targetos_142575 > 23) raiseIndexError();
	definesymbol_168006(os_142063[(targetos_142575)- 1].Field0);
	nimln(90, "condsyms.nim");
	{
		nimln(90, "condsyms.nim");
		if (targetos_142575 < 1 || targetos_142575 > 23) raiseIndexError();
		if (!((os_142063[(targetos_142575)- 1].Field12 &(1<<((((NU8) 3))&7)))!=0)) goto LA18;
		nimln(91, "condsyms.nim");
		definesymbol_168006(((NimStringDesc*) &TMP1006));
	}
	LA18: ;
	popFrame();
}
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:condsyms.c


示例8: N_NIMCALL

N_NIMCALL(NIM_BOOL, llstreamreadline_179248)(tllstream179204* s, NimStringDesc** line) {
	NIM_BOOL result;
	nimfr("llStreamReadLine", "llstream.nim")
	result = 0;
	nimln(145, "llstream.nim");
	(*line) = setLengthStr((*line), 0);
	nimln(146, "llstream.nim");
	switch ((*s).Kind) {
	case ((NU8) 0):
	{
		nimln(148, "llstream.nim");
		result = NIM_TRUE;
	}
	break;
	case ((NU8) 1):
	{
		NIM_BOOL LOC11;
		nimln(150, "llstream.nim");
		while (1) {
			nimln(150, "llstream.nim");
			nimln(150, "llstream.nim");
			if (!((*s).Rd < (*s).S->Sup.len)) goto LA3;
			nimln(151, "llstream.nim");
			if ((NU)((*s).Rd) > (NU)((*s).S->Sup.len)) raiseIndexError();
			switch (((NU8)((*s).S->data[(*s).Rd]))) {
			case 13:
			{
				nimln(153, "llstream.nim");
				(*s).Rd = addInt((*s).Rd, 1);
				nimln(154, "llstream.nim");
				{
					nimln(154, "llstream.nim");
					if ((NU)((*s).Rd) > (NU)((*s).S->Sup.len)) raiseIndexError();
					if (!((NU8)((*s).S->data[(*s).Rd]) == (NU8)(10))) goto LA7;
					nimln(154, "llstream.nim");
					(*s).Rd = addInt((*s).Rd, 1);
				}
				LA7: ;
				nimln(155, "llstream.nim");
				goto LA3;
			}
			break;
			case 10:
			{
				nimln(157, "llstream.nim");
				(*s).Rd = addInt((*s).Rd, 1);
				nimln(158, "llstream.nim");
				goto LA3;
			}
			break;
			default:
			{
				nimln(160, "llstream.nim");
				if ((NU)((*s).Rd) > (NU)((*s).S->Sup.len)) raiseIndexError();
				(*line) = addChar((*line), (*s).S->data[(*s).Rd]);
				nimln(161, "llstream.nim");
				(*s).Rd = addInt((*s).Rd, 1);
			}
			break;
			}
		} LA3: ;
		nimln(162, "llstream.nim");
		nimln(162, "llstream.nim");
		LOC11 = 0;
		nimln(162, "llstream.nim");
		nimln(162, "llstream.nim");
		LOC11 = (0 < (*line)->Sup.len);
		if (LOC11) goto LA12;
		nimln(162, "llstream.nim");
		nimln(162, "llstream.nim");
		LOC11 = ((*s).Rd < (*s).S->Sup.len);
		LA12: ;
		result = LOC11;
	}
	break;
	case ((NU8) 2):
	{
		nimln(164, "llstream.nim");
		result = readline_10687((*s).F, line);
	}
	break;
	case ((NU8) 3):
	{
		nimln(166, "llstream.nim");
		result = readline_10687(stdin, line);
	}
	break;
	}
	popFrame();
	return result;
}
开发者ID:Varriount,项目名称:csources,代码行数:91,代码来源:llstream.c


示例9: N_NIMCALL

N_NIMCALL(void, render_154030)(void) {
    Entityobj149007* LOC17;
    NimStringDesc* LOC18;
    NimStringDesc* LOC19;
    nimfr("render", "game.nim")
    nimln(22, "game.nim");
    clear_142252();
    {
        WallHEX3Aobjecttype153013* i_154211;
        NI i_154416;
        NI L_154418;
        i_154211 = 0;
        nimln(3084, "system.nim");
        i_154416 = ((NI) 0);
        nimln(3085, "system.nim");
        L_154418 = (map_154010 ? map_154010->Sup.len : 0);
        {
            nimln(3086, "system.nim");
            while (1) {
                Entityobj149007* LOC4;
                NI TMP371;
                if (!(i_154416 < L_154418)) goto LA3;
                nimln(3087, "system.nim");
                if ((NU)(i_154416) >= (NU)(map_154010->Sup.len)) raiseIndexError();
                i_154211 = map_154010->data[i_154416];
                nimln(24, "game.nim");
                LOC4 = 0;
                LOC4 = &i_154211->Sup;
                draw_149042(LOC4);
                nimln(3088, "system.nim");
                TMP371 = addInt(i_154416, ((NI) 1));
                i_154416 = (NI)(TMP371);
                nimln(3089, "system.nim");
                {
                    if (!!(((map_154010 ? map_154010->Sup.len : 0) == L_154418))) goto LA7;
                    failedassertimpl_88817(((NimStringDesc*) &TMP372));
                }
LA7:
                ;
            }
LA3:
            ;
        }
    }
    {
        BombHEX3Aobjecttype151022* i_154411;
        NI i_154422;
        NI L_154424;
        i_154411 = 0;
        nimln(3084, "system.nim");
        i_154422 = ((NI) 0);
        nimln(3085, "system.nim");
        L_154424 = (bombs_154006 ? bombs_154006->Sup.len : 0);
        {
            nimln(3086, "system.nim");
            while (1) {
                Entityobj149007* LOC12;
                NI TMP373;
                if (!(i_154422 < L_154424)) goto LA11;
                nimln(3087, "system.nim");
                if ((NU)(i_154422) >= (NU)(bombs_154006->Sup.len)) raiseIndexError();
                i_154411 = bombs_154006->data[i_154422];
                nimln(27, "game.nim");
                LOC12 = 0;
                LOC12 = &i_154411->Sup;
                draw_149042(LOC12);
                nimln(3088, "system.nim");
                TMP373 = addInt(i_154422, ((NI) 1));
                i_154422 = (NI)(TMP373);
                nimln(3089, "system.nim");
                {
                    if (!!(((bombs_154006 ? bombs_154006->Sup.len : 0) == L_154424))) goto LA15;
                    failedassertimpl_88817(((NimStringDesc*) &TMP372));
                }
LA15:
                ;
            }
LA11:
            ;
        }
    }
    nimln(29, "game.nim");
    LOC17 = 0;
    LOC17 = &player1_154008->Sup;
    draw_149042(LOC17);
    nimln(30, "game.nim");
    LOC18 = 0;
    LOC19 = 0;
    LOC19 = nimIntToStr(score_154007);
    LOC18 = rawNewString(LOC19->Sup.len + 7);
    appendString(LOC18, ((NimStringDesc*) &TMP374));
    appendString(LOC18, LOC19);
    rendertext_142287(LOC18->data, ((NI32) 5), ((NI32) 5), ((NU8) 2));
    nimln(31, "game.nim");
    present_142261();
    popFrame();
}
开发者ID:Uint1024,项目名称:Boomb,代码行数:97,代码来源:game.c


示例10: N_NIMCALL

N_NIMCALL(tstringtable121810*, parsecookies_334012)(NimStringDesc* s) {
	tstringtable121810* 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 TMP4679;
		NI valstart;
		NimStringDesc* LOC15;
		NI TMP4680;
		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");
		TMP4679 = subInt(i, 1);
		keyend = (NI64)(TMP4679);
		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");
		TMP4680 = subInt(i, 1);
		LOC16 = 0;
//.........这里部分代码省略.........
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:stdlib_cookies.c


示例11: N_NIMCALL

N_NIMCALL(NI, hashignorestyle_121859)(NimStringDesc* x) {
	NI result;
	NI h;
	NI i_121874;
	NI HEX3Atmp_121927;
	NI TMP286;
	NI res_121929;
	nimfr("hashIgnoreStyle", "hashes.nim")
	result = 0;
	nimln(99, "hashes.nim");
	h = 0;
	i_121874 = 0;
	HEX3Atmp_121927 = 0;
	nimln(100, "hashes.nim");
	nimln(100, "hashes.nim");
	nimln(100, "hashes.nim");
	TMP286 = subInt(x->Sup.len, 1);
	HEX3Atmp_121927 = (NI64)(TMP286);
	nimln(1458, "system.nim");
	res_121929 = 0;
	nimln(1459, "system.nim");
	while (1) {
		nimln(1459, "system.nim");
		if (!(res_121929 <= HEX3Atmp_121927)) goto LA1;
		nimln(1458, "system.nim");
		i_121874 = res_121929;
		{
			NIM_CHAR c;
			nimln(101, "hashes.nim");
			if ((NU)(i_121874) > (NU)(x->Sup.len)) raiseIndexError();
			c = x->data[i_121874];
			nimln(102, "hashes.nim");
			{
				nimln(102, "hashes.nim");
				if (!((NU8)(c) == (NU8)(95))) goto LA5;
				nimln(103, "hashes.nim");
				goto LA2;
			}
			LA5: ;
			nimln(104, "hashes.nim");
			{
				NI TMP287;
				nimln(104, "hashes.nim");
				if (!(((NU8)(c)) >= ((NU8)(65)) && ((NU8)(c)) <= ((NU8)(90)))) goto LA9;
				nimln(105, "hashes.nim");
				nimln(105, "hashes.nim");
				nimln(105, "hashes.nim");
				nimln(105, "hashes.nim");
				TMP287 = addInt(((NI) (((NU8)(c)))), 32);
				c = ((NIM_CHAR) (((NI)chckRange((NI64)(TMP287), 0, 255))));
			}
			LA9: ;
			nimln(106, "hashes.nim");
			nimln(106, "hashes.nim");
			h = HEX21HEX26_121015(h, ((NI) (((NU8)(c)))));
		} LA2: ;
		nimln(1461, "system.nim");
		res_121929 = addInt(res_121929, 1);
	} LA1: ;
	nimln(107, "hashes.nim");
	result = HEX21HEX24_121040(h);
	popFrame();
	return result;
}
开发者ID:Varriount,项目名称:csources,代码行数:64,代码来源:stdlib_hashes.c


示例12: N_NIMCALL

N_NIMCALL(tsym187843*, ithfield_416007)(tnode187813* n, NI field) {
	tsym187843* result;
	nimfr("ithField", "semmacrosanity.nim")
	result = 0;
	nimln(16, "semmacrosanity.nim");
	result = NIM_NIL;
	nimln(17, "semmacrosanity.nim");
	switch ((*n).Kind) {
	case ((NU8) 136):
	{
		NI i_416024;
		NI HEX3Atmp_416182;
		NI LOC2;
		NI TMP5672;
		NI res_416184;
		i_416024 = 0;
		HEX3Atmp_416182 = 0;
		nimln(19, "semmacrosanity.nim");
		nimln(19, "semmacrosanity.nim");
		nimln(19, "semmacrosanity.nim");
		LOC2 = 0;
		LOC2 = sonslen_188191(n);
		TMP5672 = subInt(LOC2, 1);
		HEX3Atmp_416182 = (NI64)(TMP5672);
		nimln(1450, "system.nim");
		res_416184 = 0;
		nimln(1451, "system.nim");
		while (1) {
			NI TMP5673;
			nimln(1451, "system.nim");
			if (!(res_416184 <= HEX3Atmp_416182)) goto LA3;
			nimln(1450, "system.nim");
			i_416024 = res_416184;
			nimln(20, "semmacrosanity.nim");
			if (((TMP5670[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5671));
			if ((NU)(i_416024) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			nimln(20, "semmacrosanity.nim");
			TMP5673 = subInt(field, i_416024);
			result = ithfield_416007((*n).kindU.S6.Sons->data[i_416024], (NI64)(TMP5673));
			nimln(21, "semmacrosanity.nim");
			{
				nimln(21, "semmacrosanity.nim");
				nimln(21, "semmacrosanity.nim");
				if (!!((result == NIM_NIL))) goto LA6;
				nimln(21, "semmacrosanity.nim");
				goto BeforeRet;
			}
			LA6: ;
			nimln(1453, "system.nim");
			res_416184 = addInt(res_416184, 1);
		} LA3: ;
	}
	break;
	case ((NU8) 137):
	{
		NI TMP5675;
		NI i_416122;
		NI HEX3Atmp_416186;
		NI LOC17;
		NI TMP5676;
		NI res_416188;
		nimln(23, "semmacrosanity.nim");
		{
			nimln(23, "semmacrosanity.nim");
			nimln(23, "semmacrosanity.nim");
			if (((TMP5670[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5671));
			if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA11;
			nimln(23, "semmacrosanity.nim");
			internalerror_165591((*n).Info, ((NimStringDesc*) &TMP5674));
		}
		LA11: ;
		nimln(24, "semmacrosanity.nim");
		if (((TMP5670[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5671));
		if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
		nimln(24, "semmacrosanity.nim");
		TMP5675 = subInt(field, 1);
		result = ithfield_416007((*n).kindU.S6.Sons->data[0], (NI64)(TMP5675));
		nimln(25, "semmacrosanity.nim");
		{
			nimln(25, "semmacrosanity.nim");
			nimln(25, "semmacrosanity.nim");
			if (!!((result == NIM_NIL))) goto LA15;
			nimln(25, "semmacrosanity.nim");
			goto BeforeRet;
		}
		LA15: ;
		i_416122 = 0;
		HEX3Atmp_416186 = 0;
		nimln(26, "semmacrosanity.nim");
		nimln(26, "semmacrosanity.nim");
		nimln(26, "semmacrosanity.nim");
		LOC17 = 0;
		LOC17 = sonslen_188191(n);
		TMP5676 = subInt(LOC17, 1);
		HEX3Atmp_416186 = (NI64)(TMP5676);
		nimln(1450, "system.nim");
		res_416188 = 1;
		nimln(1451, "system.nim");
		while (1) {
//.........这里部分代码省略.........
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:semmacrosanity.c


示例13: N_NIMCALL


//.........这里部分代码省略.........
			if (!(LOC4 == 0)) goto LA5;
			nimln(75, "idents.nim");
			{
				nimln(698, "system.nim");
				nimln(698, "system.nim");
				if (!!((last == NIM_NIL))) goto LA9;
				nimln(77, "idents.nim");
				asgnRefNoCycle((void**) &(*last).Next, (*result).Next);
				nimln(78, "idents.nim");
				asgnRefNoCycle((void**) &(*result).Next, buckets_141031[(idx)- 0]);
				nimln(79, "idents.nim");
				asgnRefNoCycle((void**) &buckets_141031[(idx)- 0], result);
			}			LA9: ;
			nimln(80, "idents.nim");
			goto BeforeRet;
		}		goto LA2;
		LA5: ;
		{
			NI LOC12;
			nimln(81, "idents.nim");
			nimln(81, "idents.nim");
			LOC12 = 0;
			LOC12 = cmpignorestyle_141034((*result).S->data, identifier, length);
			if (!(LOC12 == 0)) goto LA13;
			nimln(82, "idents.nim");
			{
				NIM_BOOL LOC17;
				nimln(82, "idents.nim");
				nimln(82, "idents.nim");
				LOC17 = 0;
				nimln(82, "idents.nim");
				LOC17 = (id == 0);
				if (LOC17) goto LA18;
				nimln(82, "idents.nim");
				LOC17 = (id == (*result).Sup.Id);
				LA18: ;
				if (!!(LOC17)) goto LA19;
				nimln(82, "idents.nim");
				hiddenraiseassert_76217(((NimStringDesc*) &TMP888));			}			LA19: ;
			nimln(83, "idents.nim");
			id = (*result).Sup.Id;
		}		goto LA2;
		LA13: ;
		LA2: ;
		nimln(84, "idents.nim");
		last = result;
		nimln(85, "idents.nim");
		result = (*result).Next;
	} LA1: ;
	nimln(86, "idents.nim");
	result = (tident141017*) newObj((&NTI141015), sizeof(tident141017));
	(*result).Sup.Sup.m_type = (&NTI141017);
	nimln(87, "idents.nim");
	(*result).H = h;
	nimln(88, "idents.nim");
	nimln(88, "idents.nim");
	asgnRefNoCycle((void**) &(*result).S, mnewString(length));
	i_141422 = 0;
	HEX3Atmp_141435 = 0;
	nimln(89, "idents.nim");
	nimln(89, "idents.nim");
	TMP891 = subInt(length, 1);
	HEX3Atmp_141435 = (NI32)(TMP891);
	nimln(1301, "system.nim");
	res_141437 = 0;
	nimln(1302, "system.nim");
	while (1) {
		nimln(1302, "system.nim");
		if (!(res_141437 <= HEX3Atmp_141435)) goto LA21;
		nimln(1301, "system.nim");
		i_141422 = res_141437;
		nimln(89, "idents.nim");
		if ((NU)(i_141422) > (NU)((*result).S->Sup.len)) raiseIndexError();
		(*result).S->data[i_141422] = identifier[i_141422];
		nimln(1304, "system.nim");
		res_141437 = addInt(res_141437, 1);
	} LA21: ;
	nimln(90, "idents.nim");
	asgnRefNoCycle((void**) &(*result).Next, buckets_141031[(idx)- 0]);
	nimln(91, "idents.nim");
	asgnRefNoCycle((void**) &buckets_141031[(idx)- 0], result);
	nimln(92, "idents.nim");
	{
		nimln(92, "idents.nim");
		if (!(id == 0)) goto LA24;
		nimln(93, "idents.nim");
		wordcounter_141200 = addInt(wordcounter_141200, 1);
		nimln(94, "idents.nim");
		nimln(94, "idents.nim");
		if (wordcounter_141200 == (-2147483647 -1)) raiseOverflow();
		(*result).Sup.Id = ((NI32)-(wordcounter_141200));
	}	goto LA22;
	LA24: ;
	{
		nimln(96, "idents.nim");
		(*result).Sup.Id = id;
	}	LA22: ;
	BeforeRet: ;	popFrame();
	return result;
}
开发者ID:reactormonk,项目名称:csources,代码行数:101,代码来源:compiler_idents.c


示例14: N_NIMCALL

N_NIMCALL(NU8, ispartofaux_325019)(tnode171659* n, ttype171693* b, tintset168043* marker) {
	NU8 result;
	nimfr("isPartOfAux", "aliases.nim")
	result = 0;
	nimln(22, "aliases.nim");
	result = ((NU8) 0);
	nimln(23, "aliases.nim");
	switch ((*n).Kind) {
	case ((NU8) 133):
	{
		NI i_325035;
		NI HEX3Atmp_325271;
		NI LOC2;
		NI TMP5022;
		NI res_325273;
		i_325035 = 0;
		HEX3Atmp_325271 = 0;
		nimln(25, "aliases.nim");
		nimln(25, "aliases.nim");
		nimln(25, "aliases.nim");
		LOC2 = 0;
		LOC2 = sonslen_172022(n);
		TMP5022 = subInt(LOC2, 1);
		HEX3Atmp_325271 = (NI64)(TMP5022);
		nimln(1301, "system.nim");
		res_325273 = 0;
		nimln(1302, "system.nim");
		while (1) {
			nimln(1302, "system.nim");
			if (!(res_325273 <= HEX3Atmp_325271)) goto LA3;
			nimln(1301, "system.nim");
			i_325035 = res_325273;
			nimln(26, "aliases.nim");
			if (((TMP5020[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5021));
			if ((NU)(i_325035) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			result = ispartofaux_325019((*n).kindU.S6.Sons->data[i_325035], b, marker);
			nimln(27, "aliases.nim");
			{
				nimln(27, "aliases.nim");
				if (!(result == ((NU8) 2))) goto LA6;
				nimln(27, "aliases.nim");
				goto BeforeRet;
			}			LA6: ;
			nimln(1304, "system.nim");
			res_325273 = addInt(res_325273, 1);
		} LA3: ;
	}	break;
	case ((NU8) 134):
	{
		NI i_325229;
		NI HEX3Atmp_325275;
		NI LOC17;
		NI TMP5024;
		NI res_325277;
		nimln(29, "aliases.nim");
		{
			nimln(29, "aliases.nim");
			nimln(29, "aliases.nim");
			if (((TMP5020[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5021));
			if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA11;
			nimln(29, "aliases.nim");
			hiddenraiseassert_76017(((NimStringDesc*) &TMP5023));		}		LA11: ;
		nimln(30, "aliases.nim");
		if (((TMP5020[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5021));
		if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
		result = ispartofaux_325019((*n).kindU.S6.Sons->data[0], b, marker);
		nimln(31, "aliases.nim");
		{
			nimln(31, "aliases.nim");
			if (!(result == ((NU8) 2))) goto LA15;
			nimln(31, "aliases.nim");
			goto BeforeRet;
		}		LA15: ;
		i_325229 = 0;
		HEX3Atmp_325275 = 0;
		nimln(32, "aliases.nim");
		nimln(32, "aliases.nim");
		nimln(32, "aliases.nim");
		LOC17 = 0;
		LOC17 = sonslen_172022(n);
		TMP5024 = subInt(LOC17, 1);
		HEX3Atmp_325275 = (NI64)(TMP5024);
		nimln(1301, "system.nim");
		res_325277 = 1;
		nimln(1302, "system.nim");
		while (1) {
			nimln(1302, "system.nim");
			if (!(res_325277 <= HEX3Atmp_325275)) goto LA18;
			nimln(1301, "system.nim");
			i_325229 = res_325277;
			nimln(33, "aliases.nim");
			if (((TMP5020[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5021));
			if ((NU)(i_325229) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError();
			switch ((*(*n).kindU.S6.Sons->data[i_325229]).Kind) {
			case ((NU8) 85):
			case ((NU8) 88):
			{
				tnode171659* LOC20;
				nimln(35, "aliases.nim");
//.........这里部 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ raiseOverflow函数代码示例发布时间:2022-05-30
下一篇:
C++ raiseException函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap